//GCP启用root密码登录
sudo su
vi /etc/ssh/sshd_config
service sshd restart

//一般从这里开始复制
//改密码
passwd
//部分机器没装wget和git和net-tools
yum install wget
yum install git
yum install net-tools
//依赖
yum -y groupinstall "Development Tools"
wget https://github.com/jedisct1/libsodium/releases/download/1.0.16/libsodium-1.0.16.tar.gz
tar xf libsodium-1.0.16.tar.gz && cd libsodium-1.0.16
./configure && make -j2 && make install
echo /usr/local/lib > /etc/ld.so.conf.d/usr_local_lib.conf
ldconfig
cd /root
yum -y install python-setuptools
easy_install pip
//软件
git clone -b manyuser https://github.com/RenZYi/modv3ssr.git
mv modv3ssr shadowsocks
cd shadowsocks
pip install -r requirements.txt
cp apiconfig.py userapiconfig.py
cp config.json user-config.json
systemctl stop firewalld.service

//改配置
vi userapiconfig.py

//测试启动
python server.py

//启动并查看端口
./logrun.sh
netstat -ntlp

//安装cloudxns ddns
wget https://ping.mwash.cc/***/c.sh --no-check-certificate
vi c.sh

//修改域名
bash c.sh
chmod +x ./c.sh
crontab -e

//加入一行
*/1 * * * * /root/c.sh &> /dev/null

//服务器监控
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/status.sh && chmod +x status.sh
bash status.sh c

发表评论

电子邮件地址不会被公开。 必填项已用*标注