2009年2月25日 星期三

安裝Solaris作業系統 工作表

主題: 第三章:安裝Solaris作業系統
作者: Bennett Kuo E-mail: chunpo@chu.edu.tw
出處: 研究手稿 日期: 2003年5月8日
文 件 內 容
Software Groupings
基本
包含系統運行所需的最基本的軟體和設備驅動。不包括圖形介面和手冊頁。
最終用戶
除了基本軟體外,還包括圖形介面。
開發者
包括編譯工具、圖形介面、手冊頁。
完整分發和 OEM 支持
包含全部內容和一些OEM地硬體設備驅動。

Installation Information Worksheet
Acquire the following necessary information prior to your installation:
Host name:____________________________________________________
IP address:_____________________________________________________
Name service (NIS, NIS+, DNS or None):_________________________
Subnet (yes or no):______________________________________________
Geographic location:____________________________________________
Time zone information:__________________________________________
Root password:_________________________________________________

Installation Process
1. Insert the CD-ROM into the CD-ROM drive.
2. Boot the release media.
ok boot cdrom
3. Select the appropriate language and locale for your site and click on Continue.
4. Enter the assigned host name for the system
5. Type the IP address
6 . Select the type of the name service
7. Select Time Zone
8. Select Initial to perform an initial install and not preserve current settings
9 . Select the software group
10 . Set the sizes of each disk partition
11 . Type a root (superuser) password
轉至:Solaris資訊站

2009年2月20日 星期五

Solaris 網路管理

Solaris網路管理

第一章 网络地址和掩码
1. /etc/hostname.interface
Interface是网卡的型号,有le、hme等。Le是十兆网卡,hme为百兆网卡等等。后面跟一个数字,第一个十兆网卡为le0,第二个为le1;第一个百兆网卡为hme0,第二个为hme1等等。
  文件的内容是这块网卡的名字,如Sunrise、Sunny。
#more /etc/hostname.le0
Sunrise
# more /etc/hostname.hme0
Sunny
2. /etc/hosts文件
系统名与IP地址的映射
与/etc/hostname.interface 协同工作,配置本机网卡地址
# more /etc/hosts
127.0.0.1 localhost loghost
172.16.255.1 Sunrise
172.18.255.1 Sunny
系统名不是机器名,机器名是唯一的,要更改机器名,用命令:hostname。
有了/etc/hostname.interface和/etc/hosts两个文件,系统就知道如何配置网卡了,如第一个百兆网卡的名字是Sunny,其对应的地址是172.18.255.1。
3. /etc/netmasks文件
将网络的IP地址与网络地址联系一起,划分子网
如果是标准网段,则不需要配置。标准网段:
A类网:0-127(127用于本地地址) 掩码:255..0.0.0
B类网:128-191 掩码:255.255.0.0
C类网:192-223 掩码:255.255.255.0
D类网:224-254(用于多址广播)
要配一个B类地址:172.16.255.1掩码为:255.255.255.0,则在/etc/netmasks文件中写:172.16.255.0 255.255.255.0
4. ifconfig命令
检测网络端口状态
#ifconfig -a
配置网络端口地址
#ifconfig le0 172.16.255.1 netmask 255.255.255.0
配置网络端口状态
#ifconfig le0 up/down
配置网络端口是否可用
#ifconfig le0 plumb/unplumb
5. ping命令
检测网络状态 、测试网络速度
第二章 网络服务
1. /etc/services文件
网络服务协议的端口号
网络协议的服务类型
#cat /etc/inet/services
ftp-data 20/tcp
ftp 21/tcp
telnet 23/tcp
smtp 25/tcp mail
sunrpc 111/udp rpcbind
sunrpc 111/tcp rpcbind
每个TCP/IP应用层服务如(FTP、Telnet)都在传输层有一个端口号。/etc/services文件包含了每个能识别出的服务协议所对应的静态端口号。应用应使用唯一分配的端口号向传输提供者和远程对等实体标识自己。
文件中每一项都由服务名及其相关的端口号、传输协议提供者组成。有些服务可以在TCP和UDP上都可以运行。这时,此服务被列出两次
2. /etc/inetd.conf文件
# cat /etc/inet/inetd.conf
ftp stream tcp nowait root /usr/sbin/in.ftpd in.ftpd
telnet stream tcp nowait root /usr/sbin/in.telnetd in.telnetd
login stream tcp nowait root /usr/sbin/in.rlogind in.rlogind
talk dgram udp wait root /usr/sbin/in.talkd in.talkd
UNIX 并不是让每种服务的守护进程都在自己的端口上等待请求,而是将代表各个服务守护进程等待请求的任务交给一个叫inetd的服务进程。这样就可以大大减少对 系统资源的占用。只有当超级服务进程发现一个服务请求时,它才调用该服务的守护进程。/etc/inetd.conf配置文件允许inetd在启动时决定 自己将代表哪些服务等待服务请求。如果一种服务的守护进程没有包含在inetd.conf文件中,那么当inetd接收到该服务的请求时,会把该请求丢 弃。
文件的字段:
service_name 这是文件/etc/services中列出的服务的标志符。
socket_type 用来标志使用的数据传输服务的类型。
proto 标识传输协议的名字。是UPD和TCP
flags 可以被设为"等待"和"非等待"。如果被设为"等待" 状态,inetd在恢复监听端口上的其他请求时,必须等待服 务协议释放将其连接到网络的连接。"非等待"可以使 inetd立即监听其他的请求。大多数TCP协议的采用"非等 待"方式,而UDP采用"等待"方式。
user 表示调用服务的用户名。
server_pathname 表示inetd在响应相关服务请求时必须调用的 服务程序的完整路径名。
Args 该域包括服务的程序所使用的命令行参数。即以程序名开 始,然后跟随用户设置的参数。

