ubuntu - apachectl无法正常开启关闭apache
高洛峰
高洛峰 2017-04-24 09:09:04
0
1
376

操作系统:阿里云-Ubuntu14.04
服务器:apache2.4.20

自己编译安装的apache,配置命令如下:

./configure --prefix=/usr/local/apache2 --enable-proxy --enable-proxy-ajp --enable-rewrite --enable-so --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre

随即输入命令/usr/local/apache2/bin/apachectl可以检测httpd.conf,但是无法正常打开、关闭以及重启http服务,报错如下:

httpd (no pid file) not running

然后我们打开网址http://12.34.56.78/,页面显示It works!

请问这是为什么?是因为什么没有配置好吗?还是因为需要自己写脚本打开、关闭以及重启apache服务?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all (1)
刘奇

Check the location of the pid file and confirm whether apache has permissions to the directory where the pid is located.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!