1.依赖包
yum -y install pcre-devel zlib-devel openssl-devel apr*
2.解压源码包
tar xzf httpd-2.4.41.tar.gz
cd httpd-2.4.41
2.编译安装
./configure --prefix=/usr/local/apache --enable-mpms-shared=all
make
make install
连写
./configure --prefix=/usr/local/apache --enable-mpms-shared=all && make && make install
3.配置文件检测
/usr/local/apache/bin/apachectl -t
4.修改配置文件
vi /usr/local/apache/conf/httpd.conf
ServerName 127.0.0.1:80
5.启动apache服务
/usr/local/apache/bin/apachectl start
6.apache服务开机启动
vi /etc/rc.local
/usr/local/apache/bin/apachectl start
7.关闭apache服务
pkill httpd
8.查看进程
pstree |grep httpd
9.查看端口
netstat -tunpl |grep httpd
Comments | 1 条评论
Warning: Undefined variable $ip1num in /www/wwwroot/blog.moonlet.cn/wp-content/themes/Sakura/functions.php on line 272
Warning: Undefined variable $ip2num in /www/wwwroot/blog.moonlet.cn/wp-content/themes/Sakura/functions.php on line 272
Warning: Undefined variable $ipAddr2 in /www/wwwroot/blog.moonlet.cn/wp-content/themes/Sakura/functions.php on line 344
Warning: Undefined variable $ipAddr1 in /www/wwwroot/blog.moonlet.cn/wp-content/themes/Sakura/functions.php on line 350
湖北省 广电网
新的一天
(⌒▽⌒)
Warning: Undefined variable $return_smiles in /www/wwwroot/blog.moonlet.cn/wp-content/themes/Sakura/functions.php on line 1078
Warning: Undefined variable $robot_comments in /www/wwwroot/blog.moonlet.cn/wp-content/themes/Sakura/comments.php on line 97