Linux 启动引导、服务管理

启动引导管理:运行级别N5 ,手动更改init5 ,默认etc/inittab。
服务管理:RPM包服务是独立的,xinetd依赖它,源代码服务未知。
启动服务:/etc/init.d/script,服务启动/停止/重启。
自动启动:chkconfig 级别开/关、rc.local 设置、ntsysv 图形管理。
实用提醒:请确保服务配置正确,避免系统不稳定。

linux程序启动命令

启动前台:./program_name 后台启动:my_program & nohup 启动:nohup my_program & setid 启动:setid my_program 启动屏幕: screen -S session_name my_program 开机自动启动:
/etc/rc.local(仅适用于选定的发行版)
/etc/init.d + update-rc.d(SysVinit系统)
systemctl(systemd系统)
注意:rc.local已被弃用,systemd是主流。