Skip to content

Latest commit

 

History

History
103 lines (76 loc) · 1.55 KB

File metadata and controls

103 lines (76 loc) · 1.55 KB

Command

scp user@host:server_path ./

VPS

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

V2Ray

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

私有PyPi

  1. 安装pypiserver
pip install pypiserver
  1. 创建模块存放路径
mkdir ~/packages
  1. 安装所需库
sudo pip install passlib
sudo apt install apache2-utils -y
  1. 生成帐号密码
htpasswd -sc ~/packages/.passwd.txt username
  1. 启动服务
pypi-server -p 8080 -P ~/Desktop/packages/.passwd.txt --fallback-url http://pypi.douban.com/simple  ~/Desktop/packages
  1. 配置.pypirc
vim ~/.pypirc

[distutils]
index-servers =
  local
[local]
repository: http://127.0.0.1:8080
username: root
password: 123abc.
  1. 生成和上传
python setup.py register -r local && python setup.py sdist upload -r local
  1. 安装包
pip install packagename==version --extra-index-url http://localhost:8080/