test
ls
index.html
cp /etc/passwd passwd
ls
index.html passwd
ls -l
index .html
passwd
mkdir admin
mkdir test
Web에서
192.66.21.235/admin
명령어 정리
ps -ef |grep --> 활동중인 프로세스
rpm -qa |grep --> 설치되어 있는 패키지 확인
아파치 패키지 설치되어있는것 확인 후 [httpd ]
cd /var/www/html 이동
데몬 시작 해주어야함 service httpd start
vi httpd.conf
포트 변경
local계정 변경 ,
cd /var/www/html
mkdir admin
mkdir test
[root@localhost httpd] cd /var/www/html 경로에 들어간다
[root@localhost html ] ls
index.html # index.html 파일 만 있다.
[root@localhost httpd] mkdir admin # admin 디렉터리 생성
[root@localhost httpd] mkidr test # test 디렉터리 생성
[root@localhost httpd] cd admin # admin
[root@localhost admin] cp /etc/shadow shadow
[root@localhost admin] ls
shadow
[root@localhost admin] cd ..
[root@localhost html] cd test
[root@localhost test] cp /etc/services services