6

MAC 配置 FRP 远程访问

 2 years ago
source link: https://www.jansora.com/notes/648
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

MAC 配置 FRP 远程访问

https://github.com/fatedier/frp/releases/download/v0.35.0/frp_0.35.0_darwin_amd64.tar.gz

tar xvf frp_0.35.0_darwin_amd64.tar.gz
sudo mv frp_0.35.0_darwin_amd64 /usr/local/
cd /usr/local/
sudo mv frp_0.35.0_darwin_amd64 frp

修改 frp 配置

......... 略

配置开机启动

vim ~/Library/LaunchAgents/frpc.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd >
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>frpc</string>
    <key>ProgramArguments</key>
    <array>
	 <string>/usr/local/bin/frpc/frpc</string>
         <string>-c</string>
	 <string>/usr/local/bin/frpc/frpc.ini</string>
    </array>
    <key>KeepAlive</key>
    <true/>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>
# 加载生效
sudo chown root ~/Library/LaunchAgents/frpc.plist
sudo launchctl load -w ~/Library/LaunchAgents/frpc.plist

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK