比赛,需要用到web调用控制台。
wetty实现了web+tty这种功能,而且比较轻便。
但是这种给客户用,是不是有点不安全。
- 环境:centos
- 配置:node >=6.9,make,python,build-essential
安装build-essential
yum install make automake gcc gcc-c++ kernel-devel
安装yarn
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
#如果没有node.js
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
#我没有配置环境变量
sudo yum install yarn
安装wetty
yarn global add wetty
安装acme.sh&使用其生成证书
https://github.com/acmesh-official/acme.sh
curl https://get.acme.sh | sh
因为只要用一周,不需要配置Nginx那些东西,直接采用DNS解析判断的方式去申请。
acme.sh --issue --dns -d mydomain.com
#去做txt解析
acme.sh --renew -d mydomain.com
最后找到证书的位置指定并启动
./wetty --sslkey ./web_test/xx.key --sslcert ./web_test/xx.cer -p 857857857