近期因为帮一个朋友的忙,研究了一下手机可用的VPN服务器搭建,经过不断的研究、试错,终于搞定,写下来,共勉!
- 1、安装net-tools
- 命令:[root@iZrj97x1vs43j8xzi1p05bZ ~]# yum install net-tools
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- base | 3.6 kB 00:00:00
- epel | 4.7 kB 00:00:00
- extras | 2.9 kB 00:00:00
- updates | 2.9 kB 00:00:00
- (1/2): epel/x86_64/updateinfo | 1.0 MB 00:00:01
- (2/2): epel/x86_64/primary_db | 7.0 MB 00:00:02
- Package net-tools-2.0-0.25.20131004git.el7.x86_64 already installed and latest version
- Nothing to do
- 命令:[root@iZrj97x1vs43j8xzi1p05bZ ~]# yum install net-tools
- 2、安装vim、epel、strongswan
- 命令:[root@iZrj97x1vs43j8xzi1p05bZ ~]# yum install vim
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- Package 2:vim-enhanced-7.4.629-8.el7_9.x86_64 already installed and latest version
- Nothing to do
- 命令:[root@iZrj97x1vs43j8xzi1p05bZ ~]# yum install epel-release
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- Resolving Dependencies
- --> Running transaction check
- ---> Package epel-release.noarch 0:7-14 will be installed
- --> Finished Dependency Resolution
- Dependencies Resolved
- ==============================================================================================================================================================================================================
- Package Arch Version Repository Size
- ==============================================================================================================================================================================================================
- Installing:
- epel-release noarch 7-14 epel 15 k
- Transaction Summary
- =================================
- 命令:[root@iZrj97x1vs43j8xzi1p05bZ ~]# yum install vim