内网穿透之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
相关推荐
2401_826097623 小时前
JavaEE-Linux环境部署
java·linux·java-ee
(:满天星:)4 小时前
第31篇:块设备与字符设备管理深度解析(基于OpenEuler 24.03)
linux·运维·服务器·网络·centos
小陶来咯4 小时前
【仿muduo库实现并发服务器】Acceptor模块
运维·服务器
爱莉希雅&&&4 小时前
shell编程之awk命令详解
linux·服务器·git
笑稀了的野生俊4 小时前
在服务器中下载 HuggingFace 模型:终极指南
linux·服务器·python·bash·gpu算力
cui_hao_nan4 小时前
Docker后端部署
运维·docker·容器
渡我白衣5 小时前
Linux操作系统之文件(四):文件系统(上)
linux
ZZH1120KQ5 小时前
Linux系统安全及应用
linux·运维·系统安全
程序漫游人6 小时前
centos8.5安装jdk21详细安装教程
java·linux
小扎仙森6 小时前
关于服务器宝塔转移wordperss子比主题问题
运维·服务器