vim /etc/systemd/system/frl.service [Unit] Description=uWSGI instance to serve file-redis-load After=network.target [Service] User=web WorkingDirectory=/home/web/frs/ ExecStart=/bin/bash -c 'source /home/web/.bash_profile && /home/web/frs/frl' [Install] WantedBy=multi-user.target # 开机启动 systemctl enable nginx
查看日志
# 查看服务启动日志 journalctl -u frl
标签:脚本,web,启动,frl,linux,开机,home From: https://www.cnblogs.com/qukaige/p/17708728.html