CentOS7下如何查看vsftpd服务的状态

CentOS7下如何查看vsftpd服务的状态
--------------------------------------------------------------

[root@localhost ~]# systemctl status vsftpd.service

vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2017-12-13 21:44:06 CST; 18min ago
(如果是激活状态的话会有active绿色的标记),没有是显示Active: failed

--------------------------------------------------------------

如果需要设置开机启动使用以下命令
[root@localhost ~]#systemctl enable vsftpd.service

Created symlink from /etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service.
显示这些信息说明设置成功了


--------------------------------------------------------------

如果确定安装了服务,请重新启动服务
[root@localhost ~]# service vsftpd restart

Redirecting to /bin/systemctl restart vsftpd.service
如果显示就说明安装成功了

你可能感兴趣的:(CentOS7下如何查看vsftpd服务的状态)