免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1045 | 回复: 0
打印 上一主题 下一主题

Solaris9 x86 新手最需要的知识2 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-18 14:36 |只看该作者 |倒序浏览

网络信息配置和修改
路由表察看
Netstat –rn     (flag:U=up,H=host,G=gateway)
临时路由添加
Route add 10.0.0.0 –netmask 255.255.0.0 192.168.1.1
Route add 10.0.0.0/24 192.168.1.1
网卡地址修改
(不会保存)
Ifconfig 网卡名字 down
Ifconfig 网卡名字 192.168.1.1 netmask 255.255.255.0 up
DNS服务器设置
/etc/Resolv.conf
主机-ip对应关系设置
/etc/Hosts; 192.168.1.1 tocnc   ( Chmod 611 ./inet/hosts; vi /etc/hosts )
网络号及网络掩码
/etc/netmasks
缺省路由配置
多路由,passive指定
网关是否被动更新
/etc/defaultrouter 如果没有此文件就创建一个
vi /etc/gateways
   net 10.0.0.0/24 gateway 192.168.1.2 metric 1 passive|active
in.routed
网卡IP
/etc/Hostname.网卡名字          tocnc   ( 和hosts中的对应 )
名字解析的顺序
/etc/Nsswitch.conf
配置由inetd监视的进程
/etc/inetd.conf
自动共享
vi /etc/dfs/dfstab
   share –F nfs –o ro –d “test share” /export/home
手动共享资源
(/etc/dfs/dfstab)
(必须要有内容!)
/etc/init.d/nfs.server start  或者 /etc/rc3.d/S15nfs.server start
share –F nfs –o ro –d “first share” /home
/usr/lib/nfs/mountd
/usr/lib/nfs/nfsd –a 16
察看共享资源
Share  或者 dfshares;    dfmounts;  unshare –F nfs /home  
挂接共享资源
Mkdir /mnt/home.35
Mount –F nfs 192.168.253.35:/home /home.35
W2k和solaris互相访问
配置samba

磁盘管理:配额、RAID、CLUSTER
磁盘检查
fsck –F ufs /dev/dsk/c0t0d0s0;    fsck –y /dev/dsk/c0d0s7;  fsck -y
限制用户空间配额
(假设/export/home)
(假设用户为huangyu)
(配额为1024K-2048K)
(时间限制为1分钟)
(1分钟内还可继续)
(使用,但不能超过)
(2048K的限制)
inode是节点,可理解为文件和目录数量
vi /etc/vfstab   把要开启配额的文件系统的mount option下“-”改为 rq
cd /export/home; Touch quotas; Chmod 600 quotas
edquota huangyu
fs /data blocks (soft = 1024, hard = 2048) inodes (soft = 0, hard = 0)
quotacheck /export/home
quotaon –a
repquota –a
edquota –t huangyu
fs /export/home blocks time limit = 1.00 min, files time limit = 0(default)
quotaoff /export/home
扩容,比如/目录满
mount个新分区在/usr/local 取代以前的目录
1.  mount /dev/dsk/xxx /mnt/tmp
2. cd /usr/local; tar cf - . | (cd /mnt/tmp; tar xvf -)
3. umount /mnt/tmp
4.  cd /usr;  rm -rf local
5. mount /dev/dsk/xxx /usr/local
6. vi vfstab                        加入 该分区到 /usr/local
能够虚拟光盘,把硬盘上的影像文件当作光盘用
lofiadm
lofiadm -a /opt/file1.iso  
dev/lofi/1  
mount -F hsfs /dev/lofi/1 /mnt  
卷管理器
/etc/init.d/volmgt stop,/etc/init.d/volmgt start
RAID
请看maot.howu.net
SUN CLUSTER

init的各个级别
0关机1初始化6重启S/s重启到单用户模式3缺省模式,多用户,有NFS
PV,LV,VG



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/38877/showart_362790.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP