-
TunnelNat
-
使用帮助
-
其他帮助
-
常见问题
centos FRP 设置开机自启动
在CentOS系统下,主要有两种方法设置自己安装的程序开机启动。
1、把启动程序的命令添加到/etc/rc.d/rc.local文件中。
客户端自启动
#!/bin/sh# # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. nohup /root/frpc -c /root/frpc.ini >/root/frpc/log.txt 2>&1 &
服务端自启动
#!/bin/sh# # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. nohup /root/frps -c /root/frps.ini >/root/frpc/log.txt 2>&1 &
备注:请将 路径地址换成您电脑系统的真是路径
我的系统是Centos6.5其他系统的话设置开机启动可能会有所不同