Chinaunix首页 | 论坛 | 博客
  • 博客访问: 520530
  • 博文数量: 181
  • 博客积分: 3915
  • 博客等级: 中校
  • 技术积分: 1920
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-26 16:44
文章分类

全部博文(181)

文章存档

2015年(1)

2011年(6)

2007年(28)

2006年(28)

2005年(118)

分类:

2005-08-06 10:59:44

20050806
昨天实在没有什么进展,晚上决定重新安装操作系统。这次安装,选择了 SunScreen 和 全部软件包,默认安装

、solaris9 sparc系统安装

二、配置BASH 环境:

三、sun solaris9 网络配置

四、停止不用的网络服务!



一、这次安装,选择了 SunScreen 和 全部软件包,默认安装。


分区方式是:
# df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t0d0s0 1.6G 66M 1.5G 5% /
/dev/dsk/c0t0d0s4 2.9G 920M 2.0G 32% /usr
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
/dev/dsk/c0t0d0s5 1.3G 24M 1.2G 2% /var
swap 551M 40K 551M 1% /var/run
swap 552M 920K 551M 1% /tmp
/dev/dsk/c0t0d0s3 1.9G 14K 1.8G 1% /home

我发现,home分区不应该分那么大。对于mail server来说,用不到那么多吧;
===============================

二、配置BASH 环境:
bash-2.05# vi /etc/profile
#ident "@(#)profile 1.19 01/03/13 SMI" /* SVr4.0 1.3 */

# The profile that all logins get before using their own .profile.

#提示符:
PS1="[h:w]\$ "
#命令别名:
alias ll='ls -la'
alias la='ls -Fa'
alias ls='ls -Fa'


PATH=${PATH}:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/apache/bin


trap "" 2 3
export LOGNAME PATH
-------------------------------------

===============================
三、sun solaris9 网络配置
[mailsrv:/]# vi /etc/nsswitch.conf

# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd: files
group: files
hosts: files dns

--------------------------------------
[mailsrv:/]# vi /etc/resolv.conf
"/etc/resolv.conf" [New file]

nameserver 211.93.80.129
--------------------------------------
[mailsrv:/]# ping

is alive
[mailsrv:/]# nslookup

Server: dns.lnsy.cnuninet.net
Address: 211.93.80.129

Non-authoritative answer:
Name:

Address: 202.108.9.16
Aliases:


[mailsrv:/]#

===============================
四、停止不用的网络服务!
[mailsrv:~]$ prstat
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
767 davidji 4584K 4336K cpu0 59 0 0:00:00 0.1% prstat/1
706 root 2904K 2336K sleep 59 0 0:00:00 0.1% nscd/18
763 davidji 2512K 1880K sleep 59 0 0:00:00 0.0% bash/1
332 root 19M 12M sleep 59 0 0:00:03 0.0% Xsun/1
761 root 4528K 2800K sleep 59 0 0:00:00 0.0% sshd/1
398 root 328K 256K sleep 59 0 0:00:00 0.0% sh/1
363 root 2600K 1032K sleep 59 -10 0:00:00 0.0% speckeysd/1
359 root 2376K 1392K sleep 59 0 0:00:00 0.0% fbconsole/1
415 root 10M 8192K sleep 49 0 0:00:01 0.0% dtfile/1
325 root 3544K 2352K sleep 59 0 0:00:00 0.0% snmpXdmid/2
322 root 2968K 1832K sleep 59 0 0:00:00 0.0% dmispd/2
318 root 5000K 2120K sleep 59 0 0:00:00 0.0% dtlogin/1
350 root 1920K 1312K sleep 59 0 0:00:00 0.0% Xsession/1
316 root 2328K 1856K sleep 59 0 0:00:00 0.0% mibiisa/7
312 root 2144K 1408K sleep 59 0 0:00:00 0.0% snmpdx/1
695 root 2528K 1920K sleep 59 0 0:00:00 0.0% bash/1
333 root 6840K 3208K sleep 59 0 0:00:00 0.0% dtlogin/1
334 root 2376K 1288K sleep 59 0 0:00:00 0.0% fbconsole/1
281 root 1728K 744K sleep 59 0 0:00:00 0.0% smcboot/1
279 root 1728K 1120K sleep 59 0 0:00:00 0.0% smcboot/1
269 root 1040K 688K sleep 59 0 0:00:00 0.0% utmpd/1
283 root 2632K 2048K sleep 59 0 0:00:00 0.0% vold/2
206 root 2184K 1472K sleep 59 0 0:00:00 0.0% lockd/2
680 root 4528K 2800K sleep 59 0 0:00:00 0.0% sshd/1
226 root 3400K 1816K sleep 59 0 0:00:00 0.0% syslogd/12
160 root 2184K 1304K sleep 59 0 0:00:00 0.0% rpcbind/1
209 daemon 2464K 1776K sleep 59 0 0:00:00 0.0% statd/1
280 root 1728K 744K sleep 59 0 0:00:00 0.0% smcboot/1
191 root 2456K 1736K sleep 59 0 0:00:00 0.0% inetd/1
239 root 2304K 1400K sleep 59 0 0:00:00 0.0% cron/1
135 root 4760K 2512K sleep 59 0 0:00:00 0.0% skipd/1
258 root 1408K 1088K sleep 59 0 0:00:00 0.0% powerd/3
70 root 2752K 1944K sleep 59 0 0:00:00 0.0% picld/4
58 root 2296K 1440K sleep 59 0 0:00:00 0.0% syseventd/13
215 root 4048K 2560K sleep 59 0 0:00:00 0.0% automountd/3
Total: 63 processes, 124 lwps, load averages: 0.01, 0.02, 0.02

