Giter VIP home page Giter VIP logo

cns's People

Contributors

mmmdbybyd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cns's Issues

无网

一些软件会出现无法连接网络情况,或者是无法正常的刷新,比如chrome.访问谷歌网盘的网页版就会提示访问的是离线版本.或者是刷新非常慢以及谷歌网盘app都会出现检测不到网络的情况.并且使用rclone也无法正常的连接(比如列出某个网盘内的文件列表,但是一直无法显示)Google Grive及OneDrive(包括世纪互联版)

请问如何设置开机启动

我试了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

chkconfig: 345 99 10

description: cns daemon

processname: cns

pidfile: /var/run/cns.pid

configfile: /root/cns/config.cfg

Source function library.

. /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
}

See how we were called.

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo $"Usage: $prog {start|stop|restart}"
exit 1
esac

exit $RETVAL

一键搭建安装cns失败

你好我用一键搭建在家里openwrt路由器上搭建cns0.3提示失败不知是什么原因?以前用这个脚本搭建0.22是没有问题的。
IMG_20200705_233813

udp

免流开启udp后在服务器netstat apn可以看到连接信息,然后就无论如何再也没有了,udp也连不上。除非重新开启免流才会出现,然后又用不了udp

cns install failed.

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:~#

安装不了了

0curl: (6) Could not resolve host: pros.cutebi.xyz; Unknown error

0.3.3

flag provided but not defined: -json

centos7无法跑通,连接是通的。

ubuntu 16.04可以跑通,打包代码到centos 7就无法跑通,已关闭防火墙的。试过一键脚本不行。试过两台centos 7服务器了。请问该如何调试看日志呢。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.