偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

安裝Solaris后:9個主要設(shè)置以及NFS和NIS的配置

系統(tǒng) 其他OS
安裝Solaris之后(一):9個主要的設(shè)置:1. 下載并安裝最新的補(bǔ)丁......

安裝Solaris之后(一):9個主要的設(shè)置

1. 下載并安裝最新的補(bǔ)丁

e.g.

ftp://sunsolve.sun.com/pub/patches/

8_Recommended.zip

J2SE_Solaris_8_Recommended.zip

安裝補(bǔ)丁前,kill dtlogin 和inetd進(jìn)程,以確保沒有人登錄進(jìn)系統(tǒng)。安裝后重啟系統(tǒng)。

2. 設(shè)置路由: vi /etc/defaultrouter, add the default gateway to the file.

e.g.

# cat /etc/defaultrouter

10.6.2.1

3. 設(shè)置DNS:vi /etc/resolv.conf

e.g.

# cat /etc/resolv.conf

nameserver 10.6.2.15

nameserver 10.0.13.11

search sz.mydomain.com abcd.mydomain.com mydomain.com abcd.com

4. vi /etc/nsswitch.conf 在hosts:file 后,加上dns

e.g.

# cat /etc/nsswitch.conf

hosts: files dns

......

5. 把管理域的域名加到 /etc/defaultdomain中。

e.g.

# cat /etc/defaultdomain

abcd.sz

注意:這個域名與主機(jī)的DNS域名是兩個概念。這是基于管理的需要而設(shè),與實(shí)際DNS可不相同。

#p#

6. vi /etc/hosts

# cat /etc/hosts

#

# Internet host table

#

127.0.0.1 localhost

10.6.3.191 admin

#

10.6.3.192 db1

10.6.3.193 app1

10.0.13.5 loghost

7. 為man建立index,這樣就可用man -k搜索。

catman -w

8. 建立一個管理用戶作為遠(yuǎn)程登錄,用su來管理

# user add -s /usr/bin/bash -d /export/home/admin -m admin

# passwd admin

9. 下載并安裝Sudo

請參考:

http://www.chinaunix.net/bbsjh/3/10466.html

實(shí)際工作中,這是很有用的:不必告訴有特殊需要的普通用戶關(guān)的Root的帳號,但給他權(quán)限。Sudo的操作是有記錄可查的,可將log放到遠(yuǎn)程的log服務(wù)器中。

安裝Solaris之后(二):NFS安裝和配置

NFS服務(wù)器(被共享)

1.啟動服務(wù)

/etc/rc3.d/S15NFS.server start

2:共享目錄

vi /etc/dfs/dfstab

e.g.

# hostname admin

# cat /etc/dfs/dfstab

share -F NFS -o ro=db1:app1:app2:app3:app4,anon=0 /usr/js

share -F NFS -o rw=db1:app1:app2:app3:app4,nosuid /home

3. 診斷

查看服務(wù)器的已共享資源 dfshares

查看共享資源被利用的狀況 dfmounts

NFS客戶端(使用共享)

1.啟動服務(wù)

/usr/lib/NFS/statd

2. 運(yùn)行mount

e.g.

app4# mount admin:/home /home

3. 開機(jī)自動mount

vi /etc/vfstab, 加入新的一行啟動mount配置:

e.g

app4:~% cat /etc/vfstab

#device device mount FS fsck mount mount

admin:/home - /home NFS - yes -

.....

這樣,開機(jī)后,系統(tǒng)自動將admin:/home目錄 mount 到app4的/home目錄.

#p#

關(guān)于Linux的NFS與Solaris不同點(diǎn):

1. Solaris的目錄共享設(shè)置文件是/etc/dfs/dfstab, 而RadHat Linux共享目錄設(shè)置文件是/etc/exports

2. Solaris開機(jī)自動mount設(shè)置文件是/etc/vfstab, 而RadHat Linux開機(jī)自動mount設(shè)置文件是/etc/fstab

安裝Solaris之后(三):NIS安裝和配置

參見:http://www.chinaunix.net/bbsjh/3/13779.html

Server

1. /etc/nsswitch.conf

e.g.

# cat /etc/nsswitch.conf

passwd: files nis

group: files nis

netgroup: files nis

...

2. vi /etc/defaultdomain

e.g.

# cat /etc/defaultdomain

agile.sz

注意:這個域名與主機(jī)的DNS域名是兩個概念。這是基于管理的需要而設(shè),與實(shí)際DNS可不相同。

3. /var/yp/Makefile

4. ypinit -m

5. 啟動 /usr/lib/netsvc/yp/ypstart

6. 診斷

ypcat hosts

ypcat passwd

yp which -m

Client

1. /etc/nsswitch.conf

e.g.

# cat /etc/nsswitch.conf

passwd: files nis

group: files nis

netgroup: files nis

...

2./etc/hosts

e.g.

#app4:~% cat /etc/hosts

10.6.3.197 app4.sz

10.6.3.191 admin

3. /etc/defaultdomain

e.g.

#app4:~% cat /etc/defaultdomain

agile.sz

注意:要與Server的設(shè)置相同。

4. ypinit -c

5./usr/lib/netSvc/yp.ypstart

根據(jù)所示,輸入NIS Server的hostame:admin

6. 診斷

ypcat hosts

ypcat passwd

7.增加NIS用戶:

login to nis server:admin

run

/var/yp/etc/adduser to add NIS users,

run /var/yp/etc/rsetpass to change Nis users password.

【編輯推薦】

  1. linux下NIS服務(wù)的配置
  2. 在RHEL 5中配置NIS服務(wù)器端及客戶端
  3. Linux NIS Server YPSERV遠(yuǎn)程拒絕服務(wù)攻擊漏洞
責(zé)任編輯:趙寧寧 來源: ZDNet
相關(guān)推薦

2009-09-17 13:27:30

SolarisNFSNIS

2009-09-17 13:25:16

Solaris服務(wù)器搭建NIS

2010-08-04 14:04:03

solaris nfs

2010-08-05 10:18:19

Solaris nfs

2010-07-28 15:21:00

NFSSolaris

2009-09-17 13:04:00

2009-09-17 13:16:57

NISNFS管理Unix網(wǎng)絡(luò)

2010-08-03 17:35:34

Fedora 9 nf

2011-04-07 16:46:09

Solaris

2009-12-25 10:29:44

Fedora 9 nf

2010-07-27 13:07:23

NFS Server

2010-08-03 11:41:24

Ubuntu NFS

2010-08-06 13:28:01

NFS Server

2010-07-27 10:38:02

NFS ServerNFS Client

2009-09-17 13:08:07

NIS配置auto_dire

2010-08-04 09:52:48

RHEL5 nfs

2010-07-27 11:09:43

設(shè)置NFS

2009-09-11 08:49:09

linuxNIS服務(wù)linux配置

2010-08-04 12:01:23

NFS安裝配置

2009-09-17 17:37:05

Nis服務(wù)器
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號