Centos 6.9 manually adds startup configuration

startup directory /etc/init.d/

Create a new startup file

vi /etc/init.d/frps

The content is as follows

#! /bin/bash
# chkconfig: 2345 90 10
# description: Starts/Stops the Frps Server

/usr/frp/frps -c /usr/frp/frps.ini &

Give execution permission

chmod +x frps

Add to startup items

chkconfig --add frps #添加
chkconfig --del frps #删除

Setup start

chkconfig frps on #启动
chkconfig frps off #关闭