"인문지식 처리와 프로그래밍2020 5.21"의 두 판 사이의 차이
soook
| 125번째 줄: | 125번째 줄: | ||
vi 리눅스 에디터 | vi 리눅스 에디터 | ||
| + | : w q ! | ||
| + | |||
| + | |||
| + | 노트패드변경하면---저장하고 FTP/ cgi bin 에올린다 | ||
| + | chmod +rwx Hello2.py | ||
2020년 5월 21일 (목) 18:16 판
login as: soook soook@dh.aks.ac.kr's password: Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-72-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage 722 packages can be updated. 0 updates are security updates. New release '18.04.4 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Fri Mar 13 10:57:30 2020 from 125.132.153.101 soook@dh:~$ ls public_html soook@dh:~$ cd public_html soook@dh:~/public_html$ ls cgi-bin graph mediawiki-1.27.4.tar.gz pavilion SoookArt wiki soook@dh:~/public_html$ ls cgi-bin graph mediawiki-1.27.4.tar.gz pavilion SoookArt wiki soook@dh:~/public_html$ dir cgi-bin graph mediawiki-1.27.4.tar.gz pavilion SoookArt wiki soook@dh:~/public_html$ cd .. soook@dh:~$ ls public_html soook@dh:~$ cd public_html soook@dh:~/public_html$ ls cgi-bin graph mediawiki-1.27.4.tar.gz pavilion SoookArt wiki soook@dh:~/public_html$ cd cgi-bin soook@dh:~/public_html/cgi-bin$ ls soook@dh:~/public_html/cgi-bin$ ls Hello.py Hello.py soook@dh:~/public_html/cgi-bin$ chmode + rwx Hello.py No command 'chmode' found, did you mean: Command 'chmod' from package 'coreutils' (main) chmode: command not found soook@dh:~/public_html/cgi-bin$ ch m ch: command not found soook@dh:~/public_html/cgi-bin$ ch mode +rwx Hello.py ch: command not found soook@dh:~/public_html/cgi-bin$ cdmod +rwx Hello.py No command 'cdmod' found, did you mean: Command 'chmod' from package 'coreutils' (main) cdmod: command not found soook@dh:~/public_html/cgi-bin$ chmod +rwx hello.py chmod: cannot access 'hello.py': No such file or directory soook@dh:~/public_html/cgi-bin$ ls Hello.py soook@dh:~/public_html/cgi-bin$ chmod +rwx Hello.py soook@dh:~/public_html/cgi-bin$ ls Hello.py soook@dh:~/public_html/cgi-bin$ python Hello.py Content-type:text/html <html> <head> <title>Hello Word - First CGI Program</title> </head> <body> <h2>Hello Word! This is my first py CGI program</h2> </body> </html>
soook@dh:~/public_html/cgi-bin$ ls Hello.py(성공했으면 초록색으로 색이 바뀜) soook@dh:~/public_html/cgi-bin$ chmod +rwx Hello.py soook@dh:~/public_html/cgi-bin$ ls Hello.py soook@dh:~/public_html/cgi-bin$ python Hello.py
- ls =dir
- chmod : change mode
- +r read
- w write
+rwx read / write / execute 읽기 쓰기 실행 권한을 추가하라는 명령어입니다 지선샘정리
http://dh.aks.ac.kr/~soook/cgi-bin/Hello.py Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log.
login as: soook soook@dh.aks.ac.kr's password: Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-72-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage 722 packages can be updated. 0 updates are security updates. New release '18.04.4 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Thu May 21 18:00:29 2020 from 125.132.153.101 soook@dh:~$ vi Hello3.py soook@dh:~$
vi 리눅스 에디터
- w q !
노트패드변경하면---저장하고 FTP/ cgi bin 에올린다
chmod +rwx Hello2.py