systemctl块语法
1·配置文件xxxx.service
[Unit]
Description=带有配置文件的App
[Service]
ExecStart=/www/demo.com/xxxx "-c" "/www/demo.com/配置文件"
Restart=always
RestartSec=120
[Install]
WantedBy=multi-user.target
标签 LNMP 下的文章
[Unit]
Description=带有配置文件的App
[Service]
ExecStart=/www/demo.com/xxxx "-c" "/www/demo.com/配置文件"
Restart=always
RestartSec=120
[Install]
WantedBy=multi-user.target
Nginx的反代与PHP项目代码
systemctl status xxxx
systemctl start xxxx
systemctl restart xxxx
systemctl stop xxxx
sudo service xxxx start
sudo service xxxx restart
sudo service xxxx stop
xxxx:nginx php{version}-fpm mysql
lsof -i:端口
cat /proc/cpuinfo