[ 永远的UNIX::UNIX技术资料的宝库 ]   GB | BIG5

首页 > 系统管理 > 其它 > 正文
主流服务器UNIX操作系统比较(之四)打印机、TCP/IP相关设置
本文出自:http://www.yesky.com 作者: stone (2002-04-10 08:02:01)
Printers
AIX
FreeBSD
HP-UX
Printer Queues /etc/qconfig /var/spool/print /etc/lp/interface/*
Stop LP  stopsrc -s lpd   lpshut
Start LP startsrc -s lpd lpd lpsched
Submit print jobs enq
lp
lpr
qprt
lp lp
LP statistics enq -A
lpq
lpstat
qchk
lpq lpstat
Remove print jobs cancel
lprm
qcan
enq -x
cancel
lprm
cancel
Add printer queue smit mkpq   lpadmin -p pq
Remove Printer queue smit rmpq   lpadmin -x pq
Make default printer export LPDEST="pq"   lpadmin -d pq
TCP/IP
AIX
 
HP-UX
Network IP configuration lsattr -E -l inet0 /etc/rc.conf /etc/rc.config.d/netconf
Hosts IP addresses /etc/hosts /etc/hosts /etc/hosts
Name service switch /etc/netsvc.conf /etc/host.conf /etc/nsswitch.conf
Network parameters no -a sysctl ndd -h
Routing daemon gated routed gated
NIC Configurations ifconfig -a ifconfig -a lanscan -v
Secondary IP Address ifconfig en0 alias IP  ifconfig xl0 alias IP ifconfig lan0:1 IP 
Login prompt HERALD @
/etc/security/login.cfg 
  telnetd -b /etc/issue 
Increase the # of pseudo-terminals odmget -q "attribute=num and uniquetype=pty/pty/pty" PdAt | sed "s/0-64/0-512/" |
odmchange -q "attribute=num and uniquetype=pty/pty/pty" -o PdAt

chdev -l pty0 -anum=256 -P
reboot

  rebuild your kernel with these new values NPTY=# 
NSTRPY=#

reboot

insf -d ptys -n #
insf -d ptym -n #
insf -d pts -s # -e -v
 

Maximum # of ptys 512   {MAXUSERS}
Remote Shell remsh
rsh
rsh remsh
YP/NIS service binder /usr/lib/netsvc/yp/ypbind  /usr/sbin/ypbind /usr/lib/netsvc/yp/ypbind 
Printers
LINUX
Solaris
Tru64
Printer Queues /var/spool/lpd/lp/* /etc/lp/interfaces/* /usr/spool/lpd
Stop LP  /etc/init.d/lpd stop /usr/lib/lp/lpshut /sbin/init.d/lpd stop
Start LP /etc/init.d/lpd start /usr/lib/lp/lpsched /sbin/init.d/lpd start
Submit print jobs lpr lp
lpr
lp
lpr
LP statistics lpq lpstat lpstat
Remove print jobs lprm cancel
lprm
cancel
lprm
Add printer queue printtool lpadmin -p pq lprsetup
Remove Printer queue   lpadmin -x pq lprsetup
Make default printer   lpadmin -d pq export PRINTER="lp"
TCP/IP
LINUX(RedHat)
Solaris
Tru64
Network IP configuration /etc/sysconfig/network-scripts/  /etc/hostname.*
/etc/inet/*
/etc/defaultrouter
/etc/rc.config
Hosts IP addresses /etc/hosts /etc/inet/hosts /etc/hosts
Name service switch /etc/nsswitch.conf /etc/nsswitch.conf /etc/svc.conf
Network parameters sysctl -a | grep net ndd /dev/[tcp|ip] ?  
Routing daemon routed in.routed routed
NIC Configurations ifconfig -a ifconfig -a ifconfig -a
Secondary IP Address modprobe ip_alias
ifconfig eth0:1 IP
ifconfig hme0:1 IP up ifconfig ln0 alias
Login prompt /etc/issue BANNER @
/etc/default/telnetd
/etc/issue
Increase the # of pseudo-terminals cd /dev
./MAKEDEV -v pty
{/etc/system}
set pt_cnt = #   {SYSV}
set npty = #      {BSD}

{/etc/iu.ap}
ptsl 0 # ldterm ttcompat

halt
boot -r

cd /dev
./MAKEDEV PTY_1
Maximum # of ptys 256 176                {BSD}
3000              {SYSV}
8192
Remote Shell rsh rsh rsh
YP/NIS service binder /sbin/ypbind /usr/lib/netsvc/yp/ypbind /usr/sbin/ypbind

(http://www.fanqiang.com)
    进入【UNIX论坛

相关文章
主流服务器UNIX操作系统比较(之三)常用命令 (2002-04-10 06:02:00)
主流服务器UNIX操作系统比较(之二)用户帐号的设置 (2002-04-09 08:02:00)
主流服务器UNIX操作系统比较(之一)目录结构对比 (2002-04-09 06:02:00)
 

★  樊强制作 欢迎分享  ★