本机环境:

CentOS 6.5
:【本文为个人学习中所记录,可能包含从网上摘抄的内容,侵删!如有错误望指正,一起交流、共同进步,感谢!

报错原因:
最小化安装的 CentOS,没有systemctl,所以执行的时候报错 systemctl command not found


解决方法:
1、使用 service指令替代

service redisd start
service redisd restart
service network restart

2、安装 systemctl(未尝试

安装 systemctl
sudo apt-get install --reinstall systemd

设置服务开机启动
sudo systemctl enable ssh

参考:
https://blog.csdn.net/superjunenaruto/article/details/105399039

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