https://github.com/fatedier/frp
wget https://github.com/fatedier/frp/releases/download/v0.31.2/frp_0.31.2_linux_amd64.tar.gz
tar -zxvf frp_0.31.2_linux_amd64.tar.gz
cat /etc/systemd/system/frps.service
systemctl enable frps
systemctl status frps
systemctl start frps
frps.service
[Unit]
Description=Frp Server Service
After=network.target
[Service]
Type=simple
User=nobody
Restart=on-failure
RestartSec=5s
ExecStart=/usr/local/bin/frps -c /usr/local/bin/frps.ini
[Install]
WantedBy=multi-user.target
https://github.com/ehang-io/nps
wget https://github.com/ehang-io/nps/releases/download/v0.26.2/linux_amd64_server.tar.gz
tar -zxvf linux_amd64_server.tar.gz
./nps install
nps start
/etc/nps/conf
web_username=
web_password=
web_port = 8081
参考:
1.frp怎样开机启动和后台运行
https://bbs.zephyrxt.com/thread-18731-1-1.html
2.使用frp进行内网穿透
https://bbs.zephyrxt.com/thread-18730-1-1.html
3.内网穿透FRP在windows系统里开机自启的几个方法
https://bbs.zephyrxt.com/thread-18736-1-1.html