内网穿透之Linux版客户端安装(神卓互联)

选择Linux系统版本

获取安装包 :https://www.shenzhuohl.com/download.html

这里以Ubuntu 18.04为例,其它版本方法类似

登录Ubuntu操作系统:

打开Ubuntu系统终端,更新版本
复制代码
apt-get update

安装运行环境:

安装C++ 运行环境 切换到root 权限安装运行环境
复制代码
sudo su
apt-get install g++

如果是Centos系统,输入以下命令进行系统初始化(其它步骤和Ubuntu一致)

复制代码
yum install gcc gcc-c++ wget -y

下载和安装神卓互联内网穿透客户端:

复制代码
mkdir /usr/local/shenzhuo
cd /usr/local/shenzhuo
下载完成后执行以下命令进行解压
复制代码
tar -xf shenzhuo.tar
解压成功后得到两个文件,分别为client和libprotobuf.so.28,(运行时请确保libprotobuf.so.28这个依赖文件和client在同一个目录下)
给运行权限赋值
复制代码
chmod +x client

注册系统服务和开机自启动

编写脚本
复制代码
vi /etc/systemd/system/shenzhuo.service

[Unit]
Description=shenzhuohulian Service
After=network.target
[Service]
Type=simple
WorkingDirectory=/usr/local/shenzhuo
ExecStart=/usr/local/shenzhuo/client 18800000000 123456
ExecStop=/bin/kill -2
Restart=always
StartLimitBurst=0
[Install]
WantedBy=multi-user.target
使配置文件生效
复制代码
chmod +x /etc/systemd/system/shenzhuo.service
systemctl daemon-reload
systemctl restart shenzhuo
systemctl enable shenzhuo
systemctl enable shenzhuo
到此,Linux版已安装完成,如您在控制台创建或者修改了映射通道后,需要重启服务生效,即
复制代码
systemctl restart shenzhuo
相关推荐
冰橙子id27 分钟前
linux——磁盘和文件系统管理
linux·运维·服务器
咕噜企业签名分发-淼淼27 分钟前
应用app的服务器如何增加高并发
运维·服务器
b***25111 小时前
18650锂电池组点焊机:高效组装锂电池的关键工具|比斯特自动化
运维·自动化
leagsoft_10031 小时前
联软NSPM自动化策略管理 助力上交所加速国产化替代提升运维效率
运维·网络·自动化
无聊的小坏坏1 小时前
环境变量深度解析:从配置到内核的全链路指南
linux·bash
才鲸嵌入式1 小时前
01 Ubuntu20.04下编译QEMU8.2.4,交叉编译32位ARM程序,运行ARM程序的方法
linux·c语言·单片机·嵌入式·arm·qemu·虚拟机
Mikhail_G2 小时前
Python应用函数调用(二)
大数据·运维·开发语言·python·数据分析
来鸟 鸣间2 小时前
vscode 连接远程服务器
服务器·ide·vscode
伤不起bb3 小时前
Kafka 消息队列
linux·运维·分布式·kafka
Hello.Reader3 小时前
Git 安装全攻略Linux、macOS、Windows 与源码编译
linux·git·macos