在linux系统下apache的默认安装路径在哪


当前第2页 返回上一页

报错信息如下:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

[root@localhost ~]# service httpd restart

Redirecting to /bin/systemctl restart httpd.service

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

[root@localhost ~]# service httpd status

Redirecting to /bin/systemctl status httpd.service

● httpd.service - The Apache HTTP Server

   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)

   Active: failed (Result: exit-code) since 三 2018-12-05 14:42:42 CST; 11s ago

     Docs: man:httpd(8)

           man:apachectl(8)

  Process: 3640 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)

  Process: 3639 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)

 Main PID: 3639 (code=exited, status=1/FAILURE)

 

12月 05 14:42:42 localhost.localdomain httpd[3639]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80

12月 05 14:42:42 localhost.localdomain httpd[3639]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80

12月 05 14:42:42 localhost.localdomain httpd[3639]: no listening sockets available, shutting down

12月 05 14:42:42 localhost.localdomain httpd[3639]: AH00015: Unable to open logs

12月 05 14:42:42 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE

12月 05 14:42:42 localhost.localdomain kill[3640]: kill: cannot find process ""

12月 05 14:42:42 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1

12月 05 14:42:42 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.

12月 05 14:42:42 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.

12月 05 14:42:42 localhost.localdomain systemd[1]: httpd.service failed.

[root@localhost ~]#

可以看到Address already in use错误,修改apache的端口。

编辑/etc/httpd/conf/httpd.conf

7197ed1592e8705919322e1f00ce3eb.png

再次重启即可。

以上就是在linux系统下apache的默认安装路径在哪的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

Linux如何判断是否安装了tomcat

Linux如何使用命令

Linux查看日志的三种命令是什么

如何查询一台或者多台实例是否安装了云助手客户端

如何将专有网络(vpc)类型的ecs实例分配的公网ip转换为弹性公网ip(eip)

Linux输出乱码怎么解决

ecs服务器如何让oss支持https

Linux基础教程之Linux安装步骤详解

Linux中退出vi编辑器,按下esc没反应怎么办?

如何解决Linux没有php.ini文件的问题

更多相关阅读请进入《Linux》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...