Centos7 安装Nat123

Centos7 安装Nat123

参考

  1. 官方文档: 地址
  2. mono独立安装参考:地址
  3. 本教程其实就是整合上面2篇文章,详细过程,可查看上面链接

安装

  1. 本地系统环境更新
    yum update

  2. 运行环境mono安装

    1. yum install mono-complete 没有找到资源执行
      yum install mono-devel或者yum install monoDevelop或者yum install monodevelop
    2. 以上都没有找到资源则需要自己手动安装,这里选择自己配置yum镜像资源
      1. 执行以下

         yum install yum-utils
         rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
         yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
        
      2. 配置完后怎么安装呢?上面的地址给了一句话:

        Run a package upgrade to upgrade existing packages to the latest available. Then install Mono as described in the Usage section.

        查看Usage是这样的:

        The package mono-devel should be installed to compile code.

        The package mono-complete should be installed to install everything - this should cover most cases of “assembly not found” errors.

        The package referenceassemblies-pcl should be installed for PCL compilation support - this will resolve most cases of “Framework not installed: .NETPortable” errors during software compilation.

        The package ca-certificates-mono should be installed to get SSL certificates for HTTPS connections. Install this package if you run into trouble making HTTPS connections.

        The module mono-xsp4 should be installed for running ASP.NET applications.

        那么问题来了,到底怎么安装???其实上面的意思就是这样:

        yum upgrade
        yum install mono-complete

        安装的时候可能报错:No more mirrors to try
        yum clean all //清理yum缓存,使设置生效
        yum makecache //将服务器上的软件包信息缓存到本地,以提高搜索安装软件的速度
        yum -y update //更新本地yum

      3. 查看安装结果
        mono -V

  3. 客户端安装

     1.cd  /opt/nat123          ——将opt/nat123换成是自己本地实际目标安装目录
     2.wget  http://www.nat123.com/down/nat123linux.tar.gz    
     3. gunzip nat123linux.tar.gz  (文件格式是.gz  可以通过file xxx.tar.gz 
     	查看属性在执行,如果是tar文件,则跳过这步)  
     4. tar  -zxvf  nat123linux.tar                                         解压本地目录
    
  4. 客户端启动

    1. yum install screen
    2. cd /opt/nat123 --可以是自己安装得目录
    3. screen -S nat123
    4. mono nat123linux.sh
      系统会提示输入账号密码(账号密码去nat123官方注册)
  5. 使用例子(外网win环境 通过ssh链接内网linux)
    官网教程地址

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值