码迷,mamicode.com
首页 > 系统相关 > 详细

LINUX GTOP部署实录

时间:2018-02-13 14:08:37      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:python   rem   ack   ref   one   receiving   file   pre   centos   

[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/profile

PATH=$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.git

Initialized 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 ~]# npm install gtop -g


LINUX GTOP部署实录

标签:python   rem   ack   ref   one   receiving   file   pre   centos   

原文地址:http://blog.51cto.com/13598811/2071499

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!