[mailsrv:/]# cd etc/rc3.d
[mailsrv:/etc/rc3.d]# ls
./ README S14kdc* S16boot.server* S50apache* S77dmi* S89sshd*
../ S13kdc.master* S15nfs.server* S34dhcp* S76snmpdx* S80mipagent* S90samba*

[mailsrv:/etc/rc3.d]# mv S13kdc.master xS13kdc.master
[mailsrv:/etc/rc3.d]# mv S14kdc xS14kdc
[mailsrv:/etc/rc3.d]# mv S15nfs.server K15nfs.server
[mailsrv:/etc/rc3.d]# mv S16boot.server K16boot.server
[mailsrv:/etc/rc3.d]# mv S34dhcp K34dhcp
[mailsrv:/etc/rc3.d]# mv S50apache K50apache
[mailsrv:/etc/rc3.d]# mv S76snmpdx K76snmpdx
[mailsrv:/etc/rc3.d]# mv S77dmi K77dmi
[mailsrv:/etc/rc3.d]# mv S80mipagent K80mipagent
[mailsrv:/etc/rc3.d]# mv S90samba K90samba
[mailsrv:/etc/rc3.d]# mv xS13kdc.master K13kdc.master
[mailsrv:/etc/rc3.d]# mv xS14kdc K14kdc

[mailsrv:/]# cd /etc/rc2.d
[mailsrv:/etc/rc2.d]# ls
./ K28kdc* S40llc2* S72autoinstall* S75savecore* S90wbem*
../ K28kdc.master* S42ncakmod* S72directory* S76nscd* S92volmgt*
K03samba* K28nfs.server* S47pppd* S72inetsvc* S79proxy* S93cacheos.finish*
K03sshd* README S62skipkey@ S72slpd* S80lp* S94ncalogd*
K06mipagent* S01MOUNTFSYS* S63sunscreen* S73cachefs.daemon* S80spc* S95svm.sync*
K07dmi* S05RMTMPFILES* S69inet* S73nfs.client* S85power* S99audit*
K07snmpdx* S10lu* S70uucp* S74autofs* S88sendmail* S99dtlogin*
K16apache* S20sysetup* S71ldap.client* S74syslog* S88utmpd*
K21dhcp* S21perf* S71rpc* S74xntpd* S89PRESERVE*
K27boot.server* S30sysid.net* S71sysid.sys* S75cron* S89bdconfig@
[mailsrv:/etc/rc2.d]# mv S10lu K10lu
[mailsrv:/etc/rc2.d]# mv S20sysetup K20sysetup
[mailsrv:/etc/rc2.d]# mv S21perf K21perf
[mailsrv:/etc/rc2.d]# mv S30sysid.net K30sysid.net
[mailsrv:/etc/rc2.d]# mv S40llc2 K40llc2
[mailsrv:/etc/rc2.d]# mv S42ncakmod K42ncakmod
[mailsrv:/etc/rc2.d]# mv S47pppd K47pppd
[mailsrv:/etc/rc2.d]# mv S69inet K69inet
[mailsrv:/etc/rc2.d]# mv S70uucp K70uucp
[mailsrv:/etc/rc2.d]# mv S71ldap.client K71ldap.client
[mailsrv:/etc/rc2.d]# mv S71rpc K71rpc
[mailsrv:/etc/rc2.d]# mv S71sysid.sys K71sysid.sys
[mailsrv:/etc/rc2.d]# mv S72autoinstall K72autoinstall
[mailsrv:/etc/rc2.d]# mv S72directory K72directory
[mailsrv:/etc/rc2.d]# mv S72inetsvc K72inetsvc
[mailsrv:/etc/rc2.d]# mv S72slpd K72slpd
[mailsrv:/etc/rc2.d]# mv S73cachefs.daemon K73cachefs.daemon
[mailsrv:/etc/rc2.d]# mv S73nfs.client K73nfs.client
[mailsrv:/etc/rc2.d]# mv S74autofs K74autofs
[mailsrv:/etc/rc2.d]# mv S74xntpd K74xntpd
[mailsrv:/etc/rc2.d]# mv S76nscd K76nscd
[mailsrv:/etc/rc2.d]# mv S79proxy K79proxy
[mailsrv:/etc/rc2.d]# mv S80lp K80lp
[mailsrv:/etc/rc2.d]# mv S80spc K80spc
[mailsrv:/etc/rc2.d]# mv S85power K85power
[mailsrv:/etc/rc2.d]# mv S90wbem K90wbem
[mailsrv:/etc/rc2.d]# mv S92volmgt K92volmgt
[mailsrv:/etc/rc2.d]# mv S93cacheos.finish K93cacheos.finish
[mailsrv:/etc/rc2.d]# mv S94ncalogd K94ncalogd
[mailsrv:/etc/rc2.d]# mv S95svm.sync K95svm.sync
[mailsrv:/etc/rc2.d]# mv S99dtlogin K95dtlogin
[mailsrv:/etc/rc2.d]# mv S88
S88sendmail S88utmpd
[mailsrv:/etc/rc2.d]# mv S88sendmail K88sendmail
[mailsrv:/etc/rc2.d]# mv S88utmpd K88utmpd
[mailsrv:/etc/rc2.d]#
[mailsrv:/etc/rc2.d]# ls S*
S01MOUNTFSYS* S62skipkey@ S74syslog* S75savecore* S89bdconfig@
S05RMTMPFILES* S63sunscreen* S75cron* S89PRESERVE* S99audit*

关闭Xwindows需要停止以下服务(为了便于调试,现在没有关闭Xwindows端口)
# mv S71rpc x S71rpc
# mv S99dtlogin xS99dtlogin
_________________
※※※※※※※※※※※※※※※※※※※※
携手同行

阅读(635) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~