9월, 2022의 게시물 표시

python 명령어

이미지
# Anaconda 사용, 쥬피터 노트북 python 설치 경로 : C:\ProgramData\anaconda3 ## 가상환경 생성 C:\Users\hlee\Desktop\my_project>python -m venv 가상환경이름 ref. cmd tree command [리눅스] -d : 디렉토리만 표시 -f : 디렉토리 경로 표시 -i :  - l :  -L : level -p : 파일권한 사용예) tree -L 2 // 2depth만 표시 tree -L 2 -p // 파일권한 tree -L 2 -d tree -L 2 -d -fi //  tree -L 2 -d -l "word" //특정디렉토리 제외 [윈도우] tree /f tree /a : 그래픽대신 텍스트 문자 ## 가상환경 실행 cd E:\django\pjt03\Scripts E:\django\pjt03\Scripts\activate.bat ## 가상환경 비활성화 cd E:\django\pjt03\Scripts E:\django\pjt03\Scripts\deactive ##가상환경 삭제 sudo rm -rf 가상환경이름 ## 장고설치 (pjt03) E:\django\pjt03\web_board>pip install django ## 장고 설치제거 pip list pip uninstall django ## 파이썬 버전 python --version ##### python cmd 실행 방법1  import subprocess  result = subprocess.getstatusoutput("dir>list.lis") 방법2 import os os.system("dir>list2.lis") ##### python 파일 쓰기 f = open("test.inp",'w')   # 옵션, w(쓰기), r(읽기), a(추가) for i in range(1,6):     f.write("%d번째 줄입니다

iptime vpn 설정

이미지
 http://m.newstap.co.kr/news/articleView.html?idxno=161668 https://www.vpngate.net/en/ vpn 클라이언트 설치

인터넷서비스_FTP서버

이미지
### 윈도우 서비스 업데이트 https://itfix.tistory.com/527 - Dism /online /cleanup-image /restorehealth - Sfc /scannow 액서스 안될때 1. Windows 로고 키 + R 키를 눌러 명령실행창의 실행 2. services.msc 를 입력하고 확인 3. 아래의 서비스 항목들의 서비스 상태를 중지 Background Intelligent Transfer Service Cryptographic Services Windows Updates 4. C:\Windows로 이동하여 SoftwareDistribution 폴더를 삭제 5. C:\Windows\System32로 이동하여 catroot2 폴더를 삭제 6. 서비스 창에서 중지한 서비스 세 가지를 더블 클릭 후, 각각 시작 버튼을 눌러 서비스를 시작 7. 윈도우 재시작 8. 만일 위의 방법들도 시도가 안되는 상황이라면 윈도우 설정>업데이트및보안>복구>고급시작옵션의 다시시작>고급옵션>시작설정>F4 키를 눌러 안전모드로 들어간 다음 안전모드에서 시도해 보시기 바랍니다. ### 인터넷 서비스 설정, 기능 켜기/끄기  https://studyforus.tistory.com/259 윈도우 기능 설치