内网穿透ubuntu20 docker coplar
sudo apt-get install curl
curl -L https://www.cpolar.com/static/downloads/install-release-cpolar.sh | sudo bash
ubuntu-base报错 /sbin/init:No such file or directory解决办法
apt install systemd
命令安装即可
cpolar version
1.3 token认证
登录cpolar官网后台,点击左侧的验证,查看自己的认证token,之后将token贴在命令行里
cpolar authtoken xxxxxxx
1.4 简单穿透测试一下
cpolar http 8080
1.5 将cpolar配置为后台服务并开机自启动
sudo systemctl enable cpolar
1.6 启动服务
sudo systemctl start cpolar
1.7 查看服务状态
sudo systemctl status cpolar
在执行sudo systemctl start cpolar报错
sudo systemctl start cpolar
System has not been booted with systemd as init system (PID 1). Can’t operate.
Failed to connect to bus: Host is down
解决方法:
sudo apt-get install aptitude
sudo aptitude install systemctl
完成
https://www.cpolar.com/blog/linux-system-installation-cpolar