安裝CentOS 5 4伺服器記略

2021-05-22 00:32:46 字數 1906 閱讀 8138

因工作需要而為公司安裝了一台伺服器,作業系統版本選擇的是centos-5.4。下面就這個伺服器的安裝和配置作乙個記錄,以備以後查閱!

1、安裝作業系統

圖形化安裝,相對簡單,故略。

2、安裝最快的yum映象

yum install -y yum-fastestmirror

3.  安裝telnet

yum install -y telnet-server

4. 啟動telnet

檢查telnet的run level

chkconfig --list | grep telnet

如果服務關閉,那麼啟動之: chkconfig telnet on

重啟xinetd

service xinetd restart

5. 安裝subversion

yum install -y subversion

開機啟動svn

將命令svnserver -d -r /svnroot

加入/etc/rc.d/rc.local

6. 安裝nfs

yum install -y nfs-utils nfs-utils-lib nfs-utils-lib-devel

配置共享

vim /etc/exports

其中加入 /share *(rw,sync)

如果沒有防火牆,到這裡nfs就算是配置完成了。如果有防火牆,那麼還需要加上以下幾步:

a) vim /etc/service

在其中加入

mountd 1011/tcp

mountd 1011/udp

rquotad1012/tcp

rquotad 1012/udp

b) vim /etc/sysconfig/iptables

在其中加入

#portmap

-a rh-firewall-1-input -p udp -m udp --dport 111 -j accept

-a rh-firewall-1-input -p tcp -m tcp --dport 111 -j accept

#nfsd

-a rh-firewall-1-input -p udp -m udp --dport 2049 -j accept

-a rh-firewall-1-input -p tcp -m tcp --dport 2049 -j accept

#mountd

-a rh-firewall-1-input -p udp -m udp --dport 1011 -j accept

-a rh-firewall-1-input -p tcp -m tcp --dport 1011 -j accept

#rquotad

-a rh-firewall-1-input -p udp -m udp --dport 1012 -j accept

-a rh-firewall-1-input -p tcp -m tcp --dport 1012 -j accept

#rpc.statd

-a rh-firewall-1-input -p udp -m udp --dport 32768 -j accept

-a rh-firewall-1-input -p tcp -m tcp --dport 32768 -j accept

7. 安裝編譯環境

yum install -y gcc gcc-c++ automake autoconf

8. 安裝firefox

yum install -y firefox

9, 掛載ntfs

yum install -y fuse

然後命令安裝之

裝完之後,可以用命令 mount -t ntfs-3g /dev/sda1 /mnt 掛載

CentOS 5 4編譯安裝Wine

www.winehq.org 解壓執行 root localhost tar jxvf wine 1.2.tar.bz2 進入wine目錄 root localhost cd wine 1.2 執行configure root localhost wine 1.2 configure 自動檢查相關依...

CentOS 5 4編譯安裝Wine手記

進入wine目錄 root localhost cd wine 1.2 執行configure root localhost wine 1.2 configure 自動檢查相關依賴關係 第乙個提示錯誤是 沒有c編譯器 安裝c編譯器gcc root localhost wine 1.2 yum ins...

CentOS 5 4 安裝和解除安裝桌面

顯示系統已經安裝的元件,和可以安裝的元件 yum grouplist 如果系統安裝之初採用最小化安裝,沒有安裝xwindow,那麼先安裝 yum groupinstall x window system 安裝gnome桌面環境 yum groupinstall gnome desktop envir...