frpc software path
xxxxxxxxxx
/home/yahboom/YBAMR-COBOT-EDU-00001/soft/frp_0.55.1_linux_arm64
Start the command in the terminal normally:
xxxxxxxxxx
frpc -c frpc.toml
Frcp.toml configuration analysis:
xxxxxxxxxx
serverAddr = "119.136.207.210" ##frps server public network address
serverPort = 7000 ##frps server port
auth.token = "yahboom" ##frps server login token, this must be consistent with the frps configuration to be successfully configured.
[[proxies]]
name = "ssh-tcp" ##Name of intranet penetration, here is to configure ssh
type = "tcp" ##Type of intranet penetration, here is configured as tcp
localIP = "127.0.0.1" ##Local IP address
localPort = 22 ##Client open port corresponding to intranet penetration
remotePort = 6000 ##Server open port corresponding to intranet penetration
[[proxies]]
name = "rosboard" ##Name of intranet penetration, here is to configure rosboard service
type = "tcp" ##Type of intranet penetration, here is configured as tcp
localIP = "127.0.0.1" ##Local IP address
localPort = 8888 ##Client open port corresponding to intranet penetration
remotePort = 8888 ##Open port of the server corresponding to the intranet penetration
Configuration of frpc for startup
The path of the startup configuration is:
xxxxxxxxxx
/home/yahboom/YBAMR-COBOT-EDU-00001/udev/supervisor/conf.d/frpc.conf
Parsing of Frpc.conf file:
xxxxxxxxxx
[program:FrpClient] ##Indicates the name of the self-starting service
command=/home/yahboom/YBAMR-COBOT-EDU-00001/soft/frp_0.55.1_linux_arm64/frpc -c /home/yahboom/YBAMR-COBOT-EDU-00001/soft/frp_0.55.1_linux_arm64/frpc.toml ##Command indicating service startup
directory=/home/yahboom/YBAMR-COBOT-EDU-00001/soft/frp_0.55.1_linux_arm64/ ##Service work path
autostart=false ##Configure whether to start automatically at boot. The factory configuration is false. You can configure it to true if necessary
autorestart=true ##Configure whether to restart automatically
stderr_logfile=/home/yahboom/YBAMR-COBOT-EDU-00001/LOGS/Frpc/Frpc.err.log ; ##Error log file
stdout_logfile=/home/yahboom/YBAMR-COBOT-EDU-00001/LOGS/Frpc/Frpc.out.log ; ##Output log file
user=yahboom
stopsignal=INT
Copy frpc.conf to the /etc/supervisor/conf.d folder, and enter the following command in the terminal:
xxxxxxxxxx
sudo cp /home/yahboom/YBAMR-COBOT-EDU-00001/udev/supervisor/conf.d/frpc.conf /etc/supervisor/conf.d
Then enter the command in the terminal:
xxxxxxxxxx
sudo supervisorctl update
Enter the command in the terminal:
xxxxxxxxxx
sudo supervisorctl status
As shown in the figure below, the configuration is successful.
Start the service input command:
xxxxxxxxxx
sudo supervisorctl start FrpClient
Stop the service input command:
xxxxxxxxxx
sudo supervisorctl stop FrpClient
Restart the service input command:
xxxxxxxxxx
sudo supervisorctl restart FrpClient