linux-服务进程
service管理进程
- start
- stop
- restart
- status
chkconfig工具
- 安装:apt install chkconfig
- 服务列表:
chkconfig --list - 添加服务:
chkconfig add mysqld - 开机自启:
chkconfig mysqld on - 不自启:
chkconfig mysql off
chkconfig --listchkconfig add mysqldchkconfig mysqld onchkconfig mysql off