https://parkjinwoo98.tistory.com/3
[CentOS] 설치 후 설정
SELinux 비활성, iptables 설치, net-tools 설치 시작하기전에 update랑 upgrade 해주는 것이 좋다. 1. SELinux 비활성화 SELinux는 리눅스의 강력한 보안 모듈 실습을 진행하기 위해 비활성화하고 진행 vi /etc/sysco
parkjinwoo98.tistory.com
#> getenforce
#> vi /etc/sysconfig/selinux
Permissive로 바꾸기
Apache 설치
#> yum install -y httpd //apache 설치
#> systemctl start httpd //apache 구동
#> vi /etc/sysconfig/iptables // 방화벽 설정 80. 8080포트를 추가한다.
인터넷 창에 ip를 치면 default page가 나온다.
apache는 /var/www/html/ 밑에 비었으면 default page
index.html이 있으면 이걸 참조합니다.
#> vi /etc/var/www/html 에서 간단하게 마크업
Apache 설치
-끝-
'리눅스' 카테고리의 다른 글
Apache + MariaDB + PHP (3) (0) | 2023.09.06 |
---|---|
Apache + MariaDB + PHP (2) (0) | 2023.09.06 |
FTP 서버 구축 및 보안 설정 (1) | 2023.09.06 |
[CentOS] 설치 후 설정 (0) | 2023.09.06 |
록키 리눅스 설치방법 (0) | 2023.07.04 |