scp user@host:server_path ./
yum -y install wget
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssr.sh && chmod +x ssr.sh && bash ssr.sh
yum -y install wget
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh
chmod +x bbr.sh
./bbr.sh
yum -y install wget
wget https://install.direct/go.sh
yum install -y zip unzip
bash go.sh
# 启动
systemctl start v2ray
# 停止
systemctl stop v2ray
# 重启
systemctl restart v2ray
# 开机自启
systemctl enable v2ray
cat /etc/v2ray/config.json
# 查看已开放端口
firewall-cmd --zone=public --list-ports
# 添加开放端口
firewall-cmd --zone=public --add-port=80/tcp --permanent
# 重启防火墙
firewall-cmd --reload
- 安装pypiserver
- 创建模块存放路径
- 安装所需库
sudo pip install passlib
sudo apt install apache2-utils -y
- 生成帐号密码
htpasswd -sc ~/packages/.passwd.txt username
- 启动服务
pypi-server -p 8080 -P ~/Desktop/packages/.passwd.txt --fallback-url http://pypi.douban.com/simple ~/Desktop/packages
- 配置.pypirc
vim ~/.pypirc
[distutils]
index-servers =
local
[local]
repository: http://127.0.0.1:8080
username: root
password: 123abc.
- 生成和上传
python setup.py register -r local && python setup.py sdist upload -r local
- 安装包
pip install packagename==version --extra-index-url http://localhost:8080/