itgoyo / 500Days-Of-Github

⭐ 瞎JB折腾Mac/Linux/Windows过程中遇到的所有问题和解决方式 ⭐
https://itgoyo.github.io/500Days-Of-Github
138 stars 13 forks source link

威联通使用client-psutil.py来连接服务器对接serverstatus #288

Open itgoyo opened 2 years ago

itgoyo commented 2 years ago
 whereis pip
  414  cd
  415  opkg
  416  opkg install python3
  417  sudo opkg install python3
  418  python3
  419  ls
  420  pip install tiptop
  421  pip3 install tiptop
  422  ls
  423  cd
  424  rm get-pip.py 
  425  curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  426  ls
  427  python3 get-pip.py
  428  ls
  429  pip install tiotop
  430  pip install tiptop
  431  pip3 install tiptop
  432  /share/homes/itgoyo/.local/bin/pip install tiptop
  433  /share/homes/itgoyo/.local/bin/pip install tiptop
  434  /share/homes/itgoyo/.local/bin/pip install tiptop -i https://pypi.tuna.tsinghua.edu.cn/simple
  435  tiptop
  436  /share/homes/itgoyo/.local/bin/tiptop
  437  df -h

https://github.com/Entware/Entware/wiki/Install-on-QNAP-NAS

opkg 支持的软件列表 http://pkg.entware.net/binaries/x86-64/Packages.html

sudo opkg install python3

想使用python3的话,要先运行

source /etc/profile.d/python3.bash

python3 client-psutil.py

后台一直运行的命令:

nohup python3 client-psutil.py &

在配置文件里面修改好对应的账号密码即可

最新版本成功:

/share/homes/itgoyo/.local/bin/pip

/share/homes/itgoyo/.local/bin/pip install biliup -i https://pypi.tuna.tsinghua.edu.cn/simple

/share/homes/itgoyo/.local/bin/biliup
 python3 client-psutil.py SERVER=42.193.2.xx USER=qnas PASSWORD=xxx45 >/dev/null 2>&1 &
itgoyo commented 1 year ago

/opt/bin/nohup python3 client-psutil.py &