歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> 安裝Linux無盤工作站(2)

安裝Linux無盤工作站(2)

日期:2017/2/27 9:47:20   编辑:更多Linux
  安裝Linux無盤工作站 服務器設置

  服務器端需要運行nfsd、dhcpd、mars_new等幾個服務進程,這些軟件在ReHat Linux 發行套件裡都有,如果在安裝 Linux 的時候選擇全部安裝,這些軟件都會隨著安裝操作 系統而裝好了,下面對這些軟件進行設置,注意,下面的操作要以 root 身份進行。

1、 NFS 守護進程nfsd

首先要建立幾個供無盤工作站使用的目錄,並通過nfsd 導出,命令如下:

mkdir /tFTPboot

然後編輯文件 /etc/hosts ,加入下面的內容

192.168.0.80 server   server.domain 192.168.0.1  c1    c1.domain 192.168.0.2  c2    c2.domain 192.168.0.3  c3    c3.domain 192.168.0.4  c4    c4.domain

第一台工作站的工作目錄設置方法如下:

mkdir /tftpboot/192.168.0.1 cd /tftpboot/192.168.0.1 c000p -a /bin . cp -a /dev . mknod dev/nd0 b 43 0 chmod 600 dev/nd0 cp -a /etc . cp -a /home . cp -a /lib . rm -rf lib/modules cp -a /root . cp -a /sbin . cp -a /var . mkdir proc mkdir usr mkdir tmp chmod 777 tmp toUCh fastboot chattr +i fastboot cd etc

編輯文件 sysconfig/network-scripts/ifcfg-eth0

保留其中的

DEVICE=eth0 ONBOOT=yes

其余的行全部刪除,然後增加一行

BOOTPROTO=dhcp

編輯文件 rc.d/rc.sysinit ,在文件最後加上兩行

mount -t nfs server:/usr /usr /usr/X11R6/bin/xfs

編輯文件 fstab

保留其中的

none /proc proc defaults  0 0

其余的行全部刪除,然後增加一行

server:/tftpboot/192.168.0.1 / nfs defaults  1 1

其它工作站的工作目錄設置方法就簡單多了

cd /tftpboot cp -a 192.168.0.1 192.168.0.2 cp -a 192.168.0.1 192.168.0.3 cp -a 192.168.0.1 192.168.0.4

編輯文件 /etc/eXPorts ,加入以下內容

/usr (ro,no_root_squash) /tftpboot/192.168.0.1  (rw,no_root_squash) /tftpboot/192.168.0.2  (rw,no_root_squash) /tftpboot/192.168.0.3  (rw,no_root_squash) /tftpboot/192.168.0.4  (rw,no_root_squash)




Copyright © Linux教程網 All Rights Reserved