添加自定义端口功能,添加卸载功能

pull/2/head
dovela 2018-06-27 00:32:40 +08:00 committed by GitHub
parent a95b36038b
commit 04c12146dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -70,6 +70,11 @@ install_sss(){
esac esac
} }
delete_sss(){
kill -9 $(lsof -i:35601 |awk '{print $2}' | tail -n 1)
rm -rf ServerStatus
}
run_linux(){ run_linux(){
nohup python client-linux.py >> serverstatus.log 2>&1 & nohup python client-linux.py >> serverstatus.log 2>&1 &
cd ../.. cd ../..
@ -108,10 +113,11 @@ echo -e " 默认端口35601出现问题请在 https://github.com/dovela/Serve
3.运行 client_psutil 3.运行 client_psutil
4.停止运行 4.停止运行
5.首次安装linux依赖直接安装失败请执行 5.首次安装linux依赖直接安装失败请执行
6.卸载ServerStatus
———————————— ————————————
输入数字开始或ctrl + c退出 输入数字开始或ctrl + c退出
" "
echo && stty erase '^H' && read -p " 请输入数字[1-5]:" num echo && stty erase '^H' && read -p " 请输入数字[1-6]:" num
case "$num" in case "$num" in
1) 1)
install_sss install_sss
@ -130,6 +136,9 @@ echo && stty erase '^H' && read -p " 请输入数字[1-5]:" num
5) 5)
install_env install_env
;; ;;
6)
delete_sss
;;
*) *)
echo -e "${Error} 请输入正确的数字 [1-5]!" echo -e "${Error} 请输入正确的数字 [1-5]!"
;; ;;