기존 운영되고 있는 아파치 경로 /usr/local/apache
새로 설치한 아파치 경로 /usr/local/apache2.4.46
새로 설치한 아파치를 포트를 변경하고 시작을 해도 에러가 발생된다
아파치를 2개 이상 뛰으려면 새롭게 설치한 apache에서 몇가지 환경 설정을 변경해주면 된다
새로 뛰우르고 하는 apache 수정
1. apachectl 수정
1 2 3 4 |
[root@xinet html]# vi /usr/local/apache2.4.46/bin/apachectl ### 아래내용수정 HTTPD='/usr/local/apache2.4.46/bin/httpd -f /usr/local/apache2.4.46/conf/httpd.conf' |
2. httpd.conf 수정
1 2 3 4 5 6 7 8 9 |
[root@xinet html]# vi /usr/local/apache2.4.46/conf/httpd.conf ### 아래내용 수정 ServerRoot "/usr/local/apache2.4.46" Listen 8888 ServerName localhost:8888 |
3. 새로 설치한 버전을 실행
1 |
[root@xinet html]# /usr/local/apache2.4.6/bin/apachectl start |
4. 프로세서 확인
1 2 3 4 5 6 7 8 9 10 11 12 |
root 1816 1 0 16:49 ? 00:00:00 /usr/local/apache2.4.46/bin/httpd -f /usr/local/apache2.4.46/conf/httpd.conf -k start daemon 1817 1816 0 16:49 ? 00:00:00 /usr/local/apache2.4.46/bin/httpd -f /usr/local/apache2.4.46/conf/httpd.conf -k start daemon 1818 1816 0 16:49 ? 00:00:00 /usr/local/apache2.4.46/bin/httpd -f /usr/local/apache2.4.46/conf/httpd.conf -k start daemon 1819 1816 0 16:49 ? 00:00:00 /usr/local/apache2.4.46/bin/httpd -f /usr/local/apache2.4.46/conf/httpd.conf -k start daemon 2873 1816 0 16:51 ? 00:00:00 /usr/local/apache2.4.46/bin/httpd -f /usr/local/apache2.4.46/conf/httpd.conf -k start root 8914 22433 0 18:19 pts/4 00:00:00 grep --color=auto httpd root 26402 1 0 11:41 ? 00:00:03 /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf -k start nobody 26403 26402 0 11:41 ? 00:00:00 /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf -k start nobody 26406 26402 0 11:42 ? 00:00:13 /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf -k start nobody 26407 26402 0 11:42 ? 00:00:15 /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf -k start nobody 26432 26402 0 11:42 ? 00:00:17 /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf -k start nobody 26681 26402 0 11:43 ? 00:02:42 /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf -k start |
5. 웹페이지에서 http://아이피:8888 페이지 확인