第三章 路由和网关
1. /etc/defaulrouter文件
配置缺省网关 。防止不必要的路由进程。 适用于只有一个路由器通向其它网段。
单一路由占用较小的路由表资源。该文件保存了缺省路由得信息。系统安装时并没有该文件,是用户自己创建的。文件内容是缺省路由的地址。
#cat /etc/defaultrouter
172.16.255.254
优点:
占用资源少,只有一条路由条目。
2. /etc/gateways文件
路由表文件
net gateway metric
dest. net 目标网段
router 下一跳路由器的地址
count 跳数
3. route命令
route add|delete [host|net] destination [gateway ]
Add a route
#route add net 128.50.3.0 192.168.1.1 1
Delete a route
#route delete net 128.50.2.0 192.168.12.2
4. 查看路由表
# netstat -r
Routing Table:
Destination Gateway Flags Ref Use Interface
----------- ---------- ----- --- --- ---------
localhost localhost UH 0 2272 lo0
202.96.0.0 192.168.12.1 U 3 562 le0
10.103.0.0 192.168.12.2 U 3 562 le0
#
Destination 目标网络或主机
Gateway 转发数据包的主机
Flags 这条路由的状态,这个参数有这样几个选项:
U 端口处于激活状态(up)
H 目标是个主机,而不是网段
Ref 同一个网络接口地址拥有的路由条目数量
Use 通过这条路由的包数量,对于localhost来说,这个数字代表 所有接收的包数量
Interface 路由的网络接口


第四章 DNS客户端的设置
1. /etc/resolv.conf文件
记录DNS服务器的地址和域名
关键字:
① domainname ② nameserver
# more /etc/resolv.conf
nameserver 172.16.255.3
domainname sunrise.com.cn
2. /etc/nsswitch.conf文件
记录主机名的搜索顺序等信息
# more /etc/nsswitch.conf
#
# /etc/nsswitch.dns:
#
# An example file that could be copied over to /etc/nsswitch.conf

轉至http://blog.chinaunix.net/u1/36844/showart.php?id=283568 如有侵權請來信告知 謝謝

2009年2月17日 星期二

Solaris 10 網路設定

Solaris 10 網路設定,以 VMware 開啟 NAT 模式的環境為例:

IP: /etc/inet/ipnodes
127.0.0.1      localhost
192.168.198.3 solaris


Gateway: /etc/defaultrouter
192.168.198.2


Netmask: /etc/netmasks
192.168.198.0 255.255.255.0


DNS: /etc/resolv.conf
nameserver 168.95.1.1
nameserver 168.95.192.1


Host: /etc/hosts (這個檔案與 /etc/inet/ipnodes 相同,不知道其作用是否相同?)


參考網站:http://takor.takol.tw/posts/view/133

2009年2月10日 星期二

Windows 2000 Server上Lotus Domino Server如何移轉到Solaris平台[正在測試中的步驟過程]

1、目錄說明

在solaris下安裝後目錄如下:
/domino/lotus/notes
/domino/lotus/notesdata
运行文件就在前一个下的bin下,后一个文件就类似windows系统中domino/data目录。

2、数据迁移以及操作

为保障solaris下的邮件系统在我操作失误后还能正常运行特将lotus目录作一次备份(如果你有足够的自信可以不用这么作),然后将notesdata目录改名为notesdata-back,操作指令我就不讲了。
将windows下的domino/data目录压缩为data.zip文件,上传data.zip到solaris系统的/domino下,并解之,然后
mv data notesdata
chown -R notes:notes notesdata(将notesdata目录授权于notes用户)

3、配置文件

将notesdata-back/下的notes.ini文件拷贝到notesdata下。

4、执行服务

执行/domino/notes/bin/server
如果服务正常就一起ok,如果出现file readonly之类的就说明没有完全授权,那就在到notesdata目录下查看还有那些文件或目录不属于notes notes用户,并将其授权于notes。

5、检测

检测的办法很简单,你可以使用outlook,当然我不使用,我采用
telnet mailserip 143
a01 login user pass
a01 OK LOGIN completed
就说明imap正常了

telnet mailserip 110
user username
pass passwd
+OK username has 29 messages
表明pop3服务正常了

telnet mailserip 25
smtp检测命令很费时,你就使用outlook吧。

以上是搜尋到讀相關步驟;等測試完畢再進行補充實作結果。

From http://www.itpub.net/thread-856193-1-1.html