systemctl: command not found
//安装完之后
[root@linux ~]# yum -y install httpd
//启动时输入命令显示找不到systemmctl
[root@linux ~]# systemctl start httpd
-bash: systemctl: command not found
百度一番之后发现centos 使用 service 命令替代systemctl
//用service 替换systemctl 重新启动
[root@linux ~]# service httpd start
正在启动 httpd:httpd: apr_sockaddr_info_get() failed for linux
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[确定]
启动之后又查看了运行装状态
[root@linux ~]# service httpd status
httpd (pid 1518) 正在运行...