Centos 6.9 手动添加开机启动配置

December 7, 2020

Centos 6.9 手动添加开机启动配置

启动目录
/etc/init.d/

新建启动文件

vi /etc/init.d/frps

内容如下

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

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

给执行权限

chmod +x frps

添加到启动项

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

设置启动

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

小四

喜欢摄影 和IT

Comments