当前位置: > CentOS > CentOS入门 >

CentOS 6.4 安装使用体验汇总2

时间:2014-02-21 13:20来源:www.it.net.cn 作者:IT网

八、安装 VIM 编辑器

九、安装 MAN 帮助文档

十、安装 LVM

十一、修改默认语言

十二、安装常用工具

八、安装 VIM 编辑器

 

接第一篇:http://www.centoscn.com/CentOS/Intermediate/2013/0907/1572.html

1. 查看

vi

 

vim'

默认没有安装vim

2. 安装vim

1
[root@web yum.repos.d]# yum install vim*

vim

vim安装

九、安装 MAN 帮助文档

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[root@web ~]# yum install man*
[root@web ~]# man vim
VIM(1)                                                                  VIM(1)
NAME
vim - Vi IMproved, a programmers text editor
SYNOPSIS
vim [options] [file..]
vim [options] -
vim [options] -t tag
vim [options] -q [errorfile]
ex
view
gvim gview evim eview
rvim rview rgvim rgview
DESCRIPTION
Vim  is  a  text editor that is upwards compatible to Vi.  It can be used to edit all kinds of plain text.  It is
especially useful forediting programs.
There are a lot of enhancements above Vi: multi level undo, multi windows and buffers, syntax highlighting,  com-
mand line editing, filename completion, on-line help, visual selection, etc..  See":help vi_diff.txt"fora sum-
mary of the differences between Vim and Vi.

十、安装 LVM

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[root@web ~]# yum install lvm2
[root@web ~]# man lvm
LVM(8)                                                                  LVM(8)
NAME
lvm - LVM2 tools
SYNOPSIS
lvm [command| file]
DESCRIPTION
lvm provides the command-line tools forLVM2.  A separate manual page describes eachcommandindetail.
If  lvm  is  invoked with no arguments it presents a readline prompt (assuming it was compiled with readline sup-
port).  LVM commands may be entered interactively at this prompt with readline facilities including  historyand
commandname and option completion.  Refer to readline(3) fordetails.
If  lvm  is  invoked  with argv[0] setto the name of a specific LVM command(forexample by using a hard or soft
link) it acts as that command.
On invocation, lvm requires that only the standard filedescriptors stdin, stdout and stderr are  available.   If
others are found, they get closed and messages are issued warning about the leak.
Where  commands  take  VG or LV names as arguments, the full path name is optional.  An LV called "lvol0"ina VG
called "vg0"can be specified as "vg0/lvol0".  Where a list of VGs is required but is left empty, a list  of  all
VGs  will  be  substituted.   Where a list of LVs is required but a VG is given, a list of all the LVs inthat VG
will be substituted.  So lvdisplay vg0 will display all the LVs in"vg0".  Tags can also be used -  see  --addtag
below.
One  advantage  of using the built-inshell is that configuration information gets cached internally between com-
mands.
A filecontaining a simple script with one commandper line can also be given on thecommandline.   The  script
can also be executed directly ifthe first line is #! followed by the absolute path of lvm.

十一、修改默认语言

1
2
3
4
[root@web ~]# vim /etc/sysconfig/i18n
LANG="en_US.UTF-8"
~
[root@web ~]# export LANG=en

十二、安装常用工具

1. 常见压缩工具 zip unzip bzip2    

1
[root@localhost ~]# yum -y install unzip zip bzip2 bzip2-devel

 

2. gcc gcc++编译器      

1
[root@localhost ~]# yum install gcc gcc-c++ –y

 

3. cmake编译器      

1
[root@localhost ~]# yum install cmake make –y

 

4. 图片资源      

1
[root@localhost ~]# yum -y install gd libjpeg libjpeg-devel libpng libpng-devel freetype-devel

 

5. 其它常用资源包工具      

1
[root@localhost ~]# yum -y install autoconf bison automake zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel*

 

到此所有演示全部完成! ^_^ ……

 

(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容