vi /etc/systemd/system/frpc.service

[Unit]
Description=Frpc Service
After=network.target

[Service]
Type=simple
Restart=on-failure
RestartSec=60s
ExecStart=/zengdaojian/wuhaodong/client/frpc -c /zengdaojian/wuhaodong/client/frpc.toml

[Install]
WantedBy=multi-user.target

重新加载systemctl服务

apt-get install systemd systemctl
systemctl daemon-reload
systemctl start frpc
systemctl enable frpc

openssh

apt-get install openssh-server -y
vi /etc/ssh/sshd_config
/etc/init.d/ssh start