win7-64bit下基于VMware12.5安装rhel-server-6.3-i386
生活随笔
收集整理的這篇文章主要介紹了
win7-64bit下基于VMware12.5安装rhel-server-6.3-i386
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
/*************************************************************************************宿主PC:win7-64bit虛擬軟件:VMware12.5虛擬PC:rhel-server-6.3-i386時(shí)間:2016-10-02*************************************************************************************/
#關(guān)閉防火墻 /etc/init.d/iptables stop #關(guān)閉Selinux setenforce permissive
./vmware-install.pl
[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 桌面]#
[root@localhost 桌面]# rpm -qa |grep tag taglib-1.6.1-1.1.el6.i686 ctags-5.8-2.el6.i686 [root@localhost 桌面]#
[root@localhost 桌面]# rpm -qa |grep cscope cscope-15.6-6.el6.i686 [root@localhost 桌面]#
python-iniparse-0.3.1-2.1.el6.noarch
沒(méi)有安裝的話,重新安裝
yum-metadata-parser-1.1.2-16.el6.i686
yum-plugin-fastestmirror-1.1.30-37.el6.noarch
沒(méi)有安裝的話,重新安裝
# 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
3、導(dǎo)入KEYrpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6rpm --import http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-64、安裝自動(dòng)源選擇插件--自動(dòng)選擇最快的源yum install yum-fastestmirror -y5、如何確認(rèn)正在使用的是哪個(gè)源?cd /var/cache/yumcat timedhosts.txt如果我在那個(gè)目錄里放了很多源,怎么知道當(dāng)前用的是那個(gè)呢?如果你沒(méi)有改yum.conf,那么看/var/cache/yum/文件夾里的一個(gè)time開(kāi)頭的文件,就知道了如果在使用yum install安裝找不到某些包的時(shí)候,可以使用下面辦法試試wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpmrpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum -y install tree dos2unix
"========================================================================= " DesCRiption: 適合自己使用的vimrc文件,for Linux/Windows, GUI/Console " " Last Change: 2010年08月02日 15時(shí)13分 " " Version: 1.80 " "========================================================================= set nocompatible " 關(guān)閉 vi 兼容模式 syntax on " 自動(dòng)語(yǔ)法高亮 colorscheme molokai " 設(shè)定配色方案 set number " 顯示行號(hào) set cursorline " 突出顯示當(dāng)前行 set ruler " 打開(kāi)狀態(tài)欄標(biāo)尺 set shiftwidth=4 " 設(shè)定 << 和 >> 命令移動(dòng)時(shí)的寬度為 4 set softtabstop=4 " 使得按退格鍵時(shí)可以一次刪掉 4 個(gè)空格 set tabstop=4 " 設(shè)定 tab 長(zhǎng)度為 4 set nobackup " 覆蓋文件時(shí)不備份 set autochdir " 自動(dòng)切換當(dāng)前目錄為當(dāng)前文件所在的目錄 filetype plugin indent on " 開(kāi)啟插件 set backupcopy=yes " 設(shè)置備份時(shí)的行為為覆蓋 set ignorecase smartcase " 搜索時(shí)忽略大小寫(xiě),但在有一個(gè)或以上大寫(xiě)字母時(shí)仍保持對(duì)大小寫(xiě)敏感 set nowrapscan " 禁止在搜索到文件兩端時(shí)重新搜索 set incsearch " 輸入搜索內(nèi)容時(shí)就顯示搜索結(jié)果 set hlsearch " 搜索時(shí)高亮顯示被找到的文本 set noerrorbells " 關(guān)閉錯(cuò)誤信息響鈴 set novisualbell " 關(guān)閉使用可視響鈴代替呼叫 set t_vb= " 置空錯(cuò)誤鈴聲的終端代碼 " set showmatch " 插入括號(hào)時(shí),短暫地跳轉(zhuǎn)到匹配的對(duì)應(yīng)括號(hào) " set matchtime=2 " 短暫跳轉(zhuǎn)到匹配括號(hào)的時(shí)間 set magic " 設(shè)置魔術(shù) set hidden " 允許在有未保存的修改時(shí)切換緩沖區(qū),此時(shí)的修改由 vim 負(fù)責(zé)保存 set guioptions-=T " 隱藏工具欄 set guioptions-=m " 隱藏菜單欄 set smartindent " 開(kāi)啟新行時(shí)使用智能自動(dòng)縮進(jìn) set backspace=indent,eol,start " 不設(shè)定在插入狀態(tài)無(wú)法用退格鍵和 Delete 鍵刪除回車(chē)符 set cmdheight=1 " 設(shè)定命令行的行數(shù)為 1 set laststatus=2 " 顯示狀態(tài)欄 (默認(rèn)值為 1, 無(wú)法顯示狀態(tài)欄) set statusline=\ %<%F[%1*%M%*%n%R%H]%=\ %y\ %0(%{&fileformat}\ %{&encoding}\ %c:%l/%L%)\ " 設(shè)置在狀態(tài)行顯示的信息 set foldenable " 開(kāi)始折疊 set foldmethod=syntax " 設(shè)置語(yǔ)法折疊 set foldcolumn=0 " 設(shè)置折疊區(qū)域的寬度 setlocal foldlevel=1 " 設(shè)置折疊層數(shù)為 " set foldclose=all " 設(shè)置為自動(dòng)關(guān)閉折疊 " nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR> " 用空格鍵來(lái)開(kāi)關(guān)折疊 " 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 " 用戶(hù)目錄變量$VIMFILES if MySys() == "windows" let $VIMFILES = $VIM.'/vimfiles' elseif MySys() == "linux" let $VIMFILES = $HOME.'/.vim' endif " 設(shè)定doc文檔目錄 let helptags=$VIMFILES.'/doc' " 設(shè)置字體 以及中文支持 if has("win32") set guifont=Inconsolata:h12:cANSI endif " 配置多語(yǔ)言環(huán)境 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> "關(guān)于tab的快捷鍵 " map tn :tabnext<cr> " map tp :tabprevious<cr> " map td :tabnew .<cr> " map te :tabedit " map tc :tabclose<cr> "窗口分割時(shí),進(jìn)行切換的按鍵熱鍵需要連接兩次,比如從下方窗口移動(dòng) "光標(biāo)到上方窗口,需要<c-w><c-w>k,非常麻煩,現(xiàn)在重映射為<c-k>,切換的 "時(shí)候會(huì)變得非常方便. nnoremap <C-h> <C-w>h nnoremap <C-j> <C-w>j nnoremap <C-k> <C-w>k nnoremap <C-l> <C-w>l "一些不錯(cuò)的映射轉(zhuǎn)換語(yǔ)法(如果在一個(gè)文件中混合了不同語(yǔ)言時(shí)有用) nnoremap <leader>1 :set filetype=xhtml<CR> nnoremap <leader>2 :set filetype=css<CR> nnoremap <leader>3 :set filetype=javascript<CR> nnoremap <leader>4 :set filetype=php<CR> " set fileformats=unix,dos,mac " nmap <leader>fd :se fileformat=dos<CR> " nmap <leader>fu :se fileformat=unix<CR> " use Ctrl+[l|n|p|cc] to list|next|previous|jump to count the result " map <C-x>l <ESC>:cl<CR> " map <C-x>n <ESC>:cn<CR> " map <C-x>p <ESC>:cp<CR> " map <C-x>c <ESC>:cc<CR> " 讓 Tohtml 產(chǎn)生有 CSS 語(yǔ)法的 html " syntax/2html.vim,可以用:runtime! syntax/2html.vim let html_use_css=1 " Python 文件的一般設(shè)置,比如不要 tab 等 autocmd FileType python set tabstop=4 shiftwidth=4 expandtab autocmd FileType python map <F12> :!python %<CR> " 選中狀態(tài)下 Ctrl+c 復(fù)制 vmap <C-c> "+y " 打開(kāi)javascript折疊 let b:javascript_fold=1 " 打開(kāi)javascript對(duì)dom、html和css的支持 let javascript_enable_domhtmlcss=1 " 設(shè)置字典 ~/.vim/dict/文件的路徑 autocmd filetype javascript set dictionary=$VIMFILES/dict/javascript.dict autocmd filetype css set dictionary=$VIMFILES/dict/css.dict autocmd filetype php set dictionary=$VIMFILES/dict/php.dict "----------------------------------------------------------------- " plugin - bufexplorer.vim Buffers切換 " \be 全屏方式查看全部打開(kāi)的文件列表 " \bv 左右方式查看 \bs 上下方式查看 "----------------------------------------------------------------- "----------------------------------------------------------------- " plugin - taglist.vim 查看函數(shù)列表,需要ctags程序 " F4 打開(kāi)隱藏taglist窗口 "----------------------------------------------------------------- if MySys() == "windows" " 設(shè)定windows系統(tǒng)中ctags程序的位置 let Tlist_Ctags_Cmd = '"'.$VIMRUNTIME.'/ctags.exe"' elseif MySys() == "linux" " 設(shè)定windows系統(tǒng)中ctags程序的位置 let Tlist_Ctags_Cmd = '/usr/bin/ctags' endif nnoremap <silent><F4> :TlistToggle<CR> let Tlist_Show_One_File = 1 " 不同時(shí)顯示多個(gè)文件的tag,只顯示當(dāng)前文件的 let Tlist_Exit_OnlyWindow = 1 " 如果taglist窗口是最后一個(gè)窗口,則退出vim let Tlist_Use_Right_Window = 1 " 在右側(cè)窗口中顯示taglist窗口 let Tlist_File_Fold_Auto_Close=1 " 自動(dòng)折疊當(dāng)前非編輯文件的方法列表 let Tlist_Auto_Open = 0 let Tlist_Auto_Update = 1 let Tlist_Hightlight_Tag_On_BufEnter = 1 let Tlist_Enable_Fold_Column = 0 let Tlist_Process_File_Always = 1 let Tlist_Display_Prototype = 0 let Tlist_Compact_Format = 1 "----------------------------------------------------------------- " plugin - mark.vim 給各種tags標(biāo)記不同的顏色,便于觀看調(diào)式的插件。 " \m mark or unmark the word under (or before) the cursor " \r manually input a regular expression. 用于搜索. " \n clear this mark (i.e. the mark under the cursor), or clear all highlighted marks . " \* 當(dāng)前MarkWord的下一個(gè) \# 當(dāng)前MarkWord的上一個(gè) " \/ 所有MarkWords的下一個(gè) \? 所有MarkWords的上一個(gè) "----------------------------------------------------------------- "----------------------------------------------------------------- " plugin - NERD_tree.vim 以樹(shù)狀方式瀏覽系統(tǒng)中的文件和目錄 " :ERDtree 打開(kāi)NERD_tree :NERDtreeClose 關(guān)閉NERD_tree " o 打開(kāi)關(guān)閉文件或者目錄 t 在標(biāo)簽頁(yè)中打開(kāi) " T 在后臺(tái)標(biāo)簽頁(yè)中打開(kāi) ! 執(zhí)行此文件 " p 到上層目錄 P 到根目錄 " K 到第一個(gè)節(jié)點(diǎn) J 到最后一個(gè)節(jié)點(diǎn) " u 打開(kāi)上層目錄 m 顯示文件系統(tǒng)菜單(添加、刪除、移動(dòng)操作) " r 遞歸刷新當(dāng)前目錄 R 遞歸刷新當(dāng)前根目錄 "----------------------------------------------------------------- " F3 NERDTree 切換 map <F3> :NERDTreeToggle<CR> imap <F3> <ESC>:NERDTreeToggle<CR> "----------------------------------------------------------------- " plugin - NERD_commenter.vim 注釋代碼用的, " [count],cc 光標(biāo)以下count行逐行添加注釋(7,cc) " [count],cu 光標(biāo)以下count行逐行取消注釋(7,cu) " [count],cm 光標(biāo)以下count行嘗試添加塊注釋(7,cm) " ,cA 在行尾插入 /* */,并且進(jìn)入插入模式。 這個(gè)命令方便寫(xiě)注釋。 " 注:count參數(shù)可選,無(wú)則默認(rèn)為選中行或當(dāng)前行 "----------------------------------------------------------------- let NERDSpaceDelims=1 " 讓注釋符與語(yǔ)句之間留一個(gè)空格 let NERDCompactSexyComs=1 " 多行注釋時(shí)樣子更好看 "----------------------------------------------------------------- " plugin - DoxygenToolkit.vim 由注釋生成文檔,并且能夠快速生成函數(shù)標(biāo)準(zhǔn)注釋 "----------------------------------------------------------------- let g:DoxygenToolkit_authorName="Asins - asinsimple AT gmail DOT com" let g:DoxygenToolkit_briefTag_funcName="yes" map <leader>da :DoxAuthor<CR> map <leader>df :Dox<CR> map <leader>db :DoxBlock<CR> map <leader>dc a /* */<LEFT><LEFT><LEFT> "----------------------------------------------------------------- " plugin – ZenCoding.vim 很酷的插件,HTML代碼生成 " 插件最新版:http://github.com/mattn/zencoding-vim " 常用命令可看:http://nootn.com/blog/Tool/23/ "----------------------------------------------------------------- "----------------------------------------------------------------- " plugin – checksyntax.vim JavaScript常見(jiàn)語(yǔ)法錯(cuò)誤檢查 " 默認(rèn)快捷方式為 F5 "----------------------------------------------------------------- let g:checksyntax_auto = 0 " 不自動(dòng)檢查 "----------------------------------------------------------------- " plugin - NeoComplCache.vim 自動(dòng)補(bǔ)全插件 "----------------------------------------------------------------- let g:AutoComplPop_NotEnableAtStartup = 1 let g:NeoComplCache_EnableAtStartup = 1 let g:NeoComplCache_SmartCase = 1 let g:NeoComplCache_TagsAutoUpdate = 1 let g:NeoComplCache_EnableInfo = 1 let g:NeoComplCache_EnableCamelCaseCompletion = 1 let g:NeoComplCache_MinSyntaxLength = 3 let g:NeoComplCache_EnableSkipCompletion = 1 let g:NeoComplCache_SkipInputTime = '0.5' let g:NeoComplCache_SnippetsDir = $VIMFILES.'/snippets' " <TAB> completion. inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" " snippets expand key imap <silent> <C-e> <Plug>(neocomplcache_snippets_expand) smap <silent> <C-e> <Plug>(neocomplcache_snippets_expand) "----------------------------------------------------------------- " plugin - matchit.vim 對(duì)%命令進(jìn)行擴(kuò)展使得能在嵌套標(biāo)簽和語(yǔ)句之間跳轉(zhuǎn) " % 正向匹配 g% 反向匹配 " [% 定位塊首 ]% 定位塊尾 "----------------------------------------------------------------- "----------------------------------------------------------------- " plugin - vcscommand.vim 對(duì)%命令進(jìn)行擴(kuò)展使得能在嵌套標(biāo)簽和語(yǔ)句之間跳轉(zhuǎn) " SVN/git管理工具 "----------------------------------------------------------------- "----------------------------------------------------------------- " plugin – a.vim "-----------------------------------------------------------------
#關(guān)閉防火墻 /etc/init.d/iptables stop #關(guān)閉Selinux setenforce permissive
yum -y install samba samba-client samba-common samba-winbind samba-winbind-clients ?2、啟動(dòng)、查看Samba服務(wù)器狀態(tài)# service smb start # service smb status
3、設(shè)置Samba服務(wù)器為開(kāi)機(jī)啟動(dòng)# chkconfig smb on # chkconfig --list smb smb???????????? 0:off?? 1:off?? 2:on?? 3:on?? 4:on?? 5:on?? 6:off
4、修改 Samba 服務(wù)器住配置文件 smb.conf4.1、備份源文件# cp -p /etc/samba/smb.conf /etc/samba/smb.conf.orig
4.2、在 [global] 部分修改字符集設(shè)置[global] ?????? unix charset= UTF-8 ?????? dos charset=GBK ? ?????? workgroup = SHAREGROUP
4.3、在文件結(jié)尾加上客戶(hù)自定義共享模塊[share] comment = RHEL6-Windows Share path=/home/share public=yes writeable = yes # 是否可寫(xiě) browseable = yes # 是否可瀏覽 create mode = 0777 # 創(chuàng)建文件時(shí)的默認(rèn)屬性 directory mode = 0777 # 創(chuàng)建目錄時(shí)的默認(rèn)屬性 valid users = root # 指定可訪問(wèn)用戶(hù)
5、添加用戶(hù)root?# smbpasswd -a root New SMB password: Retype new SMB password: Added user demo. # ?
6、檢測(cè)配置參數(shù)# testparm 7、重啟 Samba 服務(wù)器/etc/init.d/smb restart PS:WINDOWS機(jī)器需要注銷(xiāo)重新登錄,才可以注銷(xiāo)原有的用戶(hù)信息,登錄Samba服務(wù)共享
來(lái)自為知筆記(Wiz)
1、安裝rhel6
安裝英文版,添加簡(jiǎn)體中文字體登錄時(shí)切換到中文,選擇不改文件夾名稱(chēng)如下修改,并重啟,可做到英文系統(tǒng)顯示中文。關(guān)閉防火墻和SELinux2、啟用網(wǎng)絡(luò)設(shè)備
修改eth0網(wǎng)卡的配置文件,將ONBOOT=“no”改為”yes”,文件位置:/etc/sysconfig/network-scripts/ifcfg-eth0/etc/init.d/network restart 重新啟動(dòng)網(wǎng)絡(luò)3、安裝VMware-Tools
安裝VMware-Tools4、安裝vim
檢查是否安裝5、安裝ctags
檢查6、安裝cscope
檢查7、更新yum為網(wǎng)易源
下載rpm包的地址http://mirrors.163.com/centos/6/os/i386/Packages/查看rhel是否安裝python
python-2.6.6-64.el6.i686python-iniparse-0.3.1-2.1.el6.noarch
沒(méi)有安裝的話,重新安裝
查看rhel是否安裝yum
yum-3.2.29-73.el6.centos.noarchyum-metadata-parser-1.1.2-16.el6.i686
yum-plugin-fastestmirror-1.1.30-37.el6.noarch
沒(méi)有安裝的話,重新安裝
更換yum源 使用163的源
#cd /etc/yum.repos.d/#wget http://mirrors.163.com/.help/CentOS6-Base-163.repo#vim CentOS6-Base-163.repo把文件里面的$releasever全部替換為版本號(hào),即6 最后保存!清除原有緩存
#yum clean all重建緩存
以提高搜索安裝軟件的速度#yum makecache有可能第一遍不起作用,需要多做幾遍此時(shí),網(wǎng)易yum源已經(jīng)配置好。各位可以享受高質(zhì)量且免費(fèi)的yum服務(wù)了!構(gòu)建多個(gè)yum源
yum源可用/etc/yum.repos.d/rhel-source.repo3、導(dǎo)入KEYrpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6rpm --import http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-64、安裝自動(dòng)源選擇插件--自動(dòng)選擇最快的源yum install yum-fastestmirror -y5、如何確認(rèn)正在使用的是哪個(gè)源?cd /var/cache/yumcat timedhosts.txt如果我在那個(gè)目錄里放了很多源,怎么知道當(dāng)前用的是那個(gè)呢?如果你沒(méi)有改yum.conf,那么看/var/cache/yum/文件夾里的一個(gè)time開(kāi)頭的文件,就知道了如果在使用yum install安裝找不到某些包的時(shí)候,可以使用下面辦法試試wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpmrpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum常用命令
yum -y install 包名(支持*) :自動(dòng)選擇y,全自動(dòng)yum install 包名(支持*) :手動(dòng)選擇y or nyum remove 包名(不支持*)rpm -ivh 包名(支持*):安裝rpm包rpm -e 包名(不支持*):卸載rpm包更新和升級(jí)
yum update 全部更新yum update package1 更新指定程序包package1yum check-update 檢查可更新的程序yum upgrade package1 升級(jí)指定程序包package1yum groupupdate group1 升級(jí)程序組group11 安裝
yum install 全部安裝yum install package1 安裝指定的安裝包package1yum groupinsall group1 安裝程序組group12 更新和升級(jí)
yum update 全部更新yum update package1 更新指定程序包package1yum check-update 檢查可更新的程序yum upgrade package1 升級(jí)指定程序包package1yum groupupdate group1 升級(jí)程序組group13 查找和顯示
yum info package1 顯示安裝包信息package1yum list 顯示所有已經(jīng)安裝和可以安裝的程序包yum list package1 顯示指定程序包安裝情況package1yum groupinfo group1 顯示程序組group1信息yum search string 根據(jù)關(guān)鍵字string查找安裝包4 刪除程序
yum remove | erase package1 刪除程序包package1yum groupremove group1 刪除程序組group1yum deplist package1 查看程序package1依賴(lài)情況5 清除緩存
yum clean packages 清除緩存目錄下的軟件包yum clean headers 清除緩存目錄下的 headersyum clean oldheaders 清除緩存目錄下舊的 headersyum clean, yum clean all (= yum clean packages; yum clean oldheaders) 清除緩存目錄下的軟件包及舊的headers8、安裝tree
9、安裝vimrc
vimrc10、關(guān)閉防火墻和SELinux
11、RHEL7開(kāi)機(jī)自動(dòng)運(yùn)行程序的腳本(fedora20通用)
方法如下:cd /etc/init.dvi youshell.sh?? #將youshell.sh修改為你自己的腳本名編寫(xiě)自己的腳本后保存退出。在編寫(xiě)腳本的時(shí)候,請(qǐng)先加入以下注釋#add for chkconfig#chkconfig: 2345 70 30#description: the description of the shell?? #關(guān)于腳本的簡(jiǎn)短描述#processname: servicename??????????????????? #第一個(gè)進(jìn)程名,后邊設(shè)置自啟動(dòng)的時(shí)候會(huì)用到說(shuō)明:2345是指腳本的運(yùn)行級(jí)別,即在2345這4種模式下都可以運(yùn)行,234都是文本界面,5就是圖形界面X70是指腳本將來(lái)的啟動(dòng)順序號(hào),如果別的程序的啟動(dòng)順序號(hào)比70小(比如44、45),則腳本需要等這些程序都啟動(dòng)以后才啟動(dòng)。30是指系統(tǒng)關(guān)閉時(shí),腳本的停止順序號(hào)。給腳本添加上可執(zhí)行權(quán)限:chmod +x youshell.shchkconfig --level 2345 youshell.sh on-----------Ok ! Success!12、安裝samba
RHEL6.3 Samba服務(wù)器安裝配置1、安裝Samba軟件包3、設(shè)置Samba服務(wù)器為開(kāi)機(jī)啟動(dòng)
4、修改 Samba 服務(wù)器住配置文件 smb.conf4.1、備份源文件
4.2、在 [global] 部分修改字符集設(shè)置
4.3、在文件結(jié)尾加上客戶(hù)自定義共享模塊
5、添加用戶(hù)root?
6、檢測(cè)配置參數(shù)
來(lái)自為知筆記(Wiz)
轉(zhuǎn)載于:https://www.cnblogs.com/naedzq/p/5928279.html
總結(jié)
以上是生活随笔為你收集整理的win7-64bit下基于VMware12.5安装rhel-server-6.3-i386的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: java 21 - 6 字符缓冲流的特殊
- 下一篇: Spring MVC的web.xml配置