云服务器 ECS Linux CentOS 7 下重启服务通过service 操作报错:

Redirecting to /bin/systemctl restart sshd.service

查资料发现,在ESC下重启服务是通过systemctl 操作:
例:1、启动sshd服务:

systemctl start sshd.service

2.、重启 sshd 服务:

systemctl restart sshd.service

3、 设置服务开启自启:

systemctl enable sshd.service 
GitHub 加速计划 / li / linux-dash
11
2
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e added ecosystem file for PM2 5 年前
5def40a3 Add host customization support for the NodeJS version 5 年前
Logo

新一代开源开发者平台 GitCode,通过集成代码托管服务、代码仓库以及可信赖的开源组件库,让开发者可以在云端进行代码托管和开发。旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