本机环境:
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