728x90

Server/linux 14

[linux] 리눅스 명령어 mkdir, rmdir, rm (파일이나 디렉토리 생성, 삭제)

mkdir : 디렉토리 생성 rm : 파일 삭제 rmdir : (비어있는) 디렉토리 삭제 디렉토리 내에 파일이 존재할 경우 rmdir 명령어로 삭제 불가 디렉토리 하위 모든 파일을 삭제는 -fr 옵션을 이용해서 삭제 rm -fr [디릭토리명] rm 명령어 옵션 -f, --force ignore nonexistent files and arguments, never prompt -i prompt before every removal -I prompt once before removing more than three files, or when removing recursively; less intrusive than -i, while still giving protection against most mista..

Server/linux 2022.08.30

[linux] 리눅스 우분투(ubuntu) 아파치(apache) 웹서버 설치 구축(ufw 방화벽 설정)

아파치 웹서버 설치하기 1. 패키지 목록 업데이트 $ sudo apt-get update 2. 아파치 설치 $ sudo apt-get install apache2 3. 설치 진행 화면에서 "y" 입력 후 진행 3. 설치 완료 후 확인 $ sudo service apache2 status * 처음 설치가 완료되면 active 상태로 된다. 4. 아파치 서비스 실행 및 중지하기 $ sudo service apache2 start $ sudo service apache2 stop 아파치 서버의 기본 디렉토리 /var/www/html/index.html 서버의 공인(public) ip 로 접속시 default 페이지(index.html)가 나온다면 정상적으로 서비스가 되고 있는상태이다. * 아파치 웹서버 동작을..

Server/linux 2021.09.03
728x90