Last login: Thu Sep 14 09:31:59 on console
ZhangShuDa:~ apple$ ssh root 118.190.151.203
ssh: Could not resolve hostname root: nodename nor servname provided, or not known
ZhangShuDa:~ apple$ ssh 118.190.151.203 root
The authenticity of host '118.190.151.203 (118.190.151.203)' can't be established.
RSA key fingerprint is a4:0f:59:c0:de:4f:43:87:55:b9:bc:88:20:76:30:43.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '118.190.151.203' (RSA) to the list of known hosts.
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied (publickey,password).
ZhangShuDa:~ apple$ ssh 118.190.151.203
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
ZhangShuDa:~ apple$
ZhangShuDa:~ apple$ ssh 118.190.151.203 root
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
ZhangShuDa:~ apple$
ZhangShuDa:~ apple$ ssh 118.190.151.203
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
ZhangShuDa:~ apple$
ZhangShuDa:~ apple$ ping 118.190.151.203
PING 118.190.151.203 (118.190.151.203): 56 data bytes
64 bytes from 118.190.151.203: icmp_seq=0 ttl=52 time=36.027 ms
64 bytes from 118.190.151.203: icmp_seq=1 ttl=52 time=20.227 ms
64 bytes from 118.190.151.203: icmp_seq=2 ttl=52 time=18.687 ms
^C
--- 118.190.151.203 ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 18.687/24.980/36.027/7.836 ms
ZhangShuDa:~ apple$
ZhangShuDa:~ apple$ ssh 118.190.151.203
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
ZhangShuDa:~ apple$
ZhangShuDa:~ apple$ ssh 118.190.151.203 root zhang@041283
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
ZhangShuDa:~ apple$
ZhangShuDa:~ apple$ ssh [email protected]
[email protected]'s password:
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-62-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Welcome to Alibaba Cloud Elastic Compute Service !
root@iZm5ebp9x1yjg86dz192w5Z:~# useradd -d /home/zero -m zero
root@iZm5ebp9x1yjg86dz192w5Z:~# passwd zero
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@iZm5ebp9x1yjg86dz192w5Z:~# ^C
root@iZm5ebp9x1yjg86dz192w5Z:~# ^C
root@iZm5ebp9x1yjg86dz192w5Z:~# exit
logout
Connection to 118.190.151.203 closed.
ZhangShuDa:~ apple$ ssh [email protected]
[email protected]'s password:
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-62-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Welcome to Alibaba Cloud Elastic Compute Service !
$ ls
$ cd /home
$ ls
zero
$ cd zero
$ ls
$ ll
-sh: 6: ll: not found
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo: unable to resolve host iZm5ebp9x1yjg86dz192w5Z
[sudo] password for zero:
zero is not in the sudoers file. This incident will be reported.
$ ^C
$ ^C
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo: unable to resolve host iZm5ebp9x1yjg86dz192w5Z
[sudo] password for zero:
Sorry, try again.
[sudo] password for zero:
zero is not in the sudoers file. This incident will be reported.
$ ^C
$ ^C
$ exit
Connection to 118.190.151.203 closed.
ZhangShuDa:~ apple$ ssh [email protected]
[email protected]'s password:
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-62-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Welcome to Alibaba Cloud Elastic Compute Service !
Last login: Thu Sep 14 10:00:04 2017 from 222.128.81.10
root@iZm5ebp9x1yjg86dz192w5Z:~# curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo: unable to resolve host iZm5ebp9x1yjg86dz192w5Z
## Installing the NodeSource Node.js v8.x repo...
## Populating apt-get cache...
+ apt-get update
Get:1 http://mirrors.cloud.aliyuncs.com/ubuntu xenial InRelease [247 kB]
Get:2 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security InRelease [102 kB]
Get:4 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/main Sources [868 kB]
Get:5 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/universe Sources [7,728 kB]
Get:6 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/main amd64 Packages [1,201 kB]
Get:7 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/main i386 Packages [1,196 kB]
Get:8 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/main Translation-en [568 kB]
Get:9 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/universe amd64 Packages [7,532 kB]
Get:10 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/universe i386 Packages [7,512 kB]
Get:11 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/universe Translation-en [4,354 kB]
Get:12 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main Sources [275 kB]
Get:13 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/universe Sources [174 kB]
Get:14 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main amd64 Packages [637 kB]
Get:15 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main i386 Packages [610 kB]
Get:16 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main Translation-en [263 kB]
Get:17 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/universe amd64 Packages [540 kB]
Get:18 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/universe i386 Packages [518 kB]
Get:19 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/universe Translation-en [214 kB]
Get:20 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main Sources [91.6 kB]
Get:21 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/universe Sources [42.4 kB]
Get:22 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main amd64 Packages [356 kB]
Get:23 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main i386 Packages [333 kB]
Get:24 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main Translation-en [156 kB]
Get:25 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/universe amd64 Packages [168 kB]
Get:26 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/universe i386 Packages [147 kB]
Get:27 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/universe Translation-en [88.3 kB]
Fetched 36.0 MB in 7s (4,639 kB/s)
Reading package lists... Done
## Confirming "xenial" is supported...
+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_8.x/dists/xenial/Release'
## Adding the NodeSource signing key to your keyring...
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
OK
## Creating apt sources list file for the NodeSource Node.js v8.x repo...
+ echo 'deb https://deb.nodesource.com/node_8.x xenial main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_8.x xenial main' >> /etc/apt/sources.list.d/nodesource.list
## Running `apt-get update` for you...
+ apt-get update
Hit:1 http://mirrors.cloud.aliyuncs.com/ubuntu xenial InRelease
Hit:2 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates InRelease
Hit:3 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security InRelease
Get:4 https://deb.nodesource.com/node_8.x xenial InRelease [4,646 B]
Get:5 https://deb.nodesource.com/node_8.x xenial/main Sources [761 B]
Get:6 https://deb.nodesource.com/node_8.x xenial/main amd64 Packages [1,005 B]
Get:7 https://deb.nodesource.com/node_8.x xenial/main i386 Packages [1,000 B]
Fetched 7,412 B in 1s (5,812 B/s)
Reading package lists... Done
## Run `apt-get install nodejs` (as root) to install Node.js v8.x and npm
root@iZm5ebp9x1yjg86dz192w5Z:~# apt-get install -y nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 95 not upgraded.
Need to get 12.8 MB of archives.
After this operation, 59.0 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_8.x xenial/main amd64 nodejs amd64 8.5.0-1nodesource1 [12.8 MB]
Fetched 12.8 MB in 5min 51s (36.3 kB/s)
Selecting previously unselected package nodejs.
(Reading database ... 67806 files and directories currently installed.)
Preparing to unpack .../nodejs_8.5.0-1nodesource1_amd64.deb ...
Unpacking nodejs (8.5.0-1nodesource1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up nodejs (8.5.0-1nodesource1) ...
root@iZm5ebp9x1yjg86dz192w5Z:~# node
> 1+1
2
>
(To exit, press ^C again or type .exit)
>
root@iZm5ebp9x1yjg86dz192w5Z:~# apt-get install mongodb"
> ^C
root@iZm5ebp9x1yjg86dz192w5Z:~# apt-get install mongodb
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libboost-filesystem1.58.0 libboost-program-options1.58.0 libgoogle-perftools4 libpcrecpp0v5 libsnappy1v5 libtcmalloc-minimal4 libunwind8 libv8-3.14.5 libyaml-cpp0.5v5
mongodb-clients mongodb-server
The following NEW packages will be installed:
libboost-filesystem1.58.0 libboost-program-options1.58.0 libgoogle-perftools4 libpcrecpp0v5 libsnappy1v5 libtcmalloc-minimal4 libunwind8 libv8-3.14.5 libyaml-cpp0.5v5 mongodb
mongodb-clients mongodb-server
0 upgraded, 12 newly installed, 0 to remove and 95 not upgraded.
Need to get 57.9 MB of archives.
After this operation, 196 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/main amd64 libpcrecpp0v5 amd64 2:8.38-3.1 [15.2 kB]
Get:2 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main amd64 libboost-filesystem1.58.0 amd64 1.58.0+dfsg-5ubuntu3.1 [37.5 kB]
Get:3 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main amd64 libboost-program-options1.58.0 amd64 1.58.0+dfsg-5ubuntu3.1 [138 kB]
Get:4 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main amd64 libtcmalloc-minimal4 amd64 2.4-0ubuntu5.16.04.1 [105 kB]
Get:5 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/main amd64 libunwind8 amd64 1.1-4.1 [46.5 kB]
Get:6 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main amd64 libgoogle-perftools4 amd64 2.4-0ubuntu5.16.04.1 [187 kB]
Get:7 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/universe amd64 libv8-3.14.5 amd64 3.14.5.8-5ubuntu2 [1,189 kB]
Get:8 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/universe amd64 libyaml-cpp0.5v5 amd64 0.5.2-3 [158 kB]
Get:9 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/main amd64 libsnappy1v5 amd64 1.1.3-2 [16.0 kB]
Get:10 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/universe amd64 mongodb-clients amd64 1:2.6.10-0ubuntu1 [48.6 MB]
Get:11 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/universe amd64 mongodb-server amd64 1:2.6.10-0ubuntu1 [7,425 kB]
Get:12 http://mirrors.cloud.aliyuncs.com/ubuntu xenial/universe amd64 mongodb amd64 1:2.6.10-0ubuntu1 [5,112 B]
Fetched 57.9 MB in 11s (4,905 kB/s)
Selecting previously unselected package libpcrecpp0v5:amd64.
(Reading database ... 71493 files and directories currently installed.)
Preparing to unpack .../libpcrecpp0v5_2%3a8.38-3.1_amd64.deb ...
Unpacking libpcrecpp0v5:amd64 (2:8.38-3.1) ...
Selecting previously unselected package libboost-filesystem1.58.0:amd64.
Preparing to unpack .../libboost-filesystem1.58.0_1.58.0+dfsg-5ubuntu3.1_amd64.deb ...
Unpacking libboost-filesystem1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Selecting previously unselected package libboost-program-options1.58.0:amd64.
Preparing to unpack .../libboost-program-options1.58.0_1.58.0+dfsg-5ubuntu3.1_amd64.deb ...
Unpacking libboost-program-options1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Selecting previously unselected package libtcmalloc-minimal4.
Preparing to unpack .../libtcmalloc-minimal4_2.4-0ubuntu5.16.04.1_amd64.deb ...
Unpacking libtcmalloc-minimal4 (2.4-0ubuntu5.16.04.1) ...
Selecting previously unselected package libunwind8.
Preparing to unpack .../libunwind8_1.1-4.1_amd64.deb ...
Unpacking libunwind8 (1.1-4.1) ...
Selecting previously unselected package libgoogle-perftools4.
Preparing to unpack .../libgoogle-perftools4_2.4-0ubuntu5.16.04.1_amd64.deb ...
Unpacking libgoogle-perftools4 (2.4-0ubuntu5.16.04.1) ...
Selecting previously unselected package libv8-3.14.5.
Preparing to unpack .../libv8-3.14.5_3.14.5.8-5ubuntu2_amd64.deb ...
Unpacking libv8-3.14.5 (3.14.5.8-5ubuntu2) ...
Selecting previously unselected package libyaml-cpp0.5v5:amd64.
Preparing to unpack .../libyaml-cpp0.5v5_0.5.2-3_amd64.deb ...
Unpacking libyaml-cpp0.5v5:amd64 (0.5.2-3) ...
Selecting previously unselected package libsnappy1v5:amd64.
Preparing to unpack .../libsnappy1v5_1.1.3-2_amd64.deb ...
Unpacking libsnappy1v5:amd64 (1.1.3-2) ...
Selecting previously unselected package mongodb-clients.
Preparing to unpack .../mongodb-clients_1%3a2.6.10-0ubuntu1_amd64.deb ...
Unpacking mongodb-clients (1:2.6.10-0ubuntu1) ...
Selecting previously unselected package mongodb-server.
Preparing to unpack .../mongodb-server_1%3a2.6.10-0ubuntu1_amd64.deb ...
Unpacking mongodb-server (1:2.6.10-0ubuntu1) ...
Selecting previously unselected package mongodb.
Preparing to unpack .../mongodb_1%3a2.6.10-0ubuntu1_amd64.deb ...
Unpacking mongodb (1:2.6.10-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up libpcrecpp0v5:amd64 (2:8.38-3.1) ...
Setting up libboost-filesystem1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Setting up libboost-program-options1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Setting up libtcmalloc-minimal4 (2.4-0ubuntu5.16.04.1) ...
Setting up libunwind8 (1.1-4.1) ...
Setting up libgoogle-perftools4 (2.4-0ubuntu5.16.04.1) ...
Setting up libv8-3.14.5 (3.14.5.8-5ubuntu2) ...
Setting up libyaml-cpp0.5v5:amd64 (0.5.2-3) ...
Setting up libsnappy1v5:amd64 (1.1.3-2) ...
Setting up mongodb-clients (1:2.6.10-0ubuntu1) ...
Setting up mongodb-server (1:2.6.10-0ubuntu1) ...
Adding system user `mongodb' (UID 110) ...
Adding new user `mongodb' (UID 110) with group `nogroup' ...
Not creating home directory `/var/lib/mongodb'.
Adding group `mongodb' (GID 119) ...
Done.
Adding user `mongodb' to group `mongodb' ...
Adding user mongodb to group mongodb
Done.
insserv: can not symlink(../init.d/aegis, ../rc2.d/S02aegis): File exists
insserv: can not symlink(../init.d/aegis, ../rc3.d/S02aegis): File exists
insserv: can not symlink(../init.d/aegis, ../rc4.d/S02aegis): File exists
insserv: can not symlink(../init.d/aegis, ../rc5.d/S02aegis): File exists
Setting up mongodb (1:2.6.10-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
root@iZm5ebp9x1yjg86dz192w5Z:~# mongo
MongoDB shell version: 2.6.10
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
> 1+1
2
> ^C
bye
root@iZm5ebp9x1yjg86dz192w5Z:~# ^C
root@iZm5ebp9x1yjg86dz192w5Z:~# mongo
MongoDB shell version: 2.6.10
connecting to: test
> show dbs
admin (empty)
local 0.078GB
> ^C
bye
root@iZm5ebp9x1yjg86dz192w5Z:~# ^C
root@iZm5ebp9x1yjg86dz192w5Z:~# cd /var
root@iZm5ebp9x1yjg86dz192w5Z:/var# ls
backups cache lib local lock log mail opt run spool tmp
root@iZm5ebp9x1yjg86dz192w5Z:/var# cd lib
root@iZm5ebp9x1yjg86dz192w5Z:/var/lib# ls
AccountsService cloud dpkg insserv lsb mlocate ntp plymouth rpm systemd update-manager urandom vim
apparmor dbus initramfs-tools locales man-db mongodb os-prober python sgml-base ubuntu-release-upgrader update-notifier ureadahead xml-core
apt dhcp initscripts logrotate misc nssdb pam resolvconf sudo ucf update-rc.d usbutils
root@iZm5ebp9x1yjg86dz192w5Z:/var/lib# cd mongodb/
root@iZm5ebp9x1yjg86dz192w5Z:/var/lib/mongodb# ls
journal local.0 local.ns mongod.lock _tmp
root@iZm5ebp9x1yjg86dz192w5Z:/var/lib/mongodb# mkdir data
root@iZm5ebp9x1yjg86dz192w5Z:/var/lib/mongodb# ls
data journal local.0 local.ns mongod.lock _tmp
root@iZm5ebp9x1yjg86dz192w5Z:/var/lib/mongodb# cd data/
root@iZm5ebp9x1yjg86dz192w5Z:/var/lib/mongodb/data# mkdir db
root@iZm5ebp9x1yjg86dz192w5Z:/var/lib/mongodb/data# ls
db
root@iZm5ebp9x1yjg86dz192w5Z:/var/lib/mongodb/data# cd db
root@iZm5ebp9x1yjg86dz192w5Z:/var/lib/mongodb/data/db# cd
root@iZm5ebp9x1yjg86dz192w5Z:~# mongo
MongoDB shell version: 2.6.10
connecting to: test
> show dbs
admin (empty)
local 0.078GB
> sudo service mongodb stop^C
bye
root@iZm5ebp9x1yjg86dz192w5Z:~# ^C
root@iZm5ebp9x1yjg86dz192w5Z:~# sudo service mongodb stop
sudo: unable to resolve host iZm5ebp9x1yjg86dz192w5Z
root@iZm5ebp9x1yjg86dz192w5Z:~# sudo service mongodb start
sudo: unable to resolve host iZm5ebp9x1yjg86dz192w5Z
root@iZm5ebp9x1yjg86dz192w5Z:~# mongo
MongoDB shell version: 2.6.10
connecting to: test
> show dbs
admin (empty)
local 0.078GB
> use admin
switched to db admin
> show dbs
admin (empty)
local 0.078GB
> db.addUser("root","zero")
WARNING: The 'addUser' shell helper is DEPRECATED. Please use 'createUser' instead
Successfully added user: { "user" : "root", "roles" : [ "root" ] }
> ^C
bye
root@iZm5ebp9x1yjg86dz192w5Z:~# ^C
root@iZm5ebp9x1yjg86dz192w5Z:~# mongod –auth
Invalid command: –auth
Options:
General options:
-h [ --help ] show this usage information
--version show version information
-f [ --config ] arg configuration file specifying additional
options
-v [ --verbose ] [=arg(=v)] be more verbose (include multiple times for
more verbosity e.g. -vvvvv)
--quiet quieter output
--port arg specify port number - 27017 by default
--bind_ip arg comma separated list of ip addresses to
listen on - all local ips by default
--maxConns arg max number of simultaneous connections -
1000000 by default
--logpath arg log file to send write to instead of stdout
- has to be a file, not directory
--syslog log to system's syslog facility instead of
file or stdout
--syslogFacility arg syslog facility used for monogdb syslog
message
--logappend append to logpath instead of over-writing
--timeStampFormat arg Desired format for timestamps in log
messages. One of ctime, iso8601-utc or
iso8601-local
--pidfilepath arg full path to pidfile (if not set, no pidfile
is created)
--keyFile arg private key for cluster authentication
--setParameter arg Set a configurable parameter
--httpinterface enable http interface
--clusterAuthMode arg Authentication mode used for cluster
authentication. Alternatives are
(keyFile|sendKeyFile|sendX509|x509)
--nounixsocket disable listening on unix sockets
--unixSocketPrefix arg alternative directory for UNIX domain
sockets (defaults to /tmp)
--fork fork server process
--auth run with security
--noauth run without security
--ipv6 enable IPv6 support (disabled by default)
--jsonp allow JSONP access via http (has security
implications)
--rest turn on simple rest api
--slowms arg (=100) value of slow for profile and console log
--profile arg 0=off 1=slow, 2=all
--cpu periodically show cpu and iowait utilization
--sysinfo print some diagnostic system information
--dbpath arg directory for datafiles - defaults to
/data/db
--directoryperdb each database will be stored in a separate
directory
--noIndexBuildRetry don't retry any index builds that were
interrupted by shutdown
--noprealloc disable data file preallocation - will often
hurt performance
--nssize arg (=16) .ns file size (in MB) for new databases
--quota limits each database to a certain number of
files (8 default)
--quotaFiles arg number of files allowed per db, implies
--quota
--smallfiles use a smaller default file size
--syncdelay arg (=60) seconds between disk syncs (0=never, but not
recommended)
--upgrade upgrade db if needed
--repair run repair on all dbs
--repairpath arg root directory for repair files - defaults
to dbpath
--noscripting disable scripting engine
--notablescan do not allow table scans
--journal enable journaling
--nojournal disable journaling (journaling is on by
default for 64 bit)
--journalOptions arg journal diagnostic options
--journalCommitInterval arg how often to group/batch commit (ms)
--shutdown kill a running server (for init scripts)
Replication options:
--oplogSize arg size to use (in MB) for replication op log.
default is 5% of disk space (i.e. large is
good)
Master/slave options (old; use replica sets instead):
--master master mode
--slave slave mode
--source arg when slave: specify master as
--only arg when slave: specify a single database to
replicate
--slavedelay arg specify delay (in seconds) to be used when
applying master ops to slave
--autoresync automatically resync if slave data is stale
Replica set options:
--replSet arg arg is
--replIndexPrefetch arg specify index prefetching behavior (if
secondary) [none|_id_only|all]
Sharding options:
--configsvr declare this is a config db of a cluster;
default port 27019; default dir
/data/configdb
--shardsvr declare this is a shard db of a cluster;
default port 27018
SSL options:
--sslOnNormalPorts use ssl on configured ports
--sslMode arg set the SSL operation mode
(disabled|allowSSL|preferSSL|requireSSL)
--sslPEMKeyFile arg PEM file for ssl
--sslPEMKeyPassword arg PEM file password
--sslClusterFile arg Key file for internal SSL authentication
--sslClusterPassword arg Internal authentication key file password
--sslCAFile arg Certificate Authority file for SSL
--sslCRLFile arg Certificate Revocation List file for SSL
--sslWeakCertificateValidation allow client to connect without presenting a
certificate
--sslAllowInvalidHostnames Allow server certificates to provide
non-matching hostnames
--sslAllowInvalidCertificates allow connections to servers with invalid
certificates
--sslFIPSMode activate FIPS 140-2 mode at startup
root@iZm5ebp9x1yjg86dz192w5Z:~# mongo
MongoDB shell version: 2.6.10
connecting to: test
> use admin
switched to db admin
> show collections
system.indexes
system.users
system.version
> ^C
bye
root@iZm5ebp9x1yjg86dz192w5Z:~# ^C
root@iZm5ebp9x1yjg86dz192w5Z:~# cd/home
-bash: cd/home: No such file or directory
root@iZm5ebp9x1yjg86dz192w5Z:~# ls
root@iZm5ebp9x1yjg86dz192w5Z:~# cd /home
root@iZm5ebp9x1yjg86dz192w5Z:/home# ls
zero
root@iZm5ebp9x1yjg86dz192w5Z:/home# cd zero
root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls
root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls
root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls
1.pem config id_rsa id_rsa.pub known_hosts root2.pem
root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# rm -rf ./*
root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls
root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls
app app.js bower.json config gruntfile.js node_modules package.json public
root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# rm -rf node_modules
root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls
app app.js bower.json config gruntfile.js package.json public
root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# npm install -g cnpm --registry=https://registry.npm.taobao.org
/usr/bin/cnpm -> /usr/lib/node_modules/cnpm/bin/cnpm
added 647 packages in 20.492s
root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# cnpm install
⠏ [2/26] Installing [email protected]'m glad you to select ccap, enjoy it!
ccap is a cross plat form and portable nodejs simple captcha module, simple api and lightweight.
starting compile ccap! good luck!
⠹ [24/26] Installing rimraf@^2.2.8platform unsupported [email protected] › [email protected] › [email protected] › fsevents@^1.0.0 Package require os(darwin) not compatible with your platform(linux)
[fsevents@^1.0.0] optional install error: Package require os(darwin) not compatible with your platform(linux)
✔ Installed 26 packages
✔ Linked 452 latest versions
gyp http GET https://npm.taobao.org/mirrors/node/v8.5.0/node-v8.5.0-headers.tar.gz
gyp http 200 https://npm.taobao.org/mirrors/node/v8.5.0/node-v8.5.0-headers.tar.gz
gyp http GET https://npm.taobao.org/mirrors/node/v8.5.0/SHASUMS256.txt
gyp http 200 https://npm.taobao.org/mirrors/node/v8.5.0/SHASUMS256.txt
make: Entering directory '/home/zero/node_modules/[email protected]@ccap/build'
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jaricom.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcapimin.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcapistd.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcarith.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jccoefct.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jccolor.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcdctmgr.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jchuff.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcinit.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcmainct.o
../addon/jpeglib/jcmainct.c: In function ‘start_pass_main’:
../addon/jpeglib/jcmainct.c:71:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jcmainct.c: In function ‘process_data_simple_main’:
../addon/jpeglib/jcmainct.c:117:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jcmainct.c: In function ‘jinit_c_main_controller’:
../addon/jpeglib/jcmainct.c:247:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main;
^
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcmarker.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcmaster.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcomapi.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcparam.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcprepct.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcsample.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jctrans.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdapimin.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdapistd.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdarith.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdatadst.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdatasrc.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdcoefct.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdcolor.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jddctmgr.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdhuff.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdinput.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdmainct.o
../addon/jpeglib/jdmainct.c: In function ‘alloc_funny_pointers’:
../addon/jpeglib/jdmainct.c:162:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jdmainct.c: In function ‘make_funny_pointers’:
../addon/jpeglib/jdmainct.c:203:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jdmainct.c: In function ‘set_wraparound_pointers’:
../addon/jpeglib/jdmainct.c:243:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jdmainct.c: In function ‘set_bottom_pointers’:
../addon/jpeglib/jdmainct.c:272:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jdmainct.c: In function ‘start_pass_main’:
../addon/jpeglib/jdmainct.c:309:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jdmainct.c: In function ‘process_data_simple_main’:
../addon/jpeglib/jdmainct.c:349:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jdmainct.c: In function ‘process_data_context_main’:
../addon/jpeglib/jdmainct.c:389:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jdmainct.c: In function ‘jinit_d_main_controller’:
../addon/jpeglib/jdmainct.c:478:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main;
^
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdmarker.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdmaster.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdmerge.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdpostct.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdsample.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdtrans.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jerror.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jfdctflt.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jfdctfst.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jfdctint.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jidctflt.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jidctfst.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jidctint.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jquant1.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jquant2.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jutils.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jmemmgr.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jmemnobs.o
CXX(target) Release/obj.target/hcaptha/addon/hcaptha.o
CXX(target) Release/obj.target/hcaptha/addon/cap.o
../addon/cap.cc: In static member function ‘static int cap::save()’:
../addon/cap.cc:84:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int k = 0; k ^ ../addon/cap.cc:81:44: warning: unused variable ‘green’ [-Wunused-variable] const unsigned char red[] = { 255,0,0 }, green[] = { 0,255,0 }, blue[] = { 0,0,255 }; ^ ../addon/cap.cc:81:67: warning: unused variable ‘blue’ [-Wunused-variable] const unsigned char red[] = { 255,0,0 }, green[] = { 0,255,0 }, blue[] = { 0,0,255 }; ^ SOLINK_MODULE(target) Release/obj.target/hcaptha.node COPY Release/hcaptha.node make: Leaving directory '/home/zero/node_modules/[email protected]@ccap/build' node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v57-linux-x64.tar.gz ^C root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ^C root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# cnpm install ✔ Installed 26 packages ✔ Linked 0 latest versions ✔ Run 0 scripts ✔ All packages installed (used 22ms, speed 0B/s, json 0(0B), tarball 0B) root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# grunt No command 'grunt' found, did you mean: Command 'grun' from package 'grun' (universe) grunt: command not found root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# grunt No command 'grunt' found, did you mean: Command 'grun' from package 'grun' (universe) grunt: command not found root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls app app.js bower.json config gruntfile.js node_modules package.json public root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# cnom install -g grunt cnom: command not found root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# cnpm install grunt -g Downloading grunt to /usr/lib/node_modules/grunt_tmp Copying /usr/lib/node_modules/grunt_tmp/[email protected]@grunt to /usr/lib/node_modules/grunt Installing grunt's dependencies to /usr/lib/node_modules/grunt/node_modules [1/16] grunt-known-options@~1.1.0 installed at node_modules/[email protected]@grunt-known-options [2/16] exit@~0.1.1 installed at node_modules/[email protected]@exit [3/16] coffee-script@~1.10.0 installed at node_modules/[email protected]@coffee-script [4/16] eventemitter2@~0.4.13 installed at node_modules/[email protected]@eventemitter2 [5/16] minimatch@~3.0.0 existed at node_modules/[email protected]@minimatch [6/16] nopt@~3.0.6 existed at node_modules/[email protected]@nopt [7/16] path-is-absolute@~1.0.0 existed at node_modules/[email protected]@path-is-absolute [8/16] findup-sync@~0.3.0 installed at node_modules/[email protected]@findup-sync [9/16] iconv-lite@~0.4.13 installed at node_modules/[email protected]@iconv-lite [10/16] rimraf@~2.2.8 installed at node_modules/[email protected]@rimraf [11/16] grunt-cli@~1.2.0 installed at node_modules/[email protected]@grunt-cli [12/16] glob@~7.0.0 installed at node_modules/[email protected]@glob [13/16] js-yaml@~3.5.2 installed at node_modules/[email protected]@js-yaml [14/16] grunt-legacy-util@~1.0.0 installed at node_modules/[email protected]@grunt-legacy-util [15/16] grunt-legacy-log@~1.0.0 installed at node_modules/[email protected]@grunt-legacy-log [16/16] dateformat@~1.0.12 installed at node_modules/[email protected]@dateformat Recently updated (since 2017-09-07): 1 packages (detail see file /usr/lib/node_modules/grunt/node_modules/.recently_updates.txt) 2017-09-10 → iconv-lite@~0.4.13(0.4.19) (11:56:41) All packages installed (90 packages installed from npm registry, used 2s, speed 767.07kB/s, json 88(117.49kB), tarball 1.19MB) [[email protected]] link /usr/bin/grunt@ -> /usr/lib/node_modules/grunt/bin/grunt root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# grunt Running "concurrent:tasks" (concurrent) task >> Warning: There are more tasks than your concurrency limit. After this limit >> is reached no further tasks will be run until the current tasks are >> completed. You can adjust the limit in the concurrent task options Running "watch" task Waiting... Running "nodemon:dev" (nodemon) task [nodemon] 1.12.0 [nodemon] to restart at any time, enter `rs` [nodemon] watching: *.* [nodemon] starting `node app.js` Thu, 14 Sep 2017 03:30:59 GMT body-parser deprecated bodyParser: use individual json/urlencoded middlewares at app.js:26:9 Thu, 14 Sep 2017 03:30:59 GMT body-parser deprecated undefined extended: provide extended option at node_modules/[email protected]@body-parser/index.js:105:29 Thu, 14 Sep 2017 03:30:59 GMT express-session deprecated undefined resave option; provide resave option at app.js:30:9 Thu, 14 Sep 2017 03:30:59 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at app.js:30:9 module.js:529 throw err; ^ Error: Cannot find module '/home/zero/node_modules/[email protected]@bcrypt/lib/binding/bcrypt_lib.node' at Function.Module._resolveFilename (module.js:527:15) at Function.Module._load (module.js:476:23) at Module.require (module.js:568:17) at require (internal/module.js:11:18) at Object. at Module._compile (module.js:624:30) at Object.Module._extensions..js (module.js:635:10) at Module.load (module.js:545:32) at tryModuleLoad (module.js:508:12) at Function.Module._load (module.js:500:3) at Module.require (module.js:568:17) at require (internal/module.js:11:18) at Object. at Module._compile (module.js:624:30) at Object.Module._extensions..js (module.js:635:10) at Module.load (module.js:545:32) at tryModuleLoad (module.js:508:12) at Function.Module._load (module.js:500:3) at Module.require (module.js:568:17) at require (internal/module.js:11:18) at Object. at Module._compile (module.js:624:30) [nodemon] app crashed - waiting for file changes before starting... ^Croot@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ^C root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls app app.js bower.json config gruntfile.js node_modules package.json public root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# cd node_modules/ root@iZm5ebp9x1yjg86dz192w5Z:/home/zero/node_modules# ls abbrev fsevents object-assign [email protected]@abbrev [email protected]@fsevents [email protected]@object-assign accepts fs-extra object.omit [email protected]@accepts [email protected]@fs-extra [email protected]@object.omit address fs.realpath once [email protected]@address [email protected]@fs.realpath [email protected]@once agent-base fstream on-finished [email protected]@agent-base [email protected]@fstream [email protected]@on-finished [email protected]@agent-base fstream-ignore on-headers agentkeepalive [email protected]@fstream-ignore [email protected]@on-headers [email protected]@agentkeepalive ftp optionator ajv [email protected]@ftp [email protected]@optionator [email protected]@ajv gauge osenv ansi-align [email protected]@gauge [email protected]@osenv [email protected]@ansi-align gaze os-homedir ansi-regex [email protected]@gaze [email protected]@os-homedir [email protected]@ansi-regex getobject os-name [email protected]@ansi-regex [email protected]@getobject [email protected]@os-name ansi-styles getpass os-tmpdir [email protected]@ansi-styles [email protected]@getpass [email protected]@os-tmpdir [email protected]@ansi-styles get-stdin osx-release anymatch [email protected]@get-stdin [email protected]@osx-release [email protected]@anymatch get-stream package-json any-promise [email protected]@get-stream [email protected]@package-json [email protected]@any-promise get-uri pac-proxy-agent aproba [email protected]@get-uri [email protected]@pac-proxy-agent [email protected]@aproba glob pac-resolver are-we-there-yet [email protected]@glob [email protected]@pac-resolver [email protected]@are-we-there-yet [email protected]@glob pad-stream argparse [email protected]@glob [email protected]@pad-stream [email protected]@argparse glob-base pako array-find-index [email protected]@glob-base [email protected]@pako [email protected]@array-find-index glob-parent parse-glob array-flatten [email protected]@glob-parent [email protected]@parse-glob [email protected]@array-flatten globule parse-json array-unique [email protected]@globule [email protected]@parse-json [email protected]@array-unique got parseurl arr-diff [email protected]@got [email protected]@parseurl [email protected]@arr-diff graceful-fs path-exists arr-flatten [email protected]@graceful-fs [email protected]@path-exists [email protected]@arr-flatten grunt path-is-absolute arrify [email protected]@grunt [email protected]@path-is-absolute [email protected]@arrify grunt-cli path-key asap [email protected]@grunt-cli [email protected]@path-key [email protected]@asap grunt-concurrent path-to-regexp asn1 [email protected]@grunt-concurrent [email protected]@path-to-regexp [email protected]@asn1 grunt-contrib-jshint path-type assert-plus [email protected]@grunt-contrib-jshint [email protected]@path-type [email protected]@assert-plus grunt-contrib-less pause-stream [email protected]@assert-plus [email protected]@grunt-contrib-less [email protected]@pause-stream ast-types grunt-contrib-uglify pend [email protected]@ast-types [email protected]@grunt-contrib-uglify [email protected]@pend async grunt-contrib-watch performance-now [email protected]@async [email protected]@grunt-contrib-watch [email protected]@performance-now [email protected]@async grunt-known-options p-finally [email protected]@async [email protected]@grunt-known-options [email protected]@p-finally [email protected]@async grunt-legacy-log pify async-each [email protected]@grunt-legacy-log [email protected]@pify [email protected]@async-each grunt-legacy-log-utils pinkie asynckit [email protected]@grunt-legacy-log-utils [email protected]@pinkie [email protected]@asynckit grunt-legacy-util pinkie-promise aws4 [email protected]@grunt-legacy-util [email protected]@pinkie-promise [email protected]@aws4 grunt-nodemon prelude-ls aws-sign2 [email protected]@grunt-nodemon [email protected]@prelude-ls [email protected]@aws-sign2 gzip-size prepend-http balanced-match [email protected]@gzip-size [email protected]@prepend-http [email protected]@balanced-match har-schema preserve basic-auth [email protected]@har-schema [email protected]@preserve [email protected]@basic-auth har-validator pretty-bytes bcrypt [email protected]@har-validator [email protected]@pretty-bytes [email protected]@bcrypt has-ansi process-nextick-args bcrypt-pbkdf [email protected]@has-ansi [email protected]@process-nextick-args [email protected]@bcrypt-pbkdf has-flag promise binary-extensions [email protected]@has-flag [email protected]@promise [email protected]@binary-extensions has-unicode proxy-addr block-stream [email protected]@has-unicode [email protected]@proxy-addr [email protected]@block-stream hawk proxy-agent bluebird [email protected]@hawk [email protected]@proxy-agent [email protected]@bluebird hoek prr [email protected]@bluebird [email protected]@hoek [email protected]@prr body-parser hooker pseudomap [email protected]@body-parser [email protected]@hooker [email protected]@pseudomap [email protected]@body-parser hooks-fixed ps-tree boom [email protected]@hooks-fixed [email protected]@ps-tree [email protected]@boom hosted-git-info pump boxen [email protected]@hosted-git-info [email protected]@pump [email protected]@boxen htmlparser2 pumpify brace-expansion [email protected]@htmlparser2 [email protected]@pumpify [email protected]@brace-expansion http-errors punycode braces [email protected]@http-errors [email protected]@punycode [email protected]@braces [email protected]@http-errors qn browserify-zlib http-parser-js [email protected]@qn [email protected]@browserify-zlib [email protected]@http-parser-js qs bson http-proxy-agent [email protected]@qs [email protected]@bson [email protected]@http-proxy-agent [email protected]@qs buffer-shims http-signature [email protected]@qs [email protected]@buffer-shims [email protected]@http-signature [email protected]@qs buffer-type https-proxy-agent [email protected]@qs [email protected]@buffer-type [email protected]@https-proxy-agent [email protected]@qs builtin-modules humanize-ms randomatic [email protected]@builtin-modules [email protected]@humanize-ms [email protected]@randomatic busboy iconv-lite random-bytes [email protected]@busboy [email protected]@iconv-lite [email protected]@random-bytes bytes [email protected]@iconv-lite range-parser [email protected]@bytes ignore-by-default [email protected]@range-parser [email protected]@bytes [email protected]@ignore-by-default raw-body [email protected]@bytes image-size [email protected]@raw-body camelcase [email protected]@image-size [email protected]@raw-body [email protected]@camelcase import-lazy rc [email protected]@camelcase [email protected]@import-lazy [email protected]@rc camelcase-keys imurmurhash readable-stream [email protected]@camelcase-keys [email protected]@imurmurhash [email protected]@readable-stream capture-stack-trace indent-string [email protected]@readable-stream [email protected]@capture-stack-trace [email protected]@indent-string [email protected]@readable-stream caseless inflight readdirp [email protected]@caseless [email protected]@inflight [email protected]@readdirp ccap inherits read-pkg [email protected]@ccap [email protected]@inherits [email protected]@read-pkg chalk ini read-pkg-up [email protected]@chalk [email protected]@ini [email protected]@read-pkg-up [email protected]@chalk ip redent chokidar [email protected]@ip [email protected]@redent [email protected]@chokidar ipaddr.js regex-cache cli [email protected]@ipaddr.js [email protected]@regex-cache [email protected]@cli isarray regexp-clone cli-boxes [email protected]@isarray [email protected]@regexp-clone [email protected]@cli-boxes [email protected]@isarray registry-auth-token co is-arrayish [email protected]@registry-auth-token [email protected]@co [email protected]@is-arrayish registry-url code-point-at is-binary-path [email protected]@registry-url [email protected]@code-point-at [email protected]@is-binary-path remove-trailing-separator coffee-script is-buffer [email protected]@remove-trailing-separator [email protected]@coffee-script [email protected]@is-buffer repeat-element color-convert is-builtin-module [email protected]@repeat-element [email protected]@color-convert [email protected]@is-builtin-module repeating color-name is-class [email protected]@repeating [email protected]@color-name [email protected]@is-class repeat-string colors is-dotfile [email protected]@repeat-string [email protected]@colors [email protected]@is-dotfile request combined-stream is-equal-shallow [email protected]@request [email protected]@combined-stream [email protected]@is-equal-shallow require_optional commander isexe [email protected]@require_optional [email protected]@commander [email protected]@isexe resolve concat-map is-extendable [email protected]@resolve [email protected]@concat-map [email protected]@is-extendable resolve-from concat-stream is-extglob [email protected]@resolve-from [email protected]@concat-stream [email protected]@is-extglob rimraf configstore is-finite [email protected]@rimraf [email protected]@configstore [email protected]@is-finite [email protected]@rimraf connect is-fullwidth-code-point safe-buffer [email protected]@connect [email protected]@is-fullwidth-code-point [email protected]@safe-buffer connect-flash [email protected]@is-fullwidth-code-point semver [email protected]@connect-flash is-glob [email protected]@semver connect-mongo [email protected]@is-glob [email protected]@semver [email protected]@connect-mongo is-npm semver-diff connect-multiparty [email protected]@is-npm [email protected]@semver-diff [email protected]@connect-multiparty is-number send console-browserify [email protected]@is-number [email protected]@send [email protected]@console-browserify [email protected]@is-number serve-favicon console-control-strings is-obj [email protected]@serve-favicon [email protected]@console-control-strings [email protected]@is-obj serve-static content-disposition isobject [email protected]@serve-static [email protected]@content-disposition [email protected]@isobject set-blocking content-type is-posix-bracket [email protected]@set-blocking [email protected]@content-type [email protected]@is-posix-bracket set-immediate-shim cookie is-primitive [email protected]@set-immediate-shim [email protected]@cookie [email protected]@is-primitive setprototypeof cookie-parser is-redirect [email protected]@setprototypeof [email protected]@cookie-parser [email protected]@is-redirect shebang-command cookie-signature is-retry-allowed [email protected]@shebang-command [email protected]@cookie-signature [email protected]@is-retry-allowed shebang-regex copy-to isstream [email protected]@shebang-regex [email protected]@copy-to is-stream shelljs core-util-is [email protected]@isstream [email protected]@shelljs [email protected]@core-util-is [email protected]@is-stream signal-exit crc is-typedarray [email protected]@signal-exit [email protected]@crc [email protected]@is-typedarray sliced create-error-class is-type-of [email protected]@sliced [email protected]@create-error-class [email protected]@is-type-of [email protected]@sliced cross-spawn is-utf8 smart-buffer [email protected]@cross-spawn [email protected]@is-utf8 [email protected]@smart-buffer cryptiles jsbn sntp [email protected]@cryptiles [email protected]@jsbn [email protected]@sntp crypto-random-string jshint socks [email protected]@crypto-random-string [email protected]@jshint [email protected]@socks currently-unhandled jsonfile socks-proxy-agent [email protected]@currently-unhandled [email protected]@jsonfile [email protected]@socks-proxy-agent dashdash jsonify [email protected]@socks-proxy-agent [email protected]@dashdash [email protected]@jsonify source-map data-uri-to-buffer json-schema [email protected]@source-map [email protected]@data-uri-to-buffer [email protected]@json-schema spdx-correct dateformat json-stable-stringify [email protected]@spdx-correct [email protected]@dateformat [email protected]@json-stable-stringify spdx-expression-parse date-now json-stringify-safe [email protected]@spdx-expression-parse [email protected]@date-now [email protected]@json-stringify-safe spdx-license-ids debug jsprim [email protected]@spdx-license-ids [email protected]@debug [email protected]@jsprim split [email protected]@debug js-yaml [email protected]@split decamelize [email protected]@js-yaml split2 [email protected]@decamelize kareem [email protected]@split2 deep-extend [email protected]@kareem sprintf-js [email protected]@deep-extend kind-of [email protected]@sprintf-js deep-is [email protected]@kind-of sshpk [email protected]@deep-is [email protected]@kind-of [email protected]@sshpk default-user-agent latest-version statuses [email protected]@default-user-agent [email protected]@latest-version [email protected]@statuses degenerator less stream-combiner [email protected]@degenerator [email protected]@less [email protected]@stream-combiner delayed-stream levn streamsearch [email protected]@delayed-stream [email protected]@levn [email protected]@streamsearch delegates livereload-js stream-shift [email protected]@delegates [email protected]@livereload-js [email protected]@stream-shift depd load-json-file string_decoder [email protected]@depd [email protected]@load-json-file [email protected]@string_decoder destroy lodash [email protected]@string_decoder [email protected]@destroy [email protected]@lodash stringstream dicer [email protected]@lodash [email protected]@stringstream [email protected]@dicer [email protected]@lodash string-width digest-header [email protected]@lodash [email protected]@string-width [email protected]@digest-header lodash.assign [email protected]@string-width domelementtype [email protected]@lodash.assign strip-ansi [email protected]@domelementtype lodash._baseassign [email protected]@strip-ansi [email protected]@domelementtype [email protected]@lodash._baseassign [email protected]@strip-ansi domhandler lodash._basecopy strip-bom [email protected]@domhandler [email protected]@lodash._basecopy [email protected]@strip-bom dom-serializer lodash._bindcallback strip-eof [email protected]@dom-serializer [email protected]@lodash._bindcallback [email protected]@strip-eof domutils lodash._createassigner strip-indent [email protected]@domutils [email protected]@lodash._createassigner [email protected]@strip-indent dot-prop lodash.defaults strip-json-comments [email protected]@dot-prop [email protected]@lodash.defaults [email protected]@strip-json-comments duplexer lodash._getnative [email protected]@strip-json-comments [email protected]@duplexer [email protected]@lodash._getnative supports-color duplexer3 lodash.isarguments [email protected]@supports-color [email protected]@duplexer3 [email protected]@lodash.isarguments [email protected]@supports-color duplexify lodash.isarray tar [email protected]@duplexify [email protected]@lodash.isarray [email protected]@tar ecc-jsbn lodash._isiterateecall tar-pack [email protected]@ecc-jsbn [email protected]@lodash._isiterateecall [email protected]@tar-pack ee-first lodash.keys term-size [email protected]@ee-first [email protected]@lodash.keys [email protected]@term-size ejs lodash.restparam through [email protected]@ejs [email protected]@lodash.restparam through2 encodeurl loud-rejection [email protected]@through2 [email protected]@encodeurl [email protected]@loud-rejection [email protected]@through end-of-stream lowercase-keys thunkify [email protected]@end-of-stream [email protected]@lowercase-keys [email protected]@thunkify entities lru-cache timed-out [email protected]@entities [email protected]@lru-cache [email protected]@timed-out [email protected]@entities [email protected]@lru-cache tiny-lr errno make-dir [email protected]@tiny-lr [email protected]@errno [email protected]@make-dir touch error-ex map-obj [email protected]@touch [email protected]@error-ex [email protected]@map-obj tough-cookie es6-promise map-stream [email protected]@tough-cookie [email protected]@es6-promise [email protected]@map-stream trim-newlines [email protected]@es6-promise maxmin [email protected]@trim-newlines [email protected]@es6-promise [email protected]@maxmin tunnel-agent es6-promisify media-typer [email protected]@tunnel-agent [email protected]@es6-promisify [email protected]@media-typer tweetnacl escape-html meow [email protected]@tweetnacl [email protected]@escape-html [email protected]@meow type-check escape-string-regexp merge-descriptors [email protected]@type-check [email protected]@escape-string-regexp [email protected]@merge-descriptors typedarray escodegen methods [email protected]@typedarray [email protected]@escodegen [email protected]@methods type-is esprima micromatch [email protected]@type-is [email protected]@esprima [email protected]@micromatch ueditor [email protected]@esprima mime [email protected]@ueditor estraverse [email protected]@mime uglify-js [email protected]@estraverse [email protected]@mime [email protected]@uglify-js esutils mime-db uid-number [email protected]@esutils [email protected]@mime-db [email protected]@uid-number etag mime-types uid-safe [email protected]@etag [email protected]@mime-types [email protected]@uid-safe eventemitter2 minimatch undefsafe [email protected]@eventemitter2 [email protected]@minimatch [email protected]@undefsafe event-stream minimist underscore [email protected]@event-stream [email protected]@minimist [email protected]@underscore execa [email protected]@minimist underscore.string [email protected]@execa mkdirp [email protected]@underscore.string exit [email protected]@mkdirp unique-string [email protected]@exit moment [email protected]@unique-string expand-brackets [email protected]@moment unpipe [email protected]@expand-brackets mongodb [email protected]@unpipe expand-range [email protected]@mongodb unzip-response [email protected]@expand-range mongodb-core [email protected]@unzip-response express [email protected]@mongodb-core update-notifier [email protected]@express mongoose [email protected]@update-notifier express-ejs-layouts [email protected]@mongoose uri-path [email protected]@express-ejs-layouts morgan [email protected]@uri-path express-session [email protected]@morgan urllib [email protected]@express-session mpath [email protected]@urllib extend [email protected]@mpath url-parse-lax [email protected]@extend mpromise [email protected]@url-parse-lax extglob [email protected]@mpromise util-deprecate [email protected]@extglob mquery [email protected]@util-deprecate extsprintf [email protected]@mquery utility [email protected]@extsprintf ms [email protected]@utility fast-levenshtein [email protected]@ms [email protected]@utility [email protected]@fast-levenshtein [email protected]@ms utils-merge faye-websocket multiparty [email protected]@utils-merge [email protected]@faye-websocket [email protected]@multiparty uuid fdfs muri [email protected]@uuid [email protected]@fdfs [email protected]@muri validate-npm-package-license fd-slicer nan [email protected]@validate-npm-package-license [email protected]@fd-slicer [email protected]@nan vary figures [email protected]@nan [email protected]@vary [email protected]@figures ncp verror filename-regex [email protected]@ncp [email protected]@verror [email protected]@filename-regex negotiator websocket-driver file-uri-to-path [email protected]@negotiator [email protected]@websocket-driver [email protected]@file-uri-to-path netmask websocket-extensions fill-range [email protected]@netmask [email protected]@websocket-extensions [email protected]@fill-range nodemon which finalhandler [email protected]@nodemon [email protected]@which [email protected]@finalhandler node-pre-gyp [email protected]@which find-up [email protected]@node-pre-gyp wide-align [email protected]@find-up node-schedule [email protected]@wide-align findup-sync [email protected]@node-schedule widest-line [email protected]@findup-sync node-snowflake [email protected]@widest-line forever-agent [email protected]@node-snowflake win-release [email protected]@forever-agent nopt [email protected]@win-release for-in [email protected]@nopt wordwrap [email protected]@for-in [email protected]@nopt [email protected]@wordwrap form-data [email protected]@nopt wrappy [email protected]@form-data normalize-package-data [email protected]@wrappy formstream [email protected]@normalize-package-data write-file-atomic [email protected]@formstream normalize-path [email protected]@write-file-atomic for-own [email protected]@normalize-path xdg-basedir [email protected]@for-own npmlog [email protected]@xdg-basedir forwarded [email protected]@npmlog xregexp [email protected]@forwarded npm-run-path [email protected]@xregexp fresh [email protected]@npm-run-path xtend [email protected]@fresh number-is-nan [email protected]@xtend [email protected]@fresh [email protected]@number-is-nan yallist from oauth-sign [email protected]@yallist [email protected]@from [email protected]@oauth-sign root@iZm5ebp9x1yjg86dz192w5Z:/home/zero/node_modules# cd root@iZm5ebp9x1yjg86dz192w5Z:~# ls root@iZm5ebp9x1yjg86dz192w5Z:~# ls root@iZm5ebp9x1yjg86dz192w5Z:~# cd /home root@iZm5ebp9x1yjg86dz192w5Z:/home# ls zero root@iZm5ebp9x1yjg86dz192w5Z:/home# cd zero root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls app app.js bower.json config gruntfile.js node_modules package.json public root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# rm -rf node_modules root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls app app.js bower.json config gruntfile.js package.json public root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# cnpm install ⠴ [10/26] Installing lodash.restparam@^3.0.0I'm glad you to select ccap, enjoy it! ccap is a cross plat form and portable nodejs simple captcha module, simple api and lightweight. starting compile ccap! good luck! ⠏ [24/26] Installing [email protected] unsupported [email protected] › [email protected] › [email protected] › fsevents@^1.0.0 Package require os(darwin) not compatible with your platform(linux) [fsevents@^1.0.0] optional install error: Package require os(darwin) not compatible with your platform(linux) ✔ Installed 26 packages ✔ Linked 452 latest versions make: Entering directory '/home/zero/node_modules/[email protected]@ccap/build' CC(target) Release/obj.target/hcaptha/addon/jpeglib/jaricom.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcapimin.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcapistd.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcarith.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jccoefct.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jccolor.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcdctmgr.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jchuff.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcinit.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcmainct.o ../addon/jpeglib/jcmainct.c: In function ‘start_pass_main’: ../addon/jpeglib/jcmainct.c:71:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jcmainct.c: In function ‘process_data_simple_main’: ../addon/jpeglib/jcmainct.c:117:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jcmainct.c: In function ‘jinit_c_main_controller’: ../addon/jpeglib/jcmainct.c:247:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main; ^ CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcmarker.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcmaster.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcomapi.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcparam.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcprepct.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcsample.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jctrans.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdapimin.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdapistd.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdarith.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdatadst.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdatasrc.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdcoefct.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdcolor.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jddctmgr.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdhuff.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdinput.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdmainct.o ../addon/jpeglib/jdmainct.c: In function ‘alloc_funny_pointers’: ../addon/jpeglib/jdmainct.c:162:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jdmainct.c: In function ‘make_funny_pointers’: ../addon/jpeglib/jdmainct.c:203:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jdmainct.c: In function ‘set_wraparound_pointers’: ../addon/jpeglib/jdmainct.c:243:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jdmainct.c: In function ‘set_bottom_pointers’: ../addon/jpeglib/jdmainct.c:272:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jdmainct.c: In function ‘start_pass_main’: ../addon/jpeglib/jdmainct.c:309:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jdmainct.c: In function ‘process_data_simple_main’: ../addon/jpeglib/jdmainct.c:349:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jdmainct.c: In function ‘process_data_context_main’: ../addon/jpeglib/jdmainct.c:389:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jdmainct.c: In function ‘jinit_d_main_controller’: ../addon/jpeglib/jdmainct.c:478:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main; ^ CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdmarker.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdmaster.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdmerge.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdpostct.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdsample.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdtrans.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jerror.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jfdctflt.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jfdctfst.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jfdctint.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jidctflt.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jidctfst.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jidctint.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jquant1.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jquant2.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jutils.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jmemmgr.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jmemnobs.o CXX(target) Release/obj.target/hcaptha/addon/hcaptha.o CXX(target) Release/obj.target/hcaptha/addon/cap.o ../addon/cap.cc: In static member function ‘static int cap::save()’: ../addon/cap.cc:84:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (unsigned int k = 0; k ^ ../addon/cap.cc:81:44: warning: unused variable ‘green’ [-Wunused-variable] const unsigned char red[] = { 255,0,0 }, green[] = { 0,255,0 }, blue[] = { 0,0,255 }; ^ ../addon/cap.cc:81:67: warning: unused variable ‘blue’ [-Wunused-variable] const unsigned char red[] = { 255,0,0 }, green[] = { 0,255,0 }, blue[] = { 0,0,255 }; ^ SOLINK_MODULE(target) Release/obj.target/hcaptha.node COPY Release/hcaptha.node make: Leaving directory '/home/zero/node_modules/[email protected]@ccap/build' node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v57-linux-x64.tar.gz ^C root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ^C root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# npm install bcrpt npm ERR! code E404 npm ERR! 404 Not Found: bcrpt@latest npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2017-09-14T03_33_44_919Z-debug.log root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# cnpm install bcrpt ✖ Install fail! Error: GET http://registry.npm.taobao.org/bcrpt response 404 status Error: GET http://registry.npm.taobao.org/bcrpt response 404 status at get (/usr/lib/node_modules/cnpm/node_modules/npminstall/lib/get.js:57:17) at get.next ( at onFulfilled (/usr/lib/node_modules/cnpm/node_modules/co/index.js:65:19) at at process._tickCallback (internal/process/next_tick.js:188:7) npminstall version: 3.1.4 npminstall args: /usr/bin/node /usr/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --china --userconfig=/root/.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=http://registry.npm.taobao.org bcrpt root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# npm install bcrpt npm ERR! code E404 npm ERR! 404 Not Found: bcrpt@latest npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2017-09-14T03_34_19_180Z-debug.log root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# npm install bcrypt npm WARN gentlyRm not removing /home/zero/node_modules/.bin/grunt as it wasn't installed by /home/zero/node_modules/grunt-cli npm WARN [email protected] No description npm WARN [email protected] No repository field. npm ERR! path /home/zero/node_modules/[email protected]@accepts/node_modules/mime-types.node_modules npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall rename npm ERR! enoent ENOENT: no such file or directory, rename '/home/zero/node_modules/[email protected]@accepts/node_modules/mime-types.node_modules' -> '/home/zero/node_modules/[email protected]@accepts/node_modules/mime-types/node_modules' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2017-09-14T03_34_40_236Z-debug.log root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# grunt module.js:529 throw err; ^ Error: Cannot find module 'coffee-script/register' at Function.Module._resolveFilename (module.js:527:15) at Function.Module._load (module.js:476:23) at Module.require (module.js:568:17) at require (internal/module.js:11:18) at Object. at Module._compile (module.js:624:30) at Object.Module._extensions..js (module.js:635:10) at Module.load (module.js:545:32) at tryModuleLoad (module.js:508:12) at Function.Module._load (module.js:500:3) root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# cnpm install ✔ Installed 26 packages ✔ Linked 2 latest versions node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v57-linux-x64.tar.gz node-pre-gyp ERR! Tried to download(undefined): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v57-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI) (falling back to source compile with node-gyp) node-pre-gyp http Cannot find module 'extend' make: Entering directory '/home/zero/node_modules/[email protected]@bcrypt/build' CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node COPY Release/bcrypt_lib.node COPY /home/zero/node_modules/[email protected]@bcrypt/lib/binding/bcrypt_lib.node TOUCH Release/obj.target/action_after_build.stamp make: Leaving directory '/home/zero/node_modules/[email protected]@bcrypt/build' ✔ Run 1 scripts ✔ All packages installed (1 packages installed from npm registry, used 3s, speed 4.76kB/s, json 3(13.39kB), tarball 0B) root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# grunt module.js:529 throw err; ^ Error: Cannot find module 'coffee-script/register' at Function.Module._resolveFilename (module.js:527:15) at Function.Module._load (module.js:476:23) at Module.require (module.js:568:17) at require (internal/module.js:11:18) at Object. at Module._compile (module.js:624:30) at Object.Module._extensions..js (module.js:635:10) at Module.load (module.js:545:32) at tryModuleLoad (module.js:508:12) at Function.Module._load (module.js:500:3) root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls app app.js bower.json config gruntfile.js node_modules package.json public root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# rm -rf node_modules/ root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls app app.js bower.json config gruntfile.js package.json public root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# npm install > [email protected] preinstall /home/zero/node_modules/ccap > node make.js I'm glad you to select ccap, enjoy it! ccap is a cross plat form and portable nodejs simple captcha module, simple api and lightweight. starting compile ccap! good luck! > [email protected] install /home/zero/node_modules/bcrypt > node-pre-gyp install --fallback-to-build [bcrypt] Success: "/home/zero/node_modules/bcrypt/lib/binding/bcrypt_lib.node" is installed via remote > [email protected] install /home/zero/node_modules/ccap > node-gyp rebuild make: Entering directory '/home/zero/node_modules/ccap/build' CC(target) Release/obj.target/hcaptha/addon/jpeglib/jaricom.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcapimin.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcapistd.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcarith.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jccoefct.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jccolor.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcdctmgr.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jchuff.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcinit.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcmainct.o ../addon/jpeglib/jcmainct.c: In function ‘start_pass_main’: ../addon/jpeglib/jcmainct.c:71:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jcmainct.c: In function ‘process_data_simple_main’: ../addon/jpeglib/jcmainct.c:117:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jcmainct.c: In function ‘jinit_c_main_controller’: ../addon/jpeglib/jcmainct.c:247:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main; ^ CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcmarker.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcmaster.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcomapi.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcparam.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcprepct.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcsample.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jctrans.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdapimin.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdapistd.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdarith.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdatadst.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdatasrc.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdcoefct.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdcolor.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jddctmgr.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdhuff.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdinput.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdmainct.o ../addon/jpeglib/jdmainct.c: In function ‘alloc_funny_pointers’: ../addon/jpeglib/jdmainct.c:162:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jdmainct.c: In function ‘make_funny_pointers’: ../addon/jpeglib/jdmainct.c:203:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jdmainct.c: In function ‘set_wraparound_pointers’: ../addon/jpeglib/jdmainct.c:243:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jdmainct.c: In function ‘set_bottom_pointers’: ../addon/jpeglib/jdmainct.c:272:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jdmainct.c: In function ‘start_pass_main’: ../addon/jpeglib/jdmainct.c:309:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jdmainct.c: In function ‘process_data_simple_main’: ../addon/jpeglib/jdmainct.c:349:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jdmainct.c: In function ‘process_data_context_main’: ../addon/jpeglib/jdmainct.c:389:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main = (my_main_ptr) cinfo->main; ^ ../addon/jpeglib/jdmainct.c: In function ‘jinit_d_main_controller’: ../addon/jpeglib/jdmainct.c:478:15: warning: ‘main’ is usually a function [-Wmain] my_main_ptr main; ^ CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdmarker.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdmaster.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdmerge.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdpostct.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdsample.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdtrans.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jerror.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jfdctflt.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jfdctfst.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jfdctint.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jidctflt.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jidctfst.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jidctint.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jquant1.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jquant2.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jutils.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jmemmgr.o CC(target) Release/obj.target/hcaptha/addon/jpeglib/jmemnobs.o CXX(target) Release/obj.target/hcaptha/addon/hcaptha.o CXX(target) Release/obj.target/hcaptha/addon/cap.o ../addon/cap.cc: In static member function ‘static int cap::save()’: ../addon/cap.cc:84:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (unsigned int k = 0; k ^ ../addon/cap.cc:81:44: warning: unused variable ‘green’ [-Wunused-variable] const unsigned char red[] = { 255,0,0 }, green[] = { 0,255,0 }, blue[] = { 0,0,255 }; ^ ../addon/cap.cc:81:67: warning: unused variable ‘blue’ [-Wunused-variable] const unsigned char red[] = { 255,0,0 }, green[] = { 0,255,0 }, blue[] = { 0,0,255 }; ^ SOLINK_MODULE(target) Release/obj.target/hcaptha.node COPY Release/hcaptha.node make: Leaving directory '/home/zero/node_modules/ccap/build' npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN [email protected] No description npm WARN [email protected] No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) added 672 packages in 80.293s root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# grunt Running "concurrent:tasks" (concurrent) task >> Warning: There are more tasks than your concurrency limit. After this limit >> is reached no further tasks will be run until the current tasks are >> completed. You can adjust the limit in the concurrent task options Running "watch" task Waiting... Running "nodemon:dev" (nodemon) task [nodemon] 1.12.0 [nodemon] to restart at any time, enter `rs` [nodemon] watching: *.* [nodemon] starting `node app.js` Thu, 14 Sep 2017 03:37:01 GMT body-parser deprecated bodyParser: use individual json/urlencoded middlewares at app.js:26:9 Thu, 14 Sep 2017 03:37:01 GMT body-parser deprecated undefined extended: provide extended option at node_modules/body-parser/index.js:105:29 Thu, 14 Sep 2017 03:37:01 GMT express-session deprecated undefined resave option; provide resave option at app.js:30:9 Thu, 14 Sep 2017 03:37:01 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at app.js:30:9 (node:21563) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/connections.html#use-mongo-client ^Croot@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ^C root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls app app.js bower.json config gruntfile.js node_modules package.json package-lock.json public root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# vi app.js root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# grunt Running "concurrent:tasks" (concurrent) task >> Warning: There are more tasks than your concurrency limit. After this limit >> is reached no further tasks will be run until the current tasks are >> completed. You can adjust the limit in the concurrent task options Running "watch" task Running "nodemon:dev" (nodemon) task Waiting... [nodemon] 1.12.0 [nodemon] to restart at any time, enter `rs` [nodemon] watching: *.* [nodemon] starting `node app.js` Thu, 14 Sep 2017 03:40:17 GMT body-parser deprecated bodyParser: use individual json/urlencoded middlewares at app.js:26:9 Thu, 14 Sep 2017 03:40:17 GMT body-parser deprecated undefined extended: provide extended option at node_modules/body-parser/index.js:105:29 Thu, 14 Sep 2017 03:40:17 GMT express-session deprecated undefined resave option; provide resave option at app.js:30:9 Thu, 14 Sep 2017 03:40:17 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at app.js:30:9 (node:21619) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/connections.html#use-mongo-client Db.prototype.authenticate method will no longer be available in the next major release 3.x as MongoDB 3.6 will only allow auth against users in the admin db and will no longer allow multiple credentials on a socket. Please authenticate using MongoClient.connect with auth credentials. /home/zero/node_modules/mongodb/lib/mongo_client.js:462 throw err ^ MongoError: auth failed at Function.MongoError.create (/home/zero/node_modules/mongodb-core/lib/error.js:31:11) at /home/zero/node_modules/mongodb-core/lib/connection/pool.js:497:72 at authenticateStragglers (/home/zero/node_modules/mongodb-core/lib/connection/pool.js:443:16) at Connection.messageHandler (/home/zero/node_modules/mongodb-core/lib/connection/pool.js:477:5) at Socket. at emitOne (events.js:115:13) at Socket.emit (events.js:210:7) at addChunk (_stream_readable.js:266:12) at readableAddChunk (_stream_readable.js:253:11) at Socket.Readable.push (_stream_readable.js:211:10) at TCP.onread (net.js:585:20) [nodemon] app crashed - waiting for file changes before starting... ^Croot@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ^C root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls app app.js bower.json config gruntfile.js node_modules package.json package-lock.json public root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# vi app.js root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# grunt Running "concurrent:tasks" (concurrent) task >> Warning: There are more tasks than your concurrency limit. After this limit >> is reached no further tasks will be run until the current tasks are >> completed. You can adjust the limit in the concurrent task options Running "watch" task Waiting... Running "nodemon:dev" (nodemon) task [nodemon] 1.12.0 [nodemon] to restart at any time, enter `rs` [nodemon] watching: *.* [nodemon] starting `node app.js` Thu, 14 Sep 2017 03:44:31 GMT body-parser deprecated bodyParser: use individual json/urlencoded middlewares at app.js:26:9 Thu, 14 Sep 2017 03:44:31 GMT body-parser deprecated undefined extended: provide extended option at node_modules/body-parser/index.js:105:29 Thu, 14 Sep 2017 03:44:31 GMT express-session deprecated undefined resave option; provide resave option at app.js:30:9 Thu, 14 Sep 2017 03:44:31 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at app.js:30:9 (node:21683) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/connections.html#use-mongo-client Db.prototype.authenticate method will no longer be available in the next major release 3.x as MongoDB 3.6 will only allow auth against users in the admin db and will no longer allow multiple credentials on a socket. Please authenticate using MongoClient.connect with auth credentials. /home/zero/node_modules/mongodb/lib/mongo_client.js:462 throw err ^ MongoError: auth failed at Function.MongoError.create (/home/zero/node_modules/mongodb-core/lib/error.js:31:11) at /home/zero/node_modules/mongodb-core/lib/connection/pool.js:497:72 at authenticateStragglers (/home/zero/node_modules/mongodb-core/lib/connection/pool.js:443:16) at Connection.messageHandler (/home/zero/node_modules/mongodb-core/lib/connection/pool.js:477:5) at Socket. at emitOne (events.js:115:13) at Socket.emit (events.js:210:7) at addChunk (_stream_readable.js:266:12) at readableAddChunk (_stream_readable.js:253:11) at Socket.Readable.push (_stream_readable.js:211:10) at TCP.onread (net.js:585:20) [nodemon] app crashed - waiting for file changes before starting... ^Croot@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ^C root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# vi app.js root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# mongo MongoDB shell version: 2.6.10 connecting to: test > show users > show dbs admin 0.078GB blog 0.078GB local 0.078GB > ^C bye root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ^C root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# vi app.js root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# grunt Running "concurrent:tasks" (concurrent) task >> Warning: There are more tasks than your concurrency limit. After this limit >> is reached no further tasks will be run until the current tasks are >> completed. You can adjust the limit in the concurrent task options Running "nodemon:dev" (nodemon) task Running "watch" task Waiting... [nodemon] 1.12.0 [nodemon] to restart at any time, enter `rs` [nodemon] watching: *.* [nodemon] starting `node app.js` Thu, 14 Sep 2017 03:46:43 GMT body-parser deprecated bodyParser: use individual json/urlencoded middlewares at app.js:26:9 Thu, 14 Sep 2017 03:46:43 GMT body-parser deprecated undefined extended: provide extended option at node_modules/body-parser/index.js:105:29 Thu, 14 Sep 2017 03:46:43 GMT express-session deprecated undefined resave option; provide resave option at app.js:30:9 Thu, 14 Sep 2017 03:46:43 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at app.js:30:9 (node:21734) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/connections.html#use-mongo-client Db.prototype.authenticate method will no longer be available in the next major release 3.x as MongoDB 3.6 will only allow auth against users in the admin db and will no longer allow multiple credentials on a socket. Please authenticate using MongoClient.connect with auth credentials. /home/zero/node_modules/mongodb/lib/mongo_client.js:462 throw err ^ MongoError: auth failed at Function.MongoError.create (/home/zero/node_modules/mongodb-core/lib/error.js:31:11) at /home/zero/node_modules/mongodb-core/lib/connection/pool.js:497:72 at authenticateStragglers (/home/zero/node_modules/mongodb-core/lib/connection/pool.js:443:16) at Connection.messageHandler (/home/zero/node_modules/mongodb-core/lib/connection/pool.js:477:5) at Socket. at emitOne (events.js:115:13) at Socket.emit (events.js:210:7) at addChunk (_stream_readable.js:266:12) at readableAddChunk (_stream_readable.js:253:11) at Socket.Readable.push (_stream_readable.js:211:10) at TCP.onread (net.js:585:20) [nodemon] app crashed - waiting for file changes before starting... ^Croot@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ^C root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# cnpm install ✔ Installed 26 packages ✔ Linked 0 latest versions ✔ Run 0 scripts ✔ All packages installed (used 22ms, speed 0B/s, json 0(0B), tarball 0B) root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# vi app.js root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# grunt Running "concurrent:tasks" (concurrent) task >> Warning: There are more tasks than your concurrency limit. After this limit >> is reached no further tasks will be run until the current tasks are >> completed. You can adjust the limit in the concurrent task options Running "watch" task Running "nodemon:dev" (nodemon) task Waiting... [nodemon] 1.12.0 [nodemon] to restart at any time, enter `rs` [nodemon] watching: *.* [nodemon] starting `node app.js` Thu, 14 Sep 2017 03:47:39 GMT body-parser deprecated bodyParser: use individual json/urlencoded middlewares at app.js:26:9 Thu, 14 Sep 2017 03:47:39 GMT body-parser deprecated undefined extended: provide extended option at node_modules/body-parser/index.js:105:29 Thu, 14 Sep 2017 03:47:39 GMT express-session deprecated undefined resave option; provide resave option at app.js:30:9 Thu, 14 Sep 2017 03:47:39 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at app.js:30:9 (node:21849) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/connections.html#use-mongo-client ^Croot@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ^C root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# vi app.js root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# grunt Running "concurrent:tasks" (concurrent) task >> Warning: There are more tasks than your concurrency limit. After this limit >> is reached no further tasks will be run until the current tasks are >> completed. You can adjust the limit in the concurrent task options Running "watch" task Waiting... Running "nodemon:dev" (nodemon) task [nodemon] 1.12.0 [nodemon] to restart at any time, enter `rs` [nodemon] watching: *.* [nodemon] starting `node app.js` Thu, 14 Sep 2017 03:49:36 GMT body-parser deprecated bodyParser: use individual json/urlencoded middlewares at app.js:26:9 Thu, 14 Sep 2017 03:49:36 GMT body-parser deprecated undefined extended: provide extended option at node_modules/body-parser/index.js:105:29 Thu, 14 Sep 2017 03:49:36 GMT express-session deprecated undefined resave option; provide resave option at app.js:30:9 Thu, 14 Sep 2017 03:49:36 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at app.js:30:9 (node:21895) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/connections.html#use-mongo-client Db.prototype.authenticate method will no longer be available in the next major release 3.x as MongoDB 3.6 will only allow auth against users in the admin db and will no longer allow multiple credentials on a socket. Please authenticate using MongoClient.connect with auth credentials. Mongoose: blogs.find({}, { sort: { 'meta.updateAt': -1 }, fields: {} }) (node:21895) DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html GET / 200 GET /libs/bootstrap/dist/css/bootstrap.min.css 200 GET /build/style.css 200 GET /libs/bootstrap/dist/js/bootstrap.min.js 200 GET /libs/jquery/dist/jquery.min.js 200 GET /libs/ueditor/ueditor.config.js 200 GET /libs/validation/dist/jquery.validate.min.js 200 GET /libs/validation/dist/localization/messages_zh.js 200 GET /build/script.min.js 200 GET /libs/ueditor/ueditor.all.js 200 GET /images/favicon.ico 404 GET /signin 200 GET /libs/bootstrap/dist/css/bootstrap.min.css 304 GET /build/style.css 304 GET /libs/bootstrap/dist/js/bootstrap.min.js 304 GET /libs/jquery/dist/jquery.min.js 304 GET /libs/ueditor/ueditor.all.js 304 GET /libs/ueditor/ueditor.config.js 304 GET /libs/validation/dist/jquery.validate.min.js 304 GET /libs/validation/dist/localization/messages_zh.js 304 GET /build/script.min.js 304 GET /signup 200 GET /libs/bootstrap/dist/css/bootstrap.min.css 304 GET /libs/jquery/dist/jquery.min.js 304 GET /build/style.css 304 GET /libs/bootstrap/dist/js/bootstrap.min.js 304 GET /libs/ueditor/ueditor.config.js 304 GET /libs/ueditor/ueditor.all.js 304 GET /libs/validation/dist/localization/messages_zh.js 304 GET /build/script.min.js 304 GET /libs/validation/dist/jquery.validate.min.js 304 GET /signin 304 GET /libs/bootstrap/dist/css/bootstrap.min.css 304 GET /libs/bootstrap/dist/js/bootstrap.min.js 304 GET /libs/jquery/dist/jquery.min.js 304 GET /build/style.css 304 GET /libs/ueditor/ueditor.config.js 304 GET /libs/ueditor/ueditor.all.js 304 GET /libs/validation/dist/jquery.validate.min.js 304 GET /libs/validation/dist/localization/messages_zh.js 304 GET /build/script.min.js 304 ^Croot@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ^C root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls app app.js bower.json config gruntfile.js node_modules package.json package-lock.json public root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# cd root@iZm5ebp9x1yjg86dz192w5Z:~# cd /etc root@iZm5ebp9x1yjg86dz192w5Z:/etc# ls adduser.conf console-setup fonts init.d libaudit.conf mke2fs.conf passwd rc4.d shadow timezone adjtime cron.d fstab initramfs-tools libnl-3 modprobe.d passwd- rc5.d shadow- tmpfiles.d alternatives cron.daily fuse.conf inputrc locale.alias modules perl rc6.d shells ucf.conf apm cron.hourly gai.conf insserv locale.gen modules-load.d pki rc.local skel udev apparmor cron.monthly groff insserv.conf localtime mongodb.conf pm rcS.d s-nail.rc ufw apparmor.d crontab group insserv.conf.d logcheck motd popularity-contest.conf resolvconf ssh updatedb.conf apt cron.weekly group- iproute2 login.defs mtab ppp resolv.conf ssl update-manager at.deny dbus-1 grub.d iscsi logrotate.conf nanorc profile rmt subgid update-motd.d backup debconf.conf gshadow issue logrotate.d network profile.d rpc subgid- vim bash.bashrc debian_version gshadow- issue.net lsb-release networks protocols rsyslog.conf subuid vtrgb bash_completion default gss kbd ltrace.conf newt python rsyslog.d subuid- wgetrc bash_completion.d deluser.conf hdparm.conf kernel machine-id nscd.conf python2.7 securetty sudoers X11 bindresvport.blacklist depmod.d host.conf kernel-img.conf magic nsswitch.conf python3 security sudoers.d xdg binfmt.d dhcp hostname ldap magic.mime ntp.conf python3.5 selinux sysctl.conf xml ca-certificates dpkg hosts ld.so.cache mailcap opt rc0.d sensors3.conf sysctl.d zsh_command_not_found ca-certificates.conf e2fsck.conf hosts.allow ld.so.conf mailcap.order os-release rc1.d sensors.d sysstat calendar emacs hosts.deny ld.so.conf.d manpath.config pam.conf rc2.d services systemd cloud environment init legal mime.types pam.d rc3.d sgml terminfo root@iZm5ebp9x1yjg86dz192w5Z:/etc# cd systemd root@iZm5ebp9x1yjg86dz192w5Z:/etc/systemd# ls bootchart.conf journald.conf logind.conf network resolved.conf system system.conf timesyncd.conf user user.conf root@iZm5ebp9x1yjg86dz192w5Z:/etc/systemd# cd system root@iZm5ebp9x1yjg86dz192w5Z:/etc/systemd/system# ls default.target.wants graphical.target.wants network-online.target.wants sshd.service syslog.service getty.target.wants multi-user.target.wants sockets.target.wants sysinit.target.wants timers.target.wants root@iZm5ebp9x1yjg86dz192w5Z:/etc/systemd/system# vi zero.service root@iZm5ebp9x1yjg86dz192w5Z:/etc/systemd/system# systemctl start zero root@iZm5ebp9x1yjg86dz192w5Z:/etc/systemd/system# ls default.target.wants graphical.target.wants network-online.target.wants sshd.service syslog.service zero.service getty.target.wants multi-user.target.wants sockets.target.wants sysinit.target.wants timers.target.wants root@iZm5ebp9x1yjg86dz192w5Z:/etc/systemd/system# vi zero.service root@iZm5ebp9x1yjg86dz192w5Z:/etc/systemd/system# systemctl stop zero root@iZm5ebp9x1yjg86dz192w5Z:/etc/systemd/system# systemctl start zero root@iZm5ebp9x1yjg86dz192w5Z:/etc/systemd/system# cd root@iZm5ebp9x1yjg86dz192w5Z:~# mongo MongoDB shell version: 2.6.10 connecting to: test > show dbs admin 0.078GB blog 0.078GB local 0.078GB > use blog switched to db blog > ls function ls() { [native code] } > show tables marks session system.indexes users > db.users.find({}) { "_id" : ObjectId("59ba0a1240df7255f974fc2b"), "name" : "admin", "password" : "$2a$10$hamHiClWAN4YJpzN0bGhF.EDmB/kq9qJC2OziyImjYszPUw.osZOC", "meta" : { "updateAt" : ISODate("2017-09-14T04:48:18.067Z"), "createAt" : ISODate("2017-09-14T04:48:18.067Z") }, "role" : 0, "__v" : 0 } > db.users.update({_id:ObjectId("59ba0a1240df7255f974fc2b")},{role:10}) WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 }) > db.users.find({}) { "_id" : ObjectId("59ba0a1240df7255f974fc2b"), "role" : 10 } > db.users.remove({}) WriteResult({ "nRemoved" : 1 }) > db.users.find({}) > db.users.find({}) { "_id" : ObjectId("59ba0a9e40df7255f974fc2d"), "name" : "admin", "password" : "$2a$10$jPE0vnPir15oNu8LRo/UquOXKGxcsQMNEkiPKEa1qR6HGPrhlOk0e", "meta" : { "updateAt" : ISODate("2017-09-14T04:50:38.225Z"), "createAt" : ISODate("2017-09-14T04:50:38.225Z") }, "role" : 0, "__v" : 0 } > db.users.update({_id:ObjectId("59ba0a9e40df7255f974fc2d")},{"name" : "admin", "password" : "$2a$10$jPE0vnPir15oNu8LRo/UquOXKGxcsQMNEkiPKEa1qR6HGPrhlOk0e", "meta" : { "updateAt" : ISODate("2017-09-14T04:50:38.225Z"), "createAt" : ISODate("2017-09-14T04:50:38.225Z") }, "role" : 10, "__v" : 0}) WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 }) > db.users.find({}) { "_id" : ObjectId("59ba0a9e40df7255f974fc2d"), "name" : "admin", "password" : "$2a$10$jPE0vnPir15oNu8LRo/UquOXKGxcsQMNEkiPKEa1qR6HGPrhlOk0e", "meta" : { "updateAt" : ISODate("2017-09-14T04:50:38.225Z"), "createAt" : ISODate("2017-09-14T04:50:38.225Z") }, "role" : 10, "__v" : 0 } > ^C bye root@iZm5ebp9x1yjg86dz192w5Z:~# ^C root@iZm5ebp9x1yjg86dz192w5Z:~# exit logout Connection to 118.190.151.203 closed. ZhangShuDa:~ apple$ ssh [email protected] [email protected]'s password: Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-62-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage Welcome to Alibaba Cloud Elastic Compute Service ! Last login: Thu Sep 14 10:40:33 2017 from 222.128.81.10 root@iZm5ebp9x1yjg86dz192w5Z:~# cd /home root@iZm5ebp9x1yjg86dz192w5Z:/home# ls zero root@iZm5ebp9x1yjg86dz192w5Z:/home# cd zero root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls app app.js bower.json config gruntfile.js node_modules package.json package-lock.json public root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# cd app/ root@iZm5ebp9x1yjg86dz192w5Z:/home/zero/app# ls controllers models schemas views root@iZm5ebp9x1yjg86dz192w5Z:/home/zero/app# cd views/ root@iZm5ebp9x1yjg86dz192w5Z:/home/zero/app/views# ls includes layout.html pages root@iZm5ebp9x1yjg86dz192w5Z:/home/zero/app/views# vi layout.html root@iZm5ebp9x1yjg86dz192w5Z:/home/zero/app/views# exit logout Connection to 118.190.151.203 closed. ZhangShuDa:~ apple$ ssh [email protected] [email protected]'s password: Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-62-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage Welcome to Alibaba Cloud Elastic Compute Service ! Last login: Thu Sep 14 12:58:19 2017 from 222.128.81.10 root@iZm5ebp9x1yjg86dz192w5Z:~# cd /home root@iZm5ebp9x1yjg86dz192w5Z:/home# ls zero root@iZm5ebp9x1yjg86dz192w5Z:/home# cd zero root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls app app.js bower.json config gruntfile.js node_modules package.json package-lock.json public root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# cd app/ root@iZm5ebp9x1yjg86dz192w5Z:/home/zero/app# ls controllers models schemas views root@iZm5ebp9x1yjg86dz192w5Z:/home/zero/app# cd root@iZm5ebp9x1yjg86dz192w5Z:~# ls root@iZm5ebp9x1yjg86dz192w5Z:~# cd /home root@iZm5ebp9x1yjg86dz192w5Z:/home# ls zero root@iZm5ebp9x1yjg86dz192w5Z:/home# cd zero root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# ls app app.js bower.json config gruntfile.js node_modules package.json package-lock.json public root@iZm5ebp9x1yjg86dz192w5Z:/home/zero# cd public/ root@iZm5ebp9x1yjg86dz192w5Z:/home/zero/public# ls build img js less libs root@iZm5ebp9x1yjg86dz192w5Z:/home/zero/public# cd build/ root@iZm5ebp9x1yjg86dz192w5Z:/home/zero/public/build# ls script.min.js style.css root@iZm5ebp9x1yjg86dz192w5Z:/home/zero/public/build# vi style.css root@iZm5ebp9x1yjg86dz192w5Z:/home/zero/public/build# exit logout Connection to 118.190.151.203 closed. ZhangShuDa:~ apple$ ssh [email protected]