armbian上安装frpc并自启动
手动安装很简单,下载frpc的安装包,解压出来,将frpc二进制放到/usr/local/bin/目录下,设置可执行权限0755,将frpc.ini文件放到/usr/local/etc/目录下,然后将以下内容存为frpc.service文件,放到/etc/systemd/system/目录里。
[Unit]
Description=frpc
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=nobody
ExecStart=/usr/local/bin/frpc -c /usr/local/etc/frpc.ini
Restart=always
[Install]
WantedBy=multi-user.target
运行:systemctl start frpc.service
停止运行:systemctl stop frpc.service
开机启动:systemctl enable frpc.service
取消开机启动:systemctl disable frpc.service
查看运行状态:systemctl status frpc.service