1 |
|
设置服务自启动
1 | chkconfig nginx on |
启动服务
1 | service nginx start |
/usr/lib/systemd/system/nginx.service
1 | [Unit] |
设置服务自启动
1 | systemctl enable nginx.service |
启动服务
1 | systemctl start nginx.service |
1 | #!/bin/sh |
设置服务自启动
1 | chkconfig nginx on |
启动服务
1 | service nginx start |
/usr/lib/systemd/system/nginx.service
1 | [Unit] |
设置服务自启动
1 | systemctl enable nginx.service |
启动服务
1 | systemctl start nginx.service |