Browsed by
标签:linux

linux systemd

linux systemd

linux使用systemd启动服务。
vi /etc/systemd/system/frps.service

[Unit]
Description=Frp Server Service
After=network.target

[Service]
Type=simple
User=root
Restart=on-failure
RestartSec=5s
ExecStart=/usr/bin/frps -c /etc/frp/frps.ini

[Install]
WantedBy=multi-user.target

sudo systemctl restart frps