分类:
2011-01-14 10:55:52
硬件环境:
Sun 系列服务器
软件环境:
Solaris 9 或Solaris 10
[J-bash-3.00# uname -a
SunOS SOLARIS 5.10 Generic_141445-09 i86pc i386 i86pc
-bash-3.00# hostname
SOLARIS
-bash-3.00# inetadm |grep telnet
enabled maintenance svc:/network/telnet:default
-bash-3.00# dmesg |tail -n 6
Jan 6 18:52:10 SOLARIS inetd[385]: [ID 702911 daemon.error] Property 'name' of instance svc:/network/telnet:default is missing, inconsistent or invalid
Jan 6 18:52:10 SOLARIS inetd[385]: [ID 702911 daemon.error] Property 'proto' of instance svc:/network/telnet:default is missing, inconsistent or invalid
Jan 6 18:52:10 SOLARIS inetd[385]: [ID 702911 daemon.error] Invalid configuration for instance svc:/network/telnet:default, placing in maintenance
Jan 6 18:52:24 SOLARIS mac: [ID 736570 kern.info] NOTICE: e
Jan 6 18:52:26 SOLARIS pseudo: [ID 129642 kern.info] pseudo-device: devinfo0
Jan 6 18:52:26 SOLARIS genunix: [ID 936769 kern.info] devinfo0 is /pseudo/devinfo@0
-bash-3.00# grep -i telnet /etc/services
-bash-3.00# echo $?
1
-bash-3.00# grep -i telnet /etc/services.ok
telnet 23/tcp
-bash-3.00# !echo
echo $?
0
-bash-3.00# echo `grep -i telnet /etc/services.ok` >> /etc/services
-bash-3.00# inetadm -h
inetadm: illegal option -- h
Usage:
inetadm
inetadm -?
inetadm -p
inetadm -l {FMRI | pattern}...
inetadm -e {FMRI | pattern}...
inetadm -d {FMRI | pattern}...
inetadm -m {FMRI | pattern}... {name=value}...
inetadm -M {name=value}...
-bash-3.00# inetadm |grep telnet
enabled maintenance svc:/network/telnet:default
-bash-3.00# inetadm |grep telnet
-bash-3.00# svcadm desable /network/telnet
-bash-3.00# svcs -a |grep telnet
disabled 18:58:32 svc:/network/telnet:default
-bash-3.00# svcadm enable /network/telnet
-bash-3.00# svcs -a |grep telnet
online 18:58:49 svc:/network/telnet:default
-bash-3.00# inetadm |grep telnet
enabled online svc:/network/telnet:default
-bash-3.00# echo bingo
bingo
-bash-3.00#
chinaunix网友2011-03-07 14:34:44
很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com