Total Pageviews

Saturday, 28 May 2016

mac上,运行brew install openvpn后,所显示的内容

...
If you have installed the Tuntap dependency as a source package you will
need to follow the instructions found in `brew info tuntap`. If you have
installed the binary Tuntap package, no further action is necessary.

For OpenVPN to work as a server, you will need to create configuration file
in /usr/local/etc/openvpn, samples can be found in /usr/local/Cellar/openvpn/2.3.8/share/doc/openvpn

To have launchd start openvpn at startup:
  sudo cp -fv /usr/local/opt/openvpn/*.plist /Library/LaunchDaemons
  sudo chown root /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist
Then to load openvpn now:
  sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist
==> Summary
🍺  /usr/local/Cellar/openvpn/2.3.8: 72 files, 1.4M, built in 60 seconds

yudeMacBook-Air:~ brite$ sudo find / -name openvpn
/Users/brite/Library/Logs/Homebrew/openvpn
/Users/brite/Library/openvpn
/usr/local/Cellar/openvpn (此目录就是openvpn的安装目录)
/usr/local/Cellar/openvpn/2.3.8/lib/openvpn
/usr/local/Cellar/openvpn/2.3.8/sbin/openvpn
/usr/local/Cellar/openvpn/2.3.8/share/doc/openvpn
/usr/local/etc/openvpn
/usr/local/lib/openvpn
/usr/local/Library/LinkedKegs/openvpn
/usr/local/opt/openvpn
/usr/local/sbin/openvpn
/usr/local/share/doc/openvpn
/usr/local/var/run/openvpn

yudeMacBook-Air:~ brite$ ln -s /usr/local/sbin/openvpn /usr/local/bin/openvpn
(这样即可直接运行openvpn.运行openvpn或openvpn --help查看使用说明)

相关帖子:http://briteming.blogspot.com/2013/02/openvpn.html