VPS侦探论坛

 找回密码
 注册
查看: 3238|回复: 3

求助,LAMP一键包,安装openSSL后 ,apache 启动问题

[复制链接]
发表于 2018-2-1 23:02:08 | 显示全部楼层 |阅读模式

使用LAMP一键包装的apachel    目录在/usr/local/apache因为网站要测试SSL ,就安装了openssl  ,然后自动生成了 /etc/httpd/conf/httpd.conf
现在使用重启apache 的命令/etc/init.d/httpd restart  重启服务的话加载是的 /etc这个目录的httpd.conf 文件。
如何修改使用/usr/local/apache 这个目录的呢。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-2-2 11:04:17 | 显示全部楼层


你可能是通过其他方式又安装了个apache吧,卸载掉就行了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-2-3 13:43:24 | 显示全部楼层

回复 2# 的帖子


现在用 /etc/httpd/conf/httpd start 启动的话提示Starting httpd: httpd: Could not open configuration file /etc/httpd/conf/httpd.conf: No such file or directory
查找httpd 进程的话   启动文件是 /usr/local/apache/bin/httpd
现在都是用/usr/local/apache/bin/httpd -k restart 进行操作= =
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-2-3 18:16:34 | 显示全部楼层



/etc/httpd/conf/httpd start  这根本不是lnmp的管理命令肯定不行, /usr/local/apache/bin/httpd 这个目录的才是lnmp的 https://lnmp.org/faq/lnmp-status-manager.html
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-24 15:21 , Processed in 0.026106 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表