Open 349989153 opened 4 years ago
sudo vi /etc/hosts(把127.0.0.1改成你微信注册的域名)
sudo vi /etc/hosts
(转发端口) sudo vim /etc/pf.conf 在rdr-anchor "com.apple/*"下,加上:rdr on lo0 inet proto tcp from any to 127.0.0.1 port 80 -> 127.0.0.1 port 8080(这里8080改成你的服务的端口)
sudo vim /etc/pf.conf
rdr-anchor "com.apple/*"
rdr on lo0 inet proto tcp from any to 127.0.0.1 port 80 -> 127.0.0.1 port 8080
重新加载配置:sudo pfctl -f /etc/pf.conf
sudo pfctl -f /etc/pf.conf
启动:sudo pfctl -e
sudo pfctl -e
sudo vi /etc/hosts
(把127.0.0.1改成你微信注册的域名)(转发端口)
sudo vim /etc/pf.conf
在rdr-anchor "com.apple/*"
下,加上:rdr on lo0 inet proto tcp from any to 127.0.0.1 port 80 -> 127.0.0.1 port 8080
(这里8080改成你的服务的端口)重新加载配置:
sudo pfctl -f /etc/pf.conf
启动:
sudo pfctl -e