大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
[root@king01 ~]# yum -y install zlib-devel
[root@king01 ~]# tar xvf Python-2.7.5.tar.bz2
[root@king01 ~]# cd Python-2.7.5
[root@king01 Python-2.7.5]# ./configure --prefix=/usr/local/python27
[root@king01 Python-2.7.5]# make
[root@king01 Python-2.7.5]# make install
[root@king01 ~]# vi /etc/profilePATH=$PATH:/usr/local/python27/bin
[root@king01 ~]# source /etc/profile
[root@king01 ~]# yum install centos-release-scl -y
[root@king01 ~]# yum install devtoolset-4-gcc-c++ devtoolset-4-gcc -y
[root@king01 ~]# scl enable devtoolset-4 bash
[root@test01 ~]# gcc --version
gcc (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6)Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@king01 ~]# yum install -y git
[root@king01 ~]# git clone https://github.com/nodejs/node.gitInitialized empty Git repository in /root/node/.git/
remote: Counting objects: 376242, done.
remote: Compressing objects: 100% (120/120), done.
remote: Total 376242 (delta 120), reused 219 (delta 117), pack-reused 376005
Receiving objects: 100% (376242/376242), 337.98 MiB | 190 KiB/s, done.
Resolving deltas: 100% (272045/272045), done.
[root@king01 ~]# cd node
[root@king01 node]# ./configure
[root@king01 node]# make
[root@king01 node]# make install
[root@king01 ~]# node -v 版本号:v10.0.0-pre
[root@king01 ~]# npm install gtop -g
/usr/local/bin/gtop -> /usr/local/lib/node_modules/gtop/bin/gtop
+ gtop@0.1.5
added 105 packages in 141.017
给贴张图:如图所示-----------------------------------------------------------------------------------------------------------------------
[root@king01 ~]# gtop
安装完毕!
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。