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) 正在运行...

Logo

「智能机器人开发者大赛」官方平台,致力于为开发者和参赛选手提供赛事技术指导、行业标准解读及团队实战案例解析;聚焦智能机器人开发全栈技术闭环,助力开发者攻克技术瓶颈,促进软硬件集成、场景应用及商业化落地的深度研讨。 加入智能机器人开发者社区iRobot Developer,与全球极客并肩突破技术边界,定义机器人开发的未来范式!

更多推荐