mikeluwen

systemd很强大的管理工具,这里简单用来管理一个进程:

[Unit]
Description=Imges Compress Server

[Service]
Type=simple
ExecStart=/opt/app/php7/bin/php /data/www/imgserver/artisan queue:work redis --queue=imgcompress --env=pro
#ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=false
User=www
Group=www
Restart=always

[Install]
WantedBy=multi-user.target

分类:

技术点:

相关文章:

  • 2021-09-18
  • 2021-09-18
  • 2021-07-11
  • 2021-09-20
  • 2021-10-20
  • 2021-08-16
  • 2021-10-15
  • 2021-11-16
猜你喜欢
  • 2021-09-18
  • 2021-09-18
  • 2021-12-01
  • 2021-09-28
  • 2021-09-18
  • 2021-09-18
  • 2021-09-18
相关资源
相似解决方案