9. xinetd命令详解

9. xinetd命令详解

1
https://www.cnblogs.com/lsgxeva/p/9280777.html

1-1. 查看是否已安装服务xinetd

1
rpm -qa | grep xinetd

2-1. 安装服务xinetd

1
yum install -y xinetd

3-1. 查看服务状态xinetd

1
systemctl status xinetd.service

3-2. 启动服务xinetd

1
systemctl start xinetd.service

3-3. 关闭服务xinetd

1
systemctl stop xinetd.service

3-4. 重启服务xinetd

1
systemctl restart xinetd.service

3-5. 设置开机启动项服务xinetd

1
systemctl enable xinetd.service

3-6. 取消开机启动项服务xinetd

1
systemctl disable xinetd.service

4-1. 列出各种服务开机是否启动

1
systemctl list-unit-files

4-2. 列出xinetd服务是否开机启动

1
systemctl list-unit-files | grep xinetd.service

4-3. 列出xinetd服务是否开机启动

1
systemctl is-enabled xinetd.service

Leave a Reply

Your email address will not be published. Required fields are marked *