Manually add services on CentOS7.2

The operating system environment in the article is CentOS7.2 Take Frps.service as an example Create frps.service: vi frps.service Path: /etc/systemd/system/frps.service frps.service content: [Unit] Description=frps After=network.target [Service] TimeoutStartSec=30 ExecStart=/usr/www/frp/frps -c /usr/www/frp/frps.ini ExecStop=/bin/kill $MAINPID [Install] WantedBy=multi-user.targetUsage: # 启动服务 systemctl start frps # 查看状态 systemctl status frps # 开机启动 systemctl enable frpsfrp_0.34.3_linux_amd64.tar.gz Reference article https://canwdev.github.io/manual/setup-frp.html#%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%AB%AF-%C2%B7-frps

搜尋文章

輸入標題、分類或文章內容

Plz typing to search for articles.