apache 설치
Remark:
apache를 설치해 보자
1. yum -y install httpd
1 2 3 |
# yum -y install httpd |
명령시 실행시 다음과 같이 나오면 이미 아파치 설치된 상태
1 2 3 4 5 6 7 8 9 10 11 |
# yum -y install httpd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.kakao.com * epel: mirrors.ustc.edu.cn * extras: mirror.kakao.com * updates: mirror.navercorp.com Package httpd-2.4.6-97.el7.centos.x86_64 already installed and latest version Nothing to do |
2. Apache(httpd) start
1 2 3 |
# systemctl start httpd |
3. Apache(httpd) booting start setting
1 2 3 4 |
# systemctl enable httpd.service Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service. |
4. Apache(httpd) Confugration
1 2 3 |
# vi /etc/httpd/conf/httpd.conf |