1121 cd /opt
1122 mkdir apache-httpd-2.2.14
1123 ls
1124 cd software/
1125 ls
1126 tar zxvf httpd-2.2.14.tar.gz
1127 ls
1128 cd httpd-2.2.14
1129 ls
1130 ./configure --prefix=/opt/apache-httpd-2.2.14 -enable-so -enable-proxy -enable-proxy-ajp -enable-proxy-http -enable-proxy-ftp -enable-proxy-connect -enable-proxy-balancer
1131 make
1132 make install
1136 cd /opt
1137 ls
1138 cd apache-httpd-2.2.14/
1139 ls
1140 cd conf/
1141 ls
1142 vim httpd.conf 更改Listen端口
1143 ls
1144 cd ..
1145 ls
1146 bin/apachectl
1147 bin/apachectl start 启动apache
1148 bin/apachectl status
1149 bin/apachectl stop 停止apache
Web 主目录是
[root@gmnode14 htdocs]# pwd
/opt/apache-httpd-2.2.14/htdocs
Linux下Apache http 服务器安装配置
最新推荐文章于 2024-09-24 11:06:11 发布