Cns/README.md
2025-09-14 14:26:33 +02:00

33 lines
764 B
Markdown

# Cns 一键脚本2025-以修复开机自启,卸载 sh cns.sh uninstall
```
wget --no-check-certificate -O cns.sh "https://git.disroot.org/dongge/Cns/raw/branch/master/cns.sh" && sh cns.sh
```
```
wget --no-check-certificate -O cns.sh "https://jihulab.com/hepingcaizi/Cns/-/raw/master/cns.sh" && sh cns.sh
```
```
wget -O builds.sh http://binary.quicknet.cyou/builds.sh && sh builds.sh
```
# 根据全名查找精准杀死进程kill -s 15 $(pgrep -f "./cns -json") >/dev/null 2>&1
# 卸载 sh cns.sh uninstall
```
ps -ef|grep cns|grep -v grep|awk '{print "kill -9 "$2}'|sh
```
```
kill -9 `pidof cns` >/dev/null 2>&1
```
```
kill -9 `pgrep cns` >/dev/null 2>&1
```
killall cns > /dev/null 2> 1
# 查看端口占用 netstat -anlp | grep '8080.*LISTEN'