ItioHub.com
记录日常工作学习中遇到的问题和笔记, 分享软件应用和资源
ItioHub.com
当前位置: 首页 > Notes > 正文

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

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 #关闭

相关推荐

报歉!评论已关闭。