nodeとExpressとnvmをインストールしたった vagrantのcentosね

2017.04.02 Sunday 15:53
0
    nodeとExpressとnvmをインストールしたった vagrantのcentosね


    ★mongodb インストール
    [root@localhost install]# cd /etc/yum.repos.d/
    [root@localhost yum.repos.d]# ls -ltr
    total 40
    -rw-r--r-- 1 root root 1056 Nov 25 2014 epel-testing.repo
    -rw-r--r-- 1 root root 957 Nov 25 2014 epel.repo
    -rw-r--r-- 1 root root 422 Oct 1 2015 puppetlabs-pc1.repo
    -rw-r--r--. 1 root root 1952 Dec 9 2015 CentOS-Vault.repo
    -rw-r--r--. 1 root root 1331 Dec 9 2015 CentOS-Sources.repo
    -rw-r--r--. 1 root root 630 Dec 9 2015 CentOS-Media.repo
    -rw-r--r--. 1 root root 290 Dec 9 2015 CentOS-fasttrack.repo
    -rw-r--r--. 1 root root 649 Dec 9 2015 CentOS-Debuginfo.repo
    -rw-r--r--. 1 root root 1309 Dec 9 2015 CentOS-CR.repo
    -rw-r--r--. 1 root root 1664 Dec 9 2015 CentOS-Base.repo
    [root@localhost yum.repos.d]#
    [root@localhost yum.repos.d]# vi mongodb-org-3.0.repo
    [root@localhost yum.repos.d]#
    [root@localhost yum.repos.d]#
    [root@localhost yum.repos.d]#
    [root@localhost yum.repos.d]# yum install mongodb-org
    Loaded plugins: fastestmirror
    base | 3.6 kB 00:00:00
    epel/x86_64/metalink | 4.2 kB 00:00:00
    epel | 4.3 kB 00:00:00
    extras | 3.4 kB 00:00:00
    mongodb-org-3.0 | 2.5 kB 00:00:00
    puppetlabs-pc1 | 2.5 kB 00:00:00
    updates | 3.4 kB 00:00:00
    (1/9): base/7/x86_64/group_gz | 155 kB 00:00:02
    (2/9): epel/x86_64/group_gz | 170 kB 00:00:02
    epel/x86_64/updateinfo FAILED
    http://ftp.riken.jp/Linux/fedora/epel/7/x86_64/repodata/56be5b8d19447db16a651fd36313c9f005ae7aa50073dc084c4c2166a108ed13-updateinfo.xml.bz2: [Errno 14] HTTP Error 404 - Not Found
    Trying other mirror.
    To address this issue please refer to the below knowledge base article

    https://access.redhat.com/articles/1320623

    If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/

    (3/9): base/7/x86_64/primary_db | 5.6 MB 00:00:05
    (4/9): extras/7/x86_64/primary_db | 139 kB 00:00:02
    (5/9): mongodb-org-3.0/7/primary_db | 74 kB 00:00:03
    (6/9): puppetlabs-pc1/x86_64/primary_db | 109 kB 00:00:03
    epel/x86_64/primary_db FAILED
    https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/repodata/9d3545ef1f8b2414d5f8d5bca3289cf7dcf4b9ac4d0940a90e15c6a446315098-primary.sqlite.xz: [Errno 14] HTTPS Error 404 - Not Found
    Trying other mirror.
    (7/9): epel/x86_64/updateinfo | 765 kB 00:00:01
    (8/9): updates/7/x86_64/primary_db | 3.9 MB 00:00:02
    epel/x86_64/primary_db FAILED
    http://ftp.cuhk.edu.hk/pub/linux/fedora-epel/7/x86_64/repodata/9d3545ef1f8b2414d5f8d5bca3289cf7dcf4b9ac4d0940a90e15c6a446315098-primary.sqlite.xz: [Errno 14] HTTP Error 404 - Not Found
    Trying other mirror.
    (9/9): epel/x86_64/primary_db | 4.6 MB 00:00:05
    Determining fastest mirrors
    * base: ftp.jaist.ac.jp
    * epel: ftp.jaist.ac.jp
    * extras: ftp.jaist.ac.jp
    * updates: ftp.jaist.ac.jp
    Resolving Dependencies
    --> Running transaction check
    ---> Package mongodb-org.x86_64 0:3.0.14-1.el7 will be installed
    --> Processing Dependency: mongodb-org-tools = 3.0.14 for package: mongodb-org-3.0.14-1.el7.x86_64
    --> Processing Dependency: mongodb-org-shell = 3.0.14 for package: mongodb-org-3.0.14-1.el7.x86_64
    --> Processing Dependency: mongodb-org-server = 3.0.14 for package: mongodb-org-3.0.14-1.el7.x86_64
    --> Processing Dependency: mongodb-org-mongos = 3.0.14 for package: mongodb-org-3.0.14-1.el7.x86_64
    --> Running transaction check
    ---> Package mongodb-org-mongos.x86_64 0:3.0.14-1.el7 will be installed
    ---> Package mongodb-org-server.x86_64 0:3.0.14-1.el7 will be installed
    ---> Package mongodb-org-shell.x86_64 0:3.0.14-1.el7 will be installed
    ---> Package mongodb-org-tools.x86_64 0:3.0.14-1.el7 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    ======================================================================================
    Package Arch Version Repository Size
    ======================================================================================
    Installing:
    mongodb-org x86_64 3.0.14-1.el7 mongodb-org-3.0 5.8 k
    Installing for dependencies:
    mongodb-org-mongos x86_64 3.0.14-1.el7 mongodb-org-3.0 4.6 M
    mongodb-org-server x86_64 3.0.14-1.el7 mongodb-org-3.0 9.7 M
    mongodb-org-shell x86_64 3.0.14-1.el7 mongodb-org-3.0 5.0 M
    mongodb-org-tools x86_64 3.0.14-1.el7 mongodb-org-3.0 38 M

    Transaction Summary
    ======================================================================================
    Install 1 Package (+4 Dependent packages)

    Total download size: 57 M
    Installed size: 166 M
    Is this ok [y/d/N]: y
    Downloading packages:
    (1/5): mongodb-org-3.0.14-1.el7.x86_64.rpm | 5.8 kB 00:00:01
    (2/5): mongodb-org-mongos-3.0.14-1.el7.x86_64.rpm | 4.6 MB 00:00:02
    (3/5): mongodb-org-server-3.0.14-1.el7.x86_64.rpm | 9.7 MB 00:00:05
    (4/5): mongodb-org-shell-3.0.14-1.el7.x86_64.rpm | 5.0 MB 00:00:04
    (5/5): mongodb-org-tools-3.0.14-1.el7.x86_64.rpm | 38 MB 00:00:27
    --------------------------------------------------------------------------------------
    Total 1.7 MB/s | 57 MB 00:34
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    Installing : mongodb-org-shell-3.0.14-1.el7.x86_64 1/5
    Installing : mongodb-org-tools-3.0.14-1.el7.x86_64 2/5
    Installing : mongodb-org-mongos-3.0.14-1.el7.x86_64 3/5
    Installing : mongodb-org-server-3.0.14-1.el7.x86_64 4/5
    Installing : mongodb-org-3.0.14-1.el7.x86_64 5/5
    Verifying : mongodb-org-3.0.14-1.el7.x86_64 1/5
    Verifying : mongodb-org-server-3.0.14-1.el7.x86_64 2/5
    Verifying : mongodb-org-mongos-3.0.14-1.el7.x86_64 3/5
    Verifying : mongodb-org-tools-3.0.14-1.el7.x86_64 4/5
    Verifying : mongodb-org-shell-3.0.14-1.el7.x86_64 5/5

    Installed:
    mongodb-org.x86_64 0:3.0.14-1.el7

    Dependency Installed:
    mongodb-org-mongos.x86_64 0:3.0.14-1.el7 mongodb-org-server.x86_64 0:3.0.14-1.el7
    mongodb-org-shell.x86_64 0:3.0.14-1.el7 mongodb-org-tools.x86_64 0:3.0.14-1.el7

    Complete!
    [root@localhost yum.repos.d]#
    [root@localhost yum.repos.d]#
    [root@localhost yum.repos.d]#
    [root@localhost yum.repos.d]# systemcol start mongod
    -bash: systemcol: command not found
    [root@localhost yum.repos.d]# systemctl start mongod
    [root@localhost yum.repos.d]#
    [root@localhost yum.repos.d]# chkconfig mongod on
    [root@localhost yum.repos.d]#


    ★nvmいれる前にgitいれる
    [root@localhost yum.repos.d]# yum install git
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: ftp.jaist.ac.jp
    * epel: ftp.jaist.ac.jp
    * extras: ftp.jaist.ac.jp
    * updates: ftp.jaist.ac.jp
    Resolving Dependencies
    --> Running transaction check
    ---> Package git.x86_64 0:1.8.3.1-6.el7_2.1 will be installed
    --> Processing Dependency: perl-Git = 1.8.3.1-6.el7_2.1 for package: git-1.8.3.1-6.el7_2.1.x86_64
    --> Processing Dependency: rsync for package: git-1.8.3.1-6.el7_2.1.x86_64
    --> Processing Dependency: perl(Term::ReadKey) for package: git-1.8.3.1-6.el7_2.1.x86_64
    --> Processing Dependency: perl(Git) for package: git-1.8.3.1-6.el7_2.1.x86_64
    --> Processing Dependency: perl(Error) for package: git-1.8.3.1-6.el7_2.1.x86_64
    --> Processing Dependency: libgnome-keyring.so.0()(64bit) for package: git-1.8.3.1-6.el7_2.1.x86_64
    --> Running transaction check
    ---> Package libgnome-keyring.x86_64 0:3.8.0-3.el7 will be installed
    ---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed
    ---> Package perl-Git.noarch 0:1.8.3.1-6.el7_2.1 will be installed
    ---> Package perl-TermReadKey.x86_64 0:2.30-20.el7 will be installed
    ---> Package rsync.x86_64 0:3.0.9-17.el7 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    ======================================================================================
    Package Arch Version Repository Size
    ======================================================================================
    Installing:
    git x86_64 1.8.3.1-6.el7_2.1 base 4.4 M
    Installing for dependencies:
    libgnome-keyring x86_64 3.8.0-3.el7 base 109 k
    perl-Error noarch 1:0.17020-2.el7 base 32 k
    perl-Git noarch 1.8.3.1-6.el7_2.1 base 53 k
    perl-TermReadKey x86_64 2.30-20.el7 base 31 k
    rsync x86_64 3.0.9-17.el7 base 360 k

    Transaction Summary
    ======================================================================================
    Install 1 Package (+5 Dependent packages)

    Total download size: 5.0 M
    Installed size: 23 M
    Is this ok [y/d/N]: y
    Downloading packages:
    (1/6): perl-Error-0.17020-2.el7.noarch.rpm | 32 kB 00:00:01
    (2/6): libgnome-keyring-3.8.0-3.el7.x86_64.rpm | 109 kB 00:00:01
    (3/6): rsync-3.0.9-17.el7.x86_64.rpm | 360 kB 00:00:00
    (4/6): perl-Git-1.8.3.1-6.el7_2.1.noarch.rpm | 53 kB 00:00:02
    (5/6): perl-TermReadKey-2.30-20.el7.x86_64.rpm | 31 kB 00:00:02
    (6/6): git-1.8.3.1-6.el7_2.1.x86_64.rpm | 4.4 MB 00:00:05
    --------------------------------------------------------------------------------------
    Total 878 kB/s | 5.0 MB 00:05
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    Installing : 1:perl-Error-0.17020-2.el7.noarch 1/6
    Installing : libgnome-keyring-3.8.0-3.el7.x86_64 2/6
    Installing : rsync-3.0.9-17.el7.x86_64 3/6
    Installing : perl-TermReadKey-2.30-20.el7.x86_64 4/6
    Installing : perl-Git-1.8.3.1-6.el7_2.1.noarch 5/6
    Installing : git-1.8.3.1-6.el7_2.1.x86_64 6/6
    Verifying : perl-TermReadKey-2.30-20.el7.x86_64 1/6
    Verifying : 1:perl-Error-0.17020-2.el7.noarch 2/6
    Verifying : rsync-3.0.9-17.el7.x86_64 3/6
    Verifying : git-1.8.3.1-6.el7_2.1.x86_64 4/6
    Verifying : libgnome-keyring-3.8.0-3.el7.x86_64 5/6
    Verifying : perl-Git-1.8.3.1-6.el7_2.1.noarch 6/6

    Installed:
    git.x86_64 0:1.8.3.1-6.el7_2.1

    Dependency Installed:
    libgnome-keyring.x86_64 0:3.8.0-3.el7 perl-Error.noarch 1:0.17020-2.el7
    perl-Git.noarch 0:1.8.3.1-6.el7_2.1 perl-TermReadKey.x86_64 0:2.30-20.el7
    rsync.x86_64 0:3.0.9-17.el7

    Complete!
    [root@localhost yum.repos.d]#
    [root@localhost yum.repos.d]#


    ★nvmいれる
    [root@localhost yum.repos.d]# git clone git://github.com/creationix/nvm.git ~/.nvm
    Cloning into '/root/.nvm'...
    remote: Counting objects: 6308, done.
    remote: Compressing objects: 100% (32/32), done.
    remote: Total 6308 (delta 13), reused 0 (delta 0), pack-reused 6276
    Receiving objects: 100% (6308/6308), 1.83 MiB | 679.00 KiB/s, done.
    Resolving deltas: 100% (3899/3899), done.
    [root@localhost yum.repos.d]# pwd
    /etc/yum.repos.d
    [root@localhost yum.repos.d]# ll
    total 44
    -rw-r--r--. 1 root root 1664 Dec 9 2015 CentOS-Base.repo
    -rw-r--r--. 1 root root 1309 Dec 9 2015 CentOS-CR.repo
    -rw-r--r--. 1 root root 649 Dec 9 2015 CentOS-Debuginfo.repo
    -rw-r--r--. 1 root root 290 Dec 9 2015 CentOS-fasttrack.repo
    -rw-r--r--. 1 root root 630 Dec 9 2015 CentOS-Media.repo
    -rw-r--r--. 1 root root 1331 Dec 9 2015 CentOS-Sources.repo
    -rw-r--r--. 1 root root 1952 Dec 9 2015 CentOS-Vault.repo
    -rw-r--r-- 1 root root 957 Nov 25 2014 epel.repo
    -rw-r--r-- 1 root root 1056 Nov 25 2014 epel-testing.repo
    -rw-r--r-- 1 root root 143 Apr 1 08:04 mongodb-org-3.0.repo
    -rw-r--r-- 1 root root 422 Oct 1 2015 puppetlabs-pc1.repo
    [root@localhost yum.repos.d]# ls -ltr
    total 44
    -rw-r--r-- 1 root root 1056 Nov 25 2014 epel-testing.repo
    -rw-r--r-- 1 root root 957 Nov 25 2014 epel.repo
    -rw-r--r-- 1 root root 422 Oct 1 2015 puppetlabs-pc1.repo
    -rw-r--r--. 1 root root 1952 Dec 9 2015 CentOS-Vault.repo
    -rw-r--r--. 1 root root 1331 Dec 9 2015 CentOS-Sources.repo
    -rw-r--r--. 1 root root 630 Dec 9 2015 CentOS-Media.repo
    -rw-r--r--. 1 root root 290 Dec 9 2015 CentOS-fasttrack.repo
    -rw-r--r--. 1 root root 649 Dec 9 2015 CentOS-Debuginfo.repo
    -rw-r--r--. 1 root root 1309 Dec 9 2015 CentOS-CR.repo
    -rw-r--r--. 1 root root 1664 Dec 9 2015 CentOS-Base.repo
    -rw-r--r-- 1 root root 143 Apr 1 08:04 mongodb-org-3.0.repo
    [root@localhost yum.repos.d]# cd /home/install
    [root@localhost install]# ll
    total 0
    [root@localhost install]# source ~/.nvm/nvm.sh
    [root@localhost install]#
    [root@localhost install]#
    [root@localhost install]# nvm ls-remote
    v0.1.14
    v0.1.15
    v0.1.16
    v0.1.17
    v0.1.18
    v0.1.19
    v0.1.20
    v0.1.21
    v0.1.22
    v0.1.23
    v0.1.24
    v0.1.25
    v0.1.26
    v0.1.27
    v0.1.28
    v0.1.29
    v0.1.30
    v0.1.31
    v0.1.32
    v0.1.33
    v0.1.90
    v0.1.91
    v0.1.92
    v0.1.93
    v0.1.94
    v0.1.95
    v0.1.96
    v0.1.97
    v0.1.98
    v0.1.99
    v0.1.100
    v0.1.101
    v0.1.102
    v0.1.103
    v0.1.104
    v0.2.0
    v0.2.1
    v0.2.2
    v0.2.3
    v0.2.4
    v0.2.5
    v0.2.6
    v0.3.0
    v0.3.1
    v0.3.2
    v0.3.3
    v0.3.4
    v0.3.5
    v0.3.6
    v0.3.7
    v0.3.8
    v0.4.0
    v0.4.1
    v0.4.2
    v0.4.3
    v0.4.4
    v0.4.5
    v0.4.6
    v0.4.7
    v0.4.8
    v0.4.9
    v0.4.10
    v0.4.11
    v0.4.12
    v0.5.0
    v0.5.1
    v0.5.2
    v0.5.3
    v0.5.4
    v0.5.5
    v0.5.6
    v0.5.7
    v0.5.8
    v0.5.9
    v0.5.10
    v0.6.0
    v0.6.1
    v0.6.2
    v0.6.3
    v0.6.4
    v0.6.5
    v0.6.6
    v0.6.7
    v0.6.8
    v0.6.9
    v0.6.10
    v0.6.11
    v0.6.12
    v0.6.13
    v0.6.14
    v0.6.15
    v0.6.16
    v0.6.17
    v0.6.18
    v0.6.19
    v0.6.20
    v0.6.21
    v0.7.0
    v0.7.1
    v0.7.2
    v0.7.3
    v0.7.4
    v0.7.5
    v0.7.6
    v0.7.7
    v0.7.8
    v0.7.9
    v0.7.10
    v0.7.11
    v0.7.12
    v0.8.0
    v0.8.1
    v0.8.2
    v0.8.3
    v0.8.4
    v0.8.5
    v0.8.6
    v0.8.7
    v0.8.8
    v0.8.9
    v0.8.10
    v0.8.11
    v0.8.12
    v0.8.13
    v0.8.14
    v0.8.15
    v0.8.16
    v0.8.17
    v0.8.18
    v0.8.19
    v0.8.20
    v0.8.21
    v0.8.22
    v0.8.23
    v0.8.24
    v0.8.25
    v0.8.26
    v0.8.27
    v0.8.28
    v0.9.0
    v0.9.1
    v0.9.2
    v0.9.3
    v0.9.4
    v0.9.5
    v0.9.6
    v0.9.7
    v0.9.8
    v0.9.9
    v0.9.10
    v0.9.11
    v0.9.12
    v0.10.0
    v0.10.1
    v0.10.2
    v0.10.3
    v0.10.4
    v0.10.5
    v0.10.6
    v0.10.7
    v0.10.8
    v0.10.9
    v0.10.10
    v0.10.11
    v0.10.12
    v0.10.13
    v0.10.14
    v0.10.15
    v0.10.16
    v0.10.17
    v0.10.18
    v0.10.19
    v0.10.20
    v0.10.21
    v0.10.22
    v0.10.23
    v0.10.24
    v0.10.25
    v0.10.26
    v0.10.27
    v0.10.28
    v0.10.29
    v0.10.30
    v0.10.31
    v0.10.32
    v0.10.33
    v0.10.34
    v0.10.35
    v0.10.36
    v0.10.37
    v0.10.38
    v0.10.39
    v0.10.40
    v0.10.41
    v0.10.42
    v0.10.43
    v0.10.44
    v0.10.45
    v0.10.46
    v0.10.47
    v0.10.48
    v0.11.0
    v0.11.1
    v0.11.2
    v0.11.3
    v0.11.4
    v0.11.5
    v0.11.6
    v0.11.7
    v0.11.8
    v0.11.9
    v0.11.10
    v0.11.11
    v0.11.12
    v0.11.13
    v0.11.14
    v0.11.15
    v0.11.16
    v0.12.0
    v0.12.1
    v0.12.2
    v0.12.3
    v0.12.4
    v0.12.5
    v0.12.6
    v0.12.7
    v0.12.8
    v0.12.9
    v0.12.10
    v0.12.11
    v0.12.12
    v0.12.13
    v0.12.14
    v0.12.15
    v0.12.16
    v0.12.17
    v0.12.18
    iojs-v1.0.0
    iojs-v1.0.1
    iojs-v1.0.2
    iojs-v1.0.3
    iojs-v1.0.4
    iojs-v1.1.0
    iojs-v1.2.0
    iojs-v1.3.0
    iojs-v1.4.1
    iojs-v1.4.2
    iojs-v1.4.3
    iojs-v1.5.0
    iojs-v1.5.1
    iojs-v1.6.0
    iojs-v1.6.1
    iojs-v1.6.2
    iojs-v1.6.3
    iojs-v1.6.4
    iojs-v1.7.1
    iojs-v1.8.1
    iojs-v1.8.2
    iojs-v1.8.3
    iojs-v1.8.4
    iojs-v2.0.0
    iojs-v2.0.1
    iojs-v2.0.2
    iojs-v2.1.0
    iojs-v2.2.0
    iojs-v2.2.1
    iojs-v2.3.0
    iojs-v2.3.1
    iojs-v2.3.2
    iojs-v2.3.3
    iojs-v2.3.4
    iojs-v2.4.0
    iojs-v2.5.0
    iojs-v3.0.0
    iojs-v3.1.0
    iojs-v3.2.0
    iojs-v3.3.0
    iojs-v3.3.1
    v4.0.0
    v4.1.0
    v4.1.1
    v4.1.2
    v4.2.0 (LTS: Argon)
    v4.2.1 (LTS: Argon)
    v4.2.2 (LTS: Argon)
    v4.2.3 (LTS: Argon)
    v4.2.4 (LTS: Argon)
    v4.2.5 (LTS: Argon)
    v4.2.6 (LTS: Argon)
    v4.3.0 (LTS: Argon)
    v4.3.1 (LTS: Argon)
    v4.3.2 (LTS: Argon)
    v4.4.0 (LTS: Argon)
    v4.4.1 (LTS: Argon)
    v4.4.2 (LTS: Argon)
    v4.4.3 (LTS: Argon)
    v4.4.4 (LTS: Argon)
    v4.4.5 (LTS: Argon)
    v4.4.6 (LTS: Argon)
    v4.4.7 (LTS: Argon)
    v4.5.0 (LTS: Argon)
    v4.6.0 (LTS: Argon)
    v4.6.1 (LTS: Argon)
    v4.6.2 (LTS: Argon)
    v4.7.0 (LTS: Argon)
    v4.7.1 (LTS: Argon)
    v4.7.2 (LTS: Argon)
    v4.7.3 (LTS: Argon)
    v4.8.0 (LTS: Argon)
    v4.8.1 (Latest LTS: Argon)
    v5.0.0
    v5.1.0
    v5.1.1
    v5.2.0
    v5.3.0
    v5.4.0
    v5.4.1
    v5.5.0
    v5.6.0
    v5.7.0
    v5.7.1
    v5.8.0
    v5.9.0
    v5.9.1
    v5.10.0
    v5.10.1
    v5.11.0
    v5.11.1
    v5.12.0
    v6.0.0
    v6.1.0
    v6.2.0
    v6.2.1
    v6.2.2
    v6.3.0
    v6.3.1
    v6.4.0
    v6.5.0
    v6.6.0
    v6.7.0
    v6.8.0
    v6.8.1
    v6.9.0 (LTS: Boron)
    v6.9.1 (LTS: Boron)
    v6.9.2 (LTS: Boron)
    v6.9.3 (LTS: Boron)
    v6.9.4 (LTS: Boron)
    v6.9.5 (LTS: Boron)
    v6.10.0 (LTS: Boron)
    v6.10.1 (Latest LTS: Boron)
    v7.0.0
    v7.1.0
    v7.2.0
    v7.2.1
    v7.3.0
    v7.4.0
    v7.5.0
    v7.6.0
    v7.7.0
    v7.7.1
    v7.7.2
    v7.7.3
    v7.7.4
    v7.8.0
    [root@localhost install]# nvm install staable
    Version 'staable' not found - try `nvm ls-remote` to browse available versions.
    [root@localhost install]#
    [root@localhost install]#


    ★nodeインストール
    [root@localhost install]# nvm install v7.8.0
    Downloading and installing node v7.8.0...
    Downloading https://nodejs.org/dist/v7.8.0/node-v7.8.0-linux-x64.tar.xz...
    ######################################################################## 100.0%
    Computing checksum with sha256sum
    Checksums matched!
    Now using node v7.8.0 (npm v4.2.0)
    Creating default alias: default -> v7.8.0
    [root@localhost install]#
    [root@localhost install]#
    [root@localhost install]# node -v
    v7.8.0


    ★expressいれる
    [root@localhost install]# npm install -g express
    /root/.nvm/versions/node/v7.8.0/lib
    └─┬ express@4.15.2
    ├─┬ accepts@1.3.3
    │ ├─┬ mime-types@2.1.15
    │ │ └── mime-db@1.27.0
    │ └── negotiator@0.6.1
    ├── array-flatten@1.1.1
    ├── content-disposition@0.5.2
    ├── content-type@1.0.2
    ├── cookie@0.3.1
    ├── cookie-signature@1.0.6
    ├─┬ debug@2.6.1
    │ └── ms@0.7.2
    ├── depd@1.1.0
    ├── encodeurl@1.0.1
    ├── escape-html@1.0.3
    ├── etag@1.8.0
    ├─┬ finalhandler@1.0.1
    │ ├── debug@2.6.3
    │ └── unpipe@1.0.0
    ├── fresh@0.5.0
    ├── merge-descriptors@1.0.1
    ├── methods@1.1.2
    ├─┬ on-finished@2.3.0
    │ └── ee-first@1.1.1
    ├── parseurl@1.3.1
    ├── path-to-regexp@0.1.7
    ├─┬ proxy-addr@1.1.4
    │ ├── forwarded@0.1.0
    │ └── ipaddr.js@1.3.0
    ├── qs@6.4.0
    ├── range-parser@1.2.0
    ├─┬ send@0.15.1
    │ ├── destroy@1.0.4
    │ ├─┬ http-errors@1.6.1
    │ │ └── inherits@2.0.3
    │ └── mime@1.3.4
    ├── serve-static@1.12.1
    ├── setprototypeof@1.0.3
    ├── statuses@1.3.1
    ├─┬ type-is@1.6.15
    │ └── media-typer@0.3.0
    ├── utils-merge@1.0.0
    └── vary@1.1.1

    [root@localhost install]#
    [root@localhost install]#

    [root@localhost install]# export NODE_PATH=/usr/local/lib/node_modules

    [root@localhost install]# vi ~/.bash_profile

    [root@localhost install]# npm link express
    /home/install/node_modules/express -> /root/.nvm/versions/node/v7.8.0/lib/node_modules/express


    [root@localhost install]#
    [root@localhost install]#
    [root@localhost install]#
    [root@localhost install]# npm install -g express-generator
    /root/.nvm/versions/node/v7.8.0/bin/express -> /root/.nvm/versions/node/v7.8.0/lib/node_modules/express-generator/bin/express-cli.js
    /root/.nvm/versions/node/v7.8.0/lib
    └─┬ express-generator@4.15.0
    ├─┬ commander@2.9.0
    │ └── graceful-readlink@1.0.1
    ├── ejs@2.5.6
    ├─┬ mkdirp@0.5.1
    │ └── minimist@0.0.8
    └── sorted-object@2.0.1

    [root@localhost install]#


    ただここまでして、nodeで起動したら、curlコマンドではアクセスできるのだが
    ブラウザからはアクセスできなかった
    ただディレクトリを変えるとアクセスできるようになった
    本環境はwindowsと共通で、vagrantを使用しているのだが
    node起動ディレクトリがwindowsと共通だとうまくいかないらしい。
    実際にディレクトリを変えるとうまくいった
    category:node.js | by:ittoocomments(0)trackbacks(0) | -

    ad
    Calender
         12
    3456789
    10111213141516
    17181920212223
    24252627282930
    << September 2017 >>
    Selected entry
    PR
    Category
    Archives
    Recent comment
    • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
      66hills
    • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
      ssd
    • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
      max
    • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
      DOM
    • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
      DOM
    • コンピュータ業界の根本的な変化
      cloud
    • コンピュータ業界の根本的な変化
      Dellの仮想化
    • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
      えちごや
    • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
      touch
    • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
      bob77777
    Recent trackback
    • スマートフォンの法人活用例
      無線LANネットのブログ
    • Yahoo!オークションからのアフィリエイト収入が一気に70%減になってしまい涙目になってる話
      特選情報
    Recommend
    Link
    Profile
    Search
    Others
    Mobile
    qrcode
    Powered
    無料ブログ作成サービス JUGEM