使用jinja模板编写apache监听本地IP时,apache无法启动了

你好,本人在编写apache监听本地ip时,先将对应的httpd服务停止了,然后在lamp.sls中编写apache监听本地ip,一直报错,因为其反向解析的ip是172.16.11.131,虚拟机里的IP是192.168.11.131,通过nat连接,但是192.168.11.131ping172.16.11.131显示无法连接

启动apache的报错信息
[root@hadoop1 dev]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 三 2019-07-03 09:12:07 CST; 6min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 4291 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 4163 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 4163 (code=exited, status=1/FAILURE)

7月 03 09:12:06 hadoop1 systemd[1]: Starting The Apache HTTP Server...
7月 03 09:12:07 hadoop1 httpd[4163]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 172.16.11.131:8080
7月 03 09:12:07 hadoop1 httpd[4163]: no listening sockets available, shutting down
7月 03 09:12:07 hadoop1 httpd[4163]: AH00015: Unable to open logs
7月 03 09:12:07 hadoop1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
7月 03 09:12:07 hadoop1 kill[4291]: kill: cannot find process ""
7月 03 09:12:07 hadoop1 systemd[1]: httpd.service: control process exited, code=exited status=1
7月 03 09:12:07 hadoop1 systemd[1]: Failed to start The Apache HTTP Server.
7月 03 09:12:07 hadoop1 systemd[1]: Unit httpd.service entered failed state.
7月 03 09:12:07 hadoop1 systemd[1]: httpd.service failed.

已邀请:

赵班长 - 不忘初心,方得始终!

没看到SLS,那就是写的不对。

要回复问题请先登录注册