Linux 启动、关闭、重启网络服务的两种方式

2026年09月25日 12:47
有1个网友回答
网友(1):

Linux 启动、关闭、重启网络服务的两种方式:

1、使用service脚本来调度网络服务,如:

启动 service network start;

关闭 service network stop;

重启 service network restart;

2、直接执行网络服务的管理脚本,如:

启动 /etc/init.d/network  start;

关闭 /etc/init.d/network  stop;

重启 /etc/init.d/network  restart。


扩展资料

linux其他服务相关命令介绍:

1、linux显示所有服务的运行状态命令

service --status-all

chkconfig --list

2、linux查看单个服务的运行状态命令

service iptables status

3、linux查看服务启动状态,是否开机自动启动命令

chkconfig --list servicename