关键词:
1、安装rhel6
#关闭防火墙
/etc/init.d/iptables stop
#关闭Selinux
setenforce permissive
2、启用网络设备
3、安装VMware-Tools
./vmware-install.pl
4、安装vim
[root@localhost 桌面]# rpm -qa |grep vim
vim-minimal-7.2.411-1.8.el6.i686
vim-common-7.2.411-1.8.el6.i686
vim-enhanced-7.2.411-1.8.el6.i686
[root@localhost 桌面]#
5、安装ctags
[root@localhost 桌面]# rpm -qa |grep tag
taglib-1.6.1-1.1.el6.i686
ctags-5.8-2.el6.i686
[root@localhost 桌面]#
6、安装cscope
[root@localhost 桌面]# rpm -qa |grep cscope
cscope-15.6-6.el6.i686
[root@localhost 桌面]#
7、更新yum为网易源
查看rhel是否安装python
查看rhel是否安装yum
更换yum源 使用163的源
清除原有缓存
重建缓存
构建多个yum源
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-6 - Base - 163.com
baseurl=http://mirrors.163.com/centos/6/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-6 - Updates - 163.com
baseurl=http://mirrors.163.com/centos/6/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-6 - Extras - 163.com
baseurl=http://mirrors.163.com/centos/6/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6 - Plus - 163.com
baseurl=http://mirrors.163.com/centos/6/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-6 - Contrib - 163.com
baseurl=http://mirrors.163.com/centos/6/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-6 - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/6/os/$basearch/
http://mirrors.aliyuncs.com/centos/6/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-6 - Updates - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/6/updates/$basearch/
http://mirrors.aliyuncs.com/centos/6/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-6 - Extras - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/6/extras/$basearch/
http://mirrors.aliyuncs.com/centos/6/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6 - Plus - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/6/centosplus/$basearch/
http://mirrors.aliyuncs.com/centos/6/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-6 - Contrib - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/6/contrib/$basearch/
http://mirrors.aliyuncs.com/centos/6/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-6
yum常用命令
更新和升级
1 安装
2 更新和升级
3 查找和显示
4 删除程序
5 清除缓存
8、安装tree
yum -y install tree dos2unix
9、安装vimrc
"=========================================================================
" DesCRiption: 适合自己使用的vimrc文件,for Linux/Windows, GUI/Console
"
" Last Change: 2010年08月02日 15时13分
"
" Version: 1.80
"
"=========================================================================
set nocompatible " 关闭 vi 兼容模式
syntax on " 自动语法高亮
colorscheme molokai " 设定配色方案
set number " 显示行号
set cursorline " 突出显示当前行
set ruler " 打开状态栏标尺
set shiftwidth=4 " 设定 << 和 >> 命令移动时的宽度为 4
set softtabstop=4 " 使得按退格键时可以一次删掉 4 个空格
set tabstop=4 " 设定 tab 长度为 4
set nobackup " 覆盖文件时不备份
set autochdir " 自动切换当前目录为当前文件所在的目录
filetype plugin indent on " 开启插件
set backupcopy=yes " 设置备份时的行为为覆盖
set ignorecase smartcase " 搜索时忽略大小写,但在有一个或以上大写字母时仍保持对大小写敏感
set nowrapscan " 禁止在搜索到文件两端时重新搜索
set incsearch " 输入搜索内容时就显示搜索结果
set hlsearch " 搜索时高亮显示被找到的文本
set noerrorbells " 关闭错误信息响铃
set novisualbell " 关闭使用可视响铃代替呼叫
set t_vb= " 置空错误铃声的终端代码
" set showmatch " 插入括号时,短暂地跳转到匹配的对应括号
" set matchtime=2 " 短暂跳转到匹配括号的时间
set magic " 设置魔术
set hidden " 允许在有未保存的修改时切换缓冲区,此时的修改由 vim 负责保存
set guioptions-=T " 隐藏工具栏
set guioptions-=m " 隐藏菜单栏
set smartindent " 开启新行时使用智能自动缩进
set backspace=indent,eol,start
" 不设定在插入状态无法用退格键和 Delete 键删除回车符
set cmdheight=1 " 设定命令行的行数为 1
set laststatus=2 " 显示状态栏 (默认值为 1, 无法显示状态栏)
set statusline=\ %<%F[%1*%M%*%n%R%H]%=\ %y\ %0(%{&fileformat}\ %{&encoding}\ %c:%l/%L%)\
" 设置在状态行显示的信息
set foldenable " 开始折叠
set foldmethod=syntax " 设置语法折叠
set foldcolumn=0 " 设置折叠区域的宽度
setlocal foldlevel=1 " 设置折叠层数为
" set foldclose=all " 设置为自动关闭折叠
" nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>
" 用空格键来开关折叠
" return OS type, eg: windows, or linux, mac, et.st..
function! MySys()
if has("win16") || has("win32") || has("win64") || has("win95")
return "windows"
elseif has("unix")
return "linux"
endif
endfunction
" 用户目录变量$VIMFILES
if MySys() == "windows"
let $VIMFILES = $VIM.'/vimfiles'
elseif MySys() == "linux"
let $VIMFILES = $HOME.'/.vim'
endif
" 设定doc文档目录
let helptags=$VIMFILES.'/doc'
" 设置字体 以及中文支持
if has("win32")
set guifont=Inconsolata:h12:cANSI
endif
" 配置多语言环境
if has("multi_byte")
" UTF-8 编码
set encoding=utf-8
set termencoding=utf-8
set formatoptions+=mM
set fencs=utf-8,gbk
if v:lang =~? '^\(zh\)\|\(ja\)\|\(ko\)'
set ambiwidth=double
endif
if has("win32")
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
language messages zh_CN.utf-8
endif
else
echoerr "Sorry, this version of (g)vim was not compiled with +multi_byte"
endif
" Buffers操作快捷方式!
nnoremap <C-RETURN> :bnext<CR>
nnoremap <C-S-RETURN> :bprevious<CR>
" Tab操作快捷方式!
nnoremap <C-TAB> :tabnext<CR>
nnoremap <C-S-TAB> :tabprev<CR>
"关于tab的快捷键
" map tn :tabnext<cr>
" map tp :tabprevious<cr>
" map td :tabnew .<cr>
" map te :tabedit
" map tc :tabclose<cr>
"窗口分割时,进行切换的按键热键需要连接两次,比如从下方窗口移动
"光标到上方窗口,需要<c-w><c-w>k,非常麻烦,现在重映射为<c-k>,切换的
"时候会变得非常方便.
nnoremap <C-h> <C-w>h
- 查看详情
windows7下安装vmware和red-hat764bit
按F2进入BIOS:在intervirtualizationtechnology选择YES就可以安装linux64bit操作系统了 https://blog.csdn.net/coco2d_x2014/article/details/54587134https://jingyan.baidu.com/article/86112f135e584a273697876b.html 查看详情
vmware安装win7*64位时,安装不成功的关键点是光驱接口类型选择为ide模式
mware 安装win7*64时,找不到光盘,后来在xin7*64的虚拟机下的编辑虚拟机设置找到光驱,点击高级,并选择IDE即可,这样就可以进入虚拟机找到光驱和硬盘到了。进入winpe后可以看到各种工具,如果不选IDE,进入后什么也看不到... 查看详情
java开发环境配置(win7-64bit)
...置4.测试5.注意事项1.概述搭建Java开发环境一般需要同时安装JDK和JRE。JDK:指Java开发工具包JavaDevelopmentKit,开发Java程序时必需,JDK里包含一部分公共JRE。JRE:一个Ja 查看详情
win7(64bit)使用mingw64配置gtkmm
因为linux命令不熟悉,加上时间不充裕,仍然决定在win7_64bit下开发GUI程序,选择gtkmm是因为:1.在图形界面程序中,windows系统当之无愧GUI之王,用户友好性其他OS无法替代2.Qt虽然版权放开了,但Qt信号机制让人不爽,过于紧耦合... 查看详情
win7(64位)下安装rabbitmq
RabbitMQ依赖erlang,所以先安装erlang,然后再安装RabbitMQ;下载RabbitMQ,下载地址:http://www.rabbitmq.com erlang,下载地址:http://www.erlang.org/ 先安装erlang,双击erlang的安装文件即可,然后配置环境变量: ERLANG_HOME=C:ProgramFil 查看详情
vmware无法进入unity模式
Win764bit系统,安装VMware10.0.2虚拟机,已安装ubuntu14.0,已安装VMTools,鼠标可以在虚拟机和Win7系统中自由移动,但是VMware上进入Unity模式的按钮认识灰色的,点击显示:【虚拟机无法进入Unity模式。请检查Unity是否受此客户机操作系统... 查看详情
win7下安装flask
参考: http://my.oschina.net/935572630/blog/375758 一环境版本: os:win7x64 python:2.7.10x64二安装步骤: 由于flask运行依赖很多库, 手动安装的话, 对菜鸟来说比较麻烦, 查看详情
qt5.2版本开发环境在win7(64位)上能否同时安装32位和64位两种版本。
...(VS2012,579MB)Qt5.2.0forWindows64-bit(VS2012,590MB)上面两个能否同时安装在我的电脑上(win764位)参考技术A可以吧我的电脑上安装了不同版本的qtcreator,但你为啥64位机器上装32位软件?可能会不兼容本回答被提问者和网友采纳 参考技术B... 查看详情
linux下安装oracle11g
Linux下安装Oracle11g1、?下载安装VMwareWorkstationv9.0.2虚拟机软件,下载rhel-server-6.0-x86_64-dvd.iso安装RedHatEnterpriseLinux664-bit操作系统到VMware中。安装时候增加Linux用户oracle。2、?在Vmware虚拟机中设置光驱属性为使用ISO映像... 查看详情
虚拟机安装-基于vmware12安装xp系统---下篇
限于篇幅,本次分享为上一篇随笔“虚拟机安装-基于VMware12安装xp系统---上篇”的后续分享。---------------------------------------------------------分割线-----------------------------------------------------单击“开启此虚拟机”、选择第二项(运行WI... 查看详情
为啥在 Win7 64bit 中不能通过 'ntQuerySystemInformation' 获取超过 65535 的进程 ID?
】为啥在Win764bit中不能通过\\\'ntQuerySystemInformation\\\'获取超过65535的进程ID?【英文标题】:Whycan\'tgetprocessidthatmorethan65535by\'ntQuerySystemInformation\'inWin764bit?为什么在Win764bit中不能通过\'ntQuerySystemInformation\'获取超过65535的进程ID?【... 查看详情
最新版本的 Xcode 安装时卡住了 (12.5)
】最新版本的Xcode安装时卡住了(12.5)【英文标题】:LatestversionofXcodestuckoninstallation(12.5)【发布时间】:2021-06-0908:49:35【问题描述】:我刚刚将我的mac更新到macOSBigSur,并正在尝试更新到XCode的下一个版本。几个小时以来,它的进度... 查看详情
Win7 Prof. 64bit 下的IIS 7.5 返回空白页(根本没有HTML)
】Win7Prof.64bit下的IIS7.5返回空白页(根本没有HTML)【英文标题】:IIS7.5underWin7Prof.64bitReturningBlankPage(NoHTMLatall)【发布时间】:2009-09-1717:11:27【问题描述】:我正在尝试在Windows7中设置我的开发环境,但无法让IIS正常工作。我已经... 查看详情
win7(64位旗舰版)visualstudio2017无法安装及vs2015闪退问题解决方式
...的人。最近在学习python的语音信号处理,有一个webrtcvad库基于c/c++开发,需要底层c++编译器支持,如果是在linux环境下安装自然简 查看详情
在 Win7 64 位上因未处理的第一次机会异常而崩溃(在 XP 32 位、Linux 64 位上没有问题)
】在Win764位上因未处理的第一次机会异常而崩溃(在XP32位、Linux64位上没有问题)【英文标题】:CrashoverunhandledfirstchanceexceptiononWin764bit(noissueonXP32bit,Linux64bit)【发布时间】:2013-02-1514:18:58【问题描述】:我在VisualStudioExpress2010下... 查看详情
vmware下安装centos6.5
一、工具1.VMware-workstation-full-12.5.0-4352439.exe2.CentOS-6.5-x86_64-minimal.iso二、安装VMware虚拟机 1.选择安装包,双击打开安装包;.2.点击【Next】3.勾选:“IacceptthetermsinthelicenseAgreement”,然后再点击【Next】;4.选取安装目录(默认),... 查看详情
有没人用过在win10下,运行pb12.5,发布webservice,到本机iis10,
...将WIN10镜像通过虚拟光驱软件加载成光盘。之后通过Windows安装程序定位到虚拟光驱中的install.exe文件进行安装。具体有些步骤可以搜索。2、U盘启动盘www.win114.cn可以来这里下载并安装有教程的。 查看详情