23 lines
464 B
Markdown
23 lines
464 B
Markdown
# Cns 一键脚本
|
|
```
|
|
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
|
|
```
|
|
# 卸载 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
|
|
```
|
|
# 查看端口占用 netstat -anlp | grep '8080.*LISTEN'
|
|
|
|
|
|
|
|
|
|
|