我用systemctl重启httpd,但是失败了:
[root@controller ~]# 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.
Run Code Online (Sandbox Code Playgroud)
我状态它,获取以下信息:
[root@controller ~]# 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 Wed 2017-07-12 15:48:35 CST; 11s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 10093 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 10091 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 10091 (code=exited, status=1/FAILURE)
Jul …Run Code Online (Sandbox Code Playgroud) 在 CentOS6 中,我们可以很容易地配置一个 ip 范围(例如:)192.168.1.10-192.168.1.254到一个网卡,
但是我们如何在 CentOS7 中配置一个 ip 范围呢?
我的方法在CentOS6下不能用,在CentOS7下怎么办?
我可以使用下面的方法来配置多个 ip,但是如果我有 200 个 ip,该怎么办?
TYPE="Ethernet"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
NAME="enp0s3"
UUID="933cdc9b-b383-4ddd-b219-5a72c69c9cf0"
ONBOOT="yes"
HWADDR="08:00:27:3F:AB:68"
IPADDR0="192.168.1.150"
IPADDR1="192.168.1.151"
IPADDR2="192.168.1.152"
PREFIX0="24"
GATEWAY0="192.168.1.1"
DNS1="192.168.1.1"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
Run Code Online (Sandbox Code Playgroud)