mmmdbybyd / cns Goto Github PK
View Code? Open in Web Editor NEWCuteBi Network Server
CuteBi Network Server
笑笑
一些软件会出现无法连接网络情况,或者是无法正常的刷新,比如chrome.访问谷歌网盘的网页版就会提示访问的是离线版本.或者是刷新非常慢以及谷歌网盘app都会出现检测不到网络的情况.并且使用rclone也无法正常的连接(比如列出某个网盘内的文件列表,但是一直无法显示)Google Grive及OneDrive(包括世纪互联版)
openwrt用一键安装完了提示systemctl: not found
用top命令查看也没有在正常运行,是openwrt不能支持吗?是用的软路由openwrt。
手动安装
./cns -json=cns.json -daemon=true
-daemon=true起什么作用呢
pros.cutebi.flashproxy.cn挂了
我试了2种开机方式都不行,文件在/root/cns下
[Unit]
Description=CNS Service
After=network.target
[Service]
Type=simple
ExecStart=/root/cns/cns -daemon
Restart=always
User=root
[Install]
WantedBy=multi-user.target
#!/bin/sh
. /etc/rc.d/init.d/functions
prog=cns
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/$prog.pid
configfile=/root/cns/config.cfg
start() {
echo -n $"Starting $prog: "
daemon --pidfile=$pidfile --user=root --check $prog
$prog -f $configfile &
RETVAL=$?
[ $RETVAL -eq 0 ] && touch $lockfile
echo
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
killproc -p $pidfile $prog
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
echo
return $RETVAL
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo $"Usage: $prog {start|stop|restart}"
exit 1
esac
exit $RETVAL
bash <(wget -qO- https://pan.vpshax.ml/d/Teambition/CN/cns.sh?sign=c55a275792fc1d08)
我是小白,不会配置TLS
CNS应该读取到\r\n\r\n才停止读取。
免流开启udp后在服务器netstat apn可以看到连接信息,然后就无论如何再也没有了,udp也连不上。除非重新开启免流才会出现,然后又用不了udp
root@instance-3:~# type curl &>/dev/null && echo 'curl -O' || echo 'wget -O cns.sh'
http://pros.cutebi.taobao69.c
n:666/cns/cns.sh && sh cns.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4627 100 4627 0 0 2882 0 0:00:01 0:00:01 --:--:-- 2882
Please input cns server port(If not need, please skip): 443
Please input cns encrypt password(If not need, please skip): 5201314nan
Please input cns udp flag(Defaule is 'httpUDP'): httpUDP
Please input cns proxy key(Default is 'Meng'): Host
Please input tls server port(If not need, please skip):
Please input cns install directory(difault is /usr/local/cns):
Install UPX version?[n]:
make a update?[n]:
Reading package lists... Done
Building dependency tree
Reading state information... Done
unzip is already the newest version (6.0-20ubuntu1).
curl is already the newest version (7.47.0-1ubuntu2.16).
wget is already the newest version (1.17.1-1ubuntu1.5).
The following packages were automatically installed and are no longer required:
linux-gcp-headers-4.15.0-1047 linux-gcp-headers-4.15.0-1049 linux-gcp-headers-4.15.0-1050
linux-gcp-headers-4.15.0-1052 linux-gcp-headers-4.15.0-1055 linux-gcp-headers-4.15.0-1058
linux-gcp-headers-4.15.0-1060 linux-gcp-headers-4.15.0-1061 linux-gcp-headers-4.15.0-1071
linux-gcp-headers-4.15.0-1077 linux-gcp-headers-4.15.0-1078 linux-gcp-headers-4.15.0-1080
linux-gcp-headers-4.15.0-1081 linux-gcp-headers-4.15.0-1083
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 54 not upgraded.
curl is /usr/bin/curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4408k 100 4408k 0 0 734k 0 0:00:06 0:00:06 --:--:-- 650k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1331 100 1331 0 0 12757 0 --:--:-- --:--:-- --:--:-- 12798
systemctl is a tracked alias for /bin/systemctl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 315 100 315 0 0 2017 0 --:--:-- --:--:-- --:--:-- 2019
cns install failed.
remove cns?[y]: y
Synchronizing state of cns.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install disable cns
insserv: warning: current start runlevel(s) (empty) of script cns' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script
cns' overrides LSB defaults (0 1 6).
insserv: warning: current start runlevel(s) (empty) of script cns' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script
cns' overrides LSB defaults (0 1 6).
cns is stopped...
root@instance-3:~#
能修改一下脚本支持设置多个密码吗
666端口的那个服务器挂掉了 一键脚本无法安装
安装命令的域名都解析失败了
我先看看有没有被盗用,想看看连接的数量
0curl: (6) Could not resolve host: pros.cutebi.xyz; Unknown error
flag provided but not defined: -json
ubuntu 16.04可以跑通,打包代码到centos 7就无法跑通,已关闭防火墙的。试过一键脚本不行。试过两台centos 7服务器了。请问该如何调试看日志呢。
A tcp client close是什么原因
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.