CentOS 7 / RHEL 7 systemd commands
转载地址:http://www.linuxbrigade.com/centos-7-rhel-7-systemd-commands/By Now,if you’ve played around with CentOS 7 (or RHEL 7),you’ve heard that there are Now systemd commands you can start using to start,restart and stop varIoUs services. They still have the ‘service’ command included for backwards compatibility,but that may go away in future releases. Here’s a little tutorial to help you learn the systemd commands!
Ok,so you’re on your new CentOS 7 (or RHEL 7) system (we’ll just call it CentOS 7 for Now to make it easier) and you restarted sshd with the old/familiar ‘service sshd restart’ command and you’re met with this: Redirecting to /bin/systemctl restart sshd.service
Now,it still restarted it,but that little note is annoying. It’s basically telling you “hey – things have changed… use systemctl Now!”
You Could Now type ‘systemctl restart sshd’ for a shorter version.. here are some examples:
Stop service:
Start service:
Restart service (stops/starts):
chkconfig service on:
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。
相关推荐
- • Centos下搭建性能监控Spotlight
- • CentOS 6.3下Strongswan搭建IPSec VPN
- • 在CentOS6.5上安装Skype与QQ
- • 阿里云基于centos6.5主机VPN配置
- • CentOS 6.3下配置multipah
- • CentOS安装、配置APR和tomcat-native
- • centos6.5下postgres-XC集群安装与配置
- • CentOS 6使用openssl搭建根CA
- • CentOS6.6中安装VNC server
- • CentOS下更新Python最新版本
- • Centos安装pycurl
- • CentOS 7 安装PostGIS
- • CentOS 7.1PXE网络自动化安装
- • CentOS下ffmpeg与第三方编码编译安装
- • CentOS 6.4安装配置squid
- • CentOS6.5 安装配置drbd
- • CentOS6.4 安装jenkins
- • centos安装增强工具