注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

欢迎光临我的博客

 
 
 

日志

 
 

telnet localhost 25 不能正常登陆  

2010-12-08 15:23:41|  分类: 邮件服务 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

bash-3.00# telnet localhost 25
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
bash-3.00# svcx -xv
bash: svcx: command not found
bash-3.00# svcs -xv
svc:/application/print/server:default (LP print server)
 State: disabled since Wed Dec 08 11:23:47 2010
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M lpsched
Impact: 2 dependent services are not running:
        svc:/application/print/rfc1179:default
        svc:/application/print/ipp-listener:default

svc:/application/management/sma:default (net-snmp SNMP daemon)
 State: maintenance since Wed Dec 08 11:24:56 2010
Reason: Start method failed repeatedly, last exited with status 137.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man/ -s 1M snmpd
   See: /etc/svc/volatile/application-management-sma:default.log
Impact: This service is not running.

svc:/network/sendmail-client:default (sendmail SMTP client queue runner)
 State: maintenance since Wed Dec 08 12:53:12 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-sendmail-client:default.log
Impact: This service is not running.

svc:/network/smtp:sendmail (sendmail SMTP mail transfer agent)
 State: maintenance since Wed Dec 08 12:52:25 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-smtp:sendmail.log
Impact: This service is not running.

svc:/network/http:apache2 (Apache 2 HTTP server)
 State: maintenance since Wed Dec 08 11:25:06 2010
Reason: Start method failed repeatedly, last exited with status 1.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/apache2/man -s 8 httpd
   See: /etc/svc/volatile/network-http:apache2.log
Impact: This service is not running.

svc:/system/cron:default (clock daemon (cron))
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M cron
   See: man -M /usr/share/man -s 1 crontab
   See: /etc/svc/volatile/system-cron:default.log
Impact: This service is not running.

svc:/system/webconsole:console (java web console)
 State: maintenance since Wed Dec 08 11:25:13 2010
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man -s 1M smcwebserver
   See: /etc/svc/volatile/system-webconsole:console.log
Impact: This service is not running.

svc:/system/sac:default (SAF service access controller)
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sac
   See: /etc/svc/volatile/system-sac:default.log
Impact: This service is not running.
bash-3.00#
bash-3.00#   
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00# svcs -xv | more
svc:/application/print/server:default (LP print server)
 State: disabled since Wed Dec 08 11:23:47 2010
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M lpsched
Impact: 2 dependent services are not running:
        svc:/application/print/rfc1179:default
        svc:/application/print/ipp-listener:default

svc:/application/management/sma:default (net-snmp SNMP daemon)
 State: maintenance since Wed Dec 08 11:24:56 2010
Reason: Start method failed repeatedly, last exited with status 137.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man/ -s 1M snmpd
   See: /etc/svc/volatile/application-management-sma:default.log
Impact: This service is not running.

svc:/network/sendmail-client:default (sendmail SMTP client queue runner)
 State: maintenance since Wed Dec 08 12:53:12 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
bash-3.00# svcadm clear svc:/application/management/sma:default
bash-3.00# svcs -xv | more
svc:/application/print/server:default (LP print server)
 State: disabled since Wed Dec 08 11:23:47 2010
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M lpsched
Impact: 2 dependent services are not running:
        svc:/application/print/rfc1179:default
        svc:/application/print/ipp-listener:default

svc:/application/management/sma:default (net-snmp SNMP daemon)
 State: maintenance since Wed Dec 08 13:46:59 2010
Reason: Start method failed repeatedly, last exited with status 137.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man/ -s 1M snmpd
   See: /etc/svc/volatile/application-management-sma:default.log
Impact: This service is not running.

svc:/network/sendmail-client:default (sendmail SMTP client queue runner)
 State: maintenance since Wed Dec 08 12:53:12 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-sendmail-client:default.log
Impact: This service is not running.

svc:/network/smtp:sendmail (sendmail SMTP mail transfer agent)
 State: maintenance since Wed Dec 08 12:52:25 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-smtp:sendmail.log
Impact: This service is not running.

svc:/network/http:apache2 (Apache 2 HTTP server)
 State: maintenance since Wed Dec 08 11:25:06 2010
Reason: Start method failed repeatedly, last exited with status 1.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/apache2/man -s 8 httpd
   See: /etc/svc/volatile/network-http:apache2.log
Impact: This service is not running.

svc:/system/cron:default (clock daemon (cron))
bash-3.00# svcadm enable svc:/network/smtp:sendmail
bash-3.00# svcs -vx
svc:/application/print/server:default (LP print server)
 State: disabled since Wed Dec 08 11:23:47 2010
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M lpsched
Impact: 2 dependent services are not running:
        svc:/application/print/rfc1179:default
        svc:/application/print/ipp-listener:default

svc:/application/management/sma:default (net-snmp SNMP daemon)
 State: maintenance since Wed Dec 08 13:46:59 2010
Reason: Start method failed repeatedly, last exited with status 137.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man/ -s 1M snmpd
   See: /etc/svc/volatile/application-management-sma:default.log
Impact: This service is not running.

svc:/network/sendmail-client:default (sendmail SMTP client queue runner)
 State: maintenance since Wed Dec 08 12:53:12 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-sendmail-client:default.log
Impact: This service is not running.

svc:/network/smtp:sendmail (sendmail SMTP mail transfer agent)
 State: maintenance since Wed Dec 08 12:52:25 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-smtp:sendmail.log
Impact: This service is not running.

svc:/network/http:apache2 (Apache 2 HTTP server)
 State: maintenance since Wed Dec 08 11:25:06 2010
Reason: Start method failed repeatedly, last exited with status 1.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/apache2/man -s 8 httpd
   See: /etc/svc/volatile/network-http:apache2.log
Impact: This service is not running.

svc:/system/cron:default (clock daemon (cron))
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M cron
   See: man -M /usr/share/man -s 1 crontab
   See: /etc/svc/volatile/system-cron:default.log
Impact: This service is not running.

svc:/system/webconsole:console (java web console)
 State: maintenance since Wed Dec 08 11:25:13 2010
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man -s 1M smcwebserver
   See: /etc/svc/volatile/system-webconsole:console.log
Impact: This service is not running.

svc:/system/sac:default (SAF service access controller)
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sac
   See: /etc/svc/volatile/system-sac:default.log
Impact: This service is not running.
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00# svcadm clear svc:/network/sendmail-client:default
bash-3.00# svcadm start svc:/network/sendmail-client:default
Usage: svcadm [-v] [cmd [args ... ]]

        svcadm enable [-rst] <service> ...      - enable and online service(s)
        svcadm disable [-st] <service> ...      - disable and offline service(s)
        svcadm restart <service> ...            - restart specified service(s)
        svcadm refresh <service> ...            - re-read service configuration
        svcadm mark [-It] <state> <service> ... - set maintenance state
        svcadm clear <service> ...              - clear maintenance state
        svcadm milestone [-d] <milestone>       - advance to a service milestone

        Services can be specified using an FMRI, abbreviation, or fnmatch(5)
        pattern, as shown in these examples for svc:/network/smtp:sendmail

        svcadm <cmd> svc:/network/smtp:sendmail
        svcadm <cmd> network/smtp:sendmail
        svcadm <cmd> network/*mail
        svcadm <cmd> network/smtp
        svcadm <cmd> smtp:sendmail
        svcadm <cmd> smtp
        svcadm <cmd> sendmail
bash-3.00# svcadm enable svc:/network/sendmail-client:default
bash-3.00# svcadm enable smtp
bash-3.00# svcadm enable smtp:sendmail
bash-3.00# svcadm enable svc:/network/smtp:sendmail
bash-3.00# svcadm enable network/smtp:sendmail    
bash-3.00# svcadm enable network/*mail       
bash-3.00# svcadm enable network/smtp
bash-3.00# svcadm enable smtp:sendmail
bash-3.00# svcadm enable smtp
bash-3.00# svcadm enable sendmail
bash-3.00#
bash-3.00#
bash-3.00# svcs -xv | more
svc:/application/print/server:default (LP print server)
 State: disabled since Wed Dec 08 11:23:47 2010
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M lpsched
Impact: 2 dependent services are not running:
        svc:/application/print/rfc1179:default
        svc:/application/print/ipp-listener:default

svc:/application/management/sma:default (net-snmp SNMP daemon)
 State: maintenance since Wed Dec 08 13:46:59 2010
Reason: Start method failed repeatedly, last exited with status 137.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man/ -s 1M snmpd
   See: /etc/svc/volatile/application-management-sma:default.log
Impact: This service is not running.

svc:/network/sendmail-client:default (sendmail SMTP client queue runner)
 State: maintenance since Wed Dec 08 13:48:47 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
bash-3.00# more /etc/svc/volatile/application-management-sma:default.log
[ Dec  8 11:23:49 Enabled. ]
[ Dec  8 11:24:56 Executing start method ("/lib/svc/method/svc-sma") ]
ld.so.1: snmpd: fatal: libnetsnmpagent.so.5: open failed: No such file or directory
Killed
[ Dec  8 11:24:56 Method "start" exited with status 137 ]
[ Dec  8 11:24:56 Executing start method ("/lib/svc/method/svc-sma") ]
ld.so.1: snmpd: fatal: libnetsnmpagent.so.5: open failed: No such file or directory
Killed
[ Dec  8 11:24:56 Method "start" exited with status 137 ]
[ Dec  8 11:24:56 Executing start method ("/lib/svc/method/svc-sma") ]
ld.so.1: snmpd: fatal: libnetsnmpagent.so.5: open failed: No such file or directory
Killed
[ Dec  8 11:24:56 Method "start" exited with status 137 ]
[ Dec  8 13:46:59 Leaving maintenance because clear requested. ]
[ Dec  8 13:46:59 Enabled. ]
[ Dec  8 13:46:59 Executing start method ("/lib/svc/method/svc-sma") ]
ld.so.1: snmpd: fatal: libnetsnmpagent.so.5: open failed: No such file or directory
Killed
[ Dec  8 13:46:59 Method "start" exited with status 137 ]
bash-3.00# svcadm disable svc:/network/sendmail-client:default
bash-3.00# svcs -xv |more
svc:/application/print/server:default (LP print server)
 State: disabled since Wed Dec 08 11:23:47 2010
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M lpsched
Impact: 2 dependent services are not running:
        svc:/application/print/rfc1179:default
        svc:/application/print/ipp-listener:default

svc:/application/management/sma:default (net-snmp SNMP daemon)
 State: maintenance since Wed Dec 08 13:46:59 2010
Reason: Start method failed repeatedly, last exited with status 137.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man/ -s 1M snmpd
   See: /etc/svc/volatile/application-management-sma:default.log
Impact: This service is not running.

svc:/network/smtp:sendmail (sendmail SMTP mail transfer agent)
 State: maintenance since Wed Dec 08 12:52:25 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-smtp:sendmail.log
Impact: This service is not running.

svc:/network/http:apache2 (Apache 2 HTTP server)
 State: maintenance since Wed Dec 08 11:25:06 2010
Reason: Start method failed repeatedly, last exited with status 1.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/apache2/man -s 8 httpd
   See: /etc/svc/volatile/network-http:apache2.log
Impact: This service is not running.

svc:/system/cron:default (clock daemon (cron))
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M cron
   See: man -M /usr/share/man -s 1 crontab
   See: /etc/svc/volatile/system-cron:default.log
Impact: This service is not running.

svc:/system/webconsole:console (java web console)
 State: maintenance since Wed Dec 08 11:25:13 2010
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man -s 1M smcwebserver
   See: /etc/svc/volatile/system-webconsole:console.log
Impact: This service is not running.

svc:/system/sac:default (SAF service access controller)
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sac
   See: /etc/svc/volatile/system-sac:default.log
Impact: This service is not running.
bash-3.00# svcadm clear svc:/network/sendmail-client:default
svcadm: Instance "svc:/network/sendmail-client:default" is not in a maintenance or degraded state.
bash-3.00# svcadm enable svc:/network/sendmail-client:default
bash-3.00# svcs -xv
svc:/application/print/server:default (LP print server)
 State: disabled since Wed Dec 08 11:23:47 2010
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M lpsched
Impact: 2 dependent services are not running:
        svc:/application/print/rfc1179:default
        svc:/application/print/ipp-listener:default

svc:/application/management/sma:default (net-snmp SNMP daemon)
 State: maintenance since Wed Dec 08 13:46:59 2010
Reason: Start method failed repeatedly, last exited with status 137.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man/ -s 1M snmpd
   See: /etc/svc/volatile/application-management-sma:default.log
Impact: This service is not running.

svc:/network/sendmail-client:default (sendmail SMTP client queue runner)
 State: maintenance since Wed Dec 08 13:54:26 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-sendmail-client:default.log
Impact: This service is not running.

svc:/network/smtp:sendmail (sendmail SMTP mail transfer agent)
 State: maintenance since Wed Dec 08 12:52:25 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-smtp:sendmail.log
Impact: This service is not running.

svc:/network/http:apache2 (Apache 2 HTTP server)
 State: maintenance since Wed Dec 08 11:25:06 2010
Reason: Start method failed repeatedly, last exited with status 1.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/apache2/man -s 8 httpd
   See: /etc/svc/volatile/network-http:apache2.log
Impact: This service is not running.

svc:/system/cron:default (clock daemon (cron))
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M cron
   See: man -M /usr/share/man -s 1 crontab
   See: /etc/svc/volatile/system-cron:default.log
Impact: This service is not running.

svc:/system/webconsole:console (java web console)
 State: maintenance since Wed Dec 08 11:25:13 2010
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man -s 1M smcwebserver
   See: /etc/svc/volatile/system-webconsole:console.log
Impact: This service is not running.

svc:/system/sac:default (SAF service access controller)
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sac
   See: /etc/svc/volatile/system-sac:default.log
Impact: This service is not running.
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00# svcadm clear svc:/network/sendmail-client:default
bash-3.00# svcadm disable svc:/network/sendmail-client:default
bash-3.00# svcadm enable svc:/network/sendmail-client:default
bash-3.00# svcs -xv| more
svc:/application/print/server:default (LP print server)
 State: disabled since Wed Dec 08 11:23:47 2010
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M lpsched
Impact: 2 dependent services are not running:
        svc:/application/print/rfc1179:default
        svc:/application/print/ipp-listener:default

svc:/application/management/sma:default (net-snmp SNMP daemon)
 State: maintenance since Wed Dec 08 13:46:59 2010
Reason: Start method failed repeatedly, last exited with status 137.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man/ -s 1M snmpd
   See: /etc/svc/volatile/application-management-sma:default.log
Impact: This service is not running.

svc:/network/sendmail-client:default (sendmail SMTP client queue runner)
 State: maintenance since Wed Dec 08 13:55:44 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-sendmail-client:default.log
Impact: This service is not running.

svc:/network/smtp:sendmail (sendmail SMTP mail transfer agent)
 State: maintenance since Wed Dec 08 12:52:25 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-smtp:sendmail.log
Impact: This service is not running.

svc:/network/http:apache2 (Apache 2 HTTP server)
 State: maintenance since Wed Dec 08 11:25:06 2010
Reason: Start method failed repeatedly, last exited with status 1.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/apache2/man -s 8 httpd
   See: /etc/svc/volatile/network-http:apache2.log
Impact: This service is not running.

svc:/system/cron:default (clock daemon (cron))
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M cron
   See: man -M /usr/share/man -s 1 crontab
   See: /etc/svc/volatile/system-cron:default.log

...skipping 1 line


svc:/system/webconsole:console (java web console)
 State: maintenance since Wed Dec 08 11:25:13 2010
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man -s 1M smcwebserver
   See: /etc/svc/volatile/system-webconsole:console.log
Impact: This service is not running.

svc:/system/sac:default (SAF service access controller)
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sac
   See: /etc/svc/volatile/system-sac:default.log
Impact: This service is not running.
bash-3.00#
bash-3.00#
bash-3.00# svcadm
Usage: svcadm [-v] [cmd [args ... ]]

        svcadm enable [-rst] <service> ...      - enable and online service(s)
        svcadm disable [-st] <service> ...      - disable and offline service(s)
        svcadm restart <service> ...            - restart specified service(s)
        svcadm refresh <service> ...            - re-read service configuration
        svcadm mark [-It] <state> <service> ... - set maintenance state
        svcadm clear <service> ...              - clear maintenance state
        svcadm milestone [-d] <milestone>       - advance to a service milestone

        Services can be specified using an FMRI, abbreviation, or fnmatch(5)
        pattern, as shown in these examples for svc:/network/smtp:sendmail

        svcadm <cmd> svc:/network/smtp:sendmail
        svcadm <cmd> network/smtp:sendmail
        svcadm <cmd> network/*mail
        svcadm <cmd> network/smtp
        svcadm <cmd> smtp:sendmail
        svcadm <cmd> smtp
        svcadm <cmd> sendmail
bash-3.00#
bash-3.00#
bash-3.00# svcadm clear svc:/network/sendmail-client:default
bash-3.00# svcadm restart svc:/network/sendmail-client:default                                    
bash-3.00# svcs -xv| more
svc:/application/print/server:default (LP print server)
 State: disabled since Wed Dec 08 11:23:47 2010
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M lpsched
Impact: 2 dependent services are not running:
        svc:/application/print/rfc1179:default
        svc:/application/print/ipp-listener:default

svc:/application/management/sma:default (net-snmp SNMP daemon)
 State: maintenance since Wed Dec 08 13:46:59 2010
Reason: Start method failed repeatedly, last exited with status 137.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man/ -s 1M snmpd
   See: /etc/svc/volatile/application-management-sma:default.log
Impact: This service is not running.

svc:/network/sendmail-client:default (sendmail SMTP client queue runner)
 State: maintenance since Wed Dec 08 13:56:51 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-sendmail-client:default.log
Impact: This service is not running.

svc:/network/smtp:sendmail (sendmail SMTP mail transfer agent)
 State: maintenance since Wed Dec 08 12:52:25 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-smtp:sendmail.log
Impact: This service is not running.

svc:/network/http:apache2 (Apache 2 HTTP server)
 State: maintenance since Wed Dec 08 11:25:06 2010
Reason: Start method failed repeatedly, last exited with status 1.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/apache2/man -s 8 httpd
   See: /etc/svc/volatile/network-http:apache2.log
Impact: This service is not running.

svc:/system/cron:default (clock daemon (cron))
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M cron
   See: man -M /usr/share/man -s 1 crontab
   See: /etc/svc/volatile/system-cron:default.log
Impact: This service is not running.

svc:/system/webconsole:console (java web console)
 State: maintenance since Wed Dec 08 11:25:13 2010
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man -s 1M smcwebserver
   See: /etc/svc/volatile/system-webconsole:console.log
Impact: This service is not running.

svc:/system/sac:default (SAF service access controller)
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sac
   See: /etc/svc/volatile/system-sac:default.log
Impact: This service is not running.
bash-3.00# telnet localhost 25
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
bash-3.00#
bash-3.00#
bash-3.00# more /etc/svc/volatile/network-smtp:sendmail.log
[ Dec  8 11:23:46 Enabled. ]
[ Dec  8 11:24:56 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
mkdir: Failed to make directory "/var/spool/mqueue"; No such file or directory
chown: /var/spool/mqueue: No such file or directory
[ Dec  8 11:24:56 Method "start" exited with status 0 ]
451 4.0.0 can not chdir(/var/spool/mqueue/): No such file or directory
[ Dec  8 11:26:06 Stopping because all processes in service exited. ]
[ Dec  8 11:26:06 Executing stop method ("/lib/svc/method/smtp-sendmail stop 82") ]
[ Dec  8 11:26:06 Method "stop" exited with status 0 ]
[ Dec  8 11:26:06 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
mkdir: Failed to make directory "/var/spool/mqueue"; No such file or directory
chown: /var/spool/mqueue: No such file or directory
[ Dec  8 11:26:06 Method "start" exited with status 0 ]
451 4.0.0 can not chdir(/var/spool/mqueue/): No such file or directory
[ Dec  8 11:27:08 Stopping because all processes in service exited. ]
[ Dec  8 11:27:08 Executing stop method ("/lib/svc/method/smtp-sendmail stop 124") ]
[ Dec  8 11:27:08 Method "stop" exited with status 0 ]
[ Dec  8 11:27:08 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
mkdir: Failed to make directory "/var/spool/mqueue"; No such file or directory
chown: /var/spool/mqueue: No such file or directory
[ Dec  8 11:27:08 Method "start" exited with status 0 ]
451 4.0.0 can not chdir(/var/spool/mqueue/): No such file or directory
[ Dec  8 11:28:08 Stopping because all processes in service exited. ]
[ Dec  8 11:28:08 Executing stop method ("/lib/svc/method/smtp-sendmail stop 129") ]
[ Dec  8 11:28:08 Method "stop" exited with status 0 ]
[ Dec  8 11:28:08 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
mkdir: Failed to make directory "/var/spool/mqueue"; No such file or directory
chown: /var/spool/mqueue: No such file or directory
[ Dec  8 11:28:08 Method "start" exited with status 0 ]
451 4.0.0 can not chdir(/var/spool/mqueue/): No such file or directory
[ Dec  8 11:29:08 Stopping because all processes in service exited. ]
[ Dec  8 11:29:08 Executing stop method ("/lib/svc/method/smtp-sendmail stop 133") ]
[ Dec  8 11:29:08 Method "stop" exited with status 0 ]
[ Dec  8 11:29:08 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
mkdir: Failed to make directory "/var/spool/mqueue"; No such file or directory
chown: /var/spool/mqueue: No such file or directory
[ Dec  8 11:29:09 Method "start" exited with status 0 ]
451 4.0.0 can not chdir(/var/spool/mqueue/): No such file or directory
[ Dec  8 11:30:09 Stopping because all processes in service exited. ]
[ Dec  8 11:30:09 Executing stop method ("/lib/svc/method/smtp-sendmail stop 137") ]
[ Dec  8 11:30:09 Method "stop" exited with status 0 ]
[ Dec  8 11:30:09 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
mkdir: Failed to make directory "/var/spool/mqueue"; No such file or directory
chown: /var/spool/mqueue: No such file or directory
[ Dec  8 11:30:09 Method "start" exited with status 0 ]
451 4.0.0 can not chdir(/var/spool/mqueue/): No such file or directory
[ Dec  8 11:31:09 Stopping because all processes in service exited. ]
[ Dec  8 11:31:09 Executing stop method ("/lib/svc/method/smtp-sendmail stop 142") ]
bash-3.00# cd /var
bash-3.00# cd spool
bash: cd: spool: No such file or directory
bash-3.00# mkdir /var/spool/mqueue
mkdir: Failed to make directory "/var/spool/mqueue"; No such file or directory
bash-3.00# mkdir /var/spool/     
bash-3.00# mkdir /var/spool/mqueue
bash-3.00# svcadm restart svc:/network/sendmail-client:default
bash-3.00# svcadm clear svc:/network/sendmail-client:default
bash-3.00# svcadm restart svc:/network/sendmail-client:default
bash-3.00# svcs -vx
svc:/application/print/server:default (LP print server)
 State: disabled since Wed Dec 08 11:23:47 2010
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M lpsched
Impact: 2 dependent services are not running:
        svc:/application/print/rfc1179:default
        svc:/application/print/ipp-listener:default

svc:/application/management/sma:default (net-snmp SNMP daemon)
 State: maintenance since Wed Dec 08 13:46:59 2010
Reason: Start method failed repeatedly, last exited with status 137.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man/ -s 1M snmpd
   See: /etc/svc/volatile/application-management-sma:default.log
Impact: This service is not running.

svc:/network/sendmail-client:default (sendmail SMTP client queue runner)
 State: maintenance since Wed Dec 08 14:00:26 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-sendmail-client:default.log
Impact: This service is not running.

svc:/network/smtp:sendmail (sendmail SMTP mail transfer agent)
 State: maintenance since Wed Dec 08 12:52:25 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-smtp:sendmail.log
Impact: This service is not running.

svc:/network/http:apache2 (Apache 2 HTTP server)
 State: maintenance since Wed Dec 08 11:25:06 2010
Reason: Start method failed repeatedly, last exited with status 1.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/apache2/man -s 8 httpd
   See: /etc/svc/volatile/network-http:apache2.log
Impact: This service is not running.

svc:/system/cron:default (clock daemon (cron))
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M cron
   See: man -M /usr/share/man -s 1 crontab
   See: /etc/svc/volatile/system-cron:default.log
Impact: This service is not running.

svc:/system/webconsole:console (java web console)
 State: maintenance since Wed Dec 08 11:25:13 2010
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man -s 1M smcwebserver
   See: /etc/svc/volatile/system-webconsole:console.log
Impact: This service is not running.

svc:/system/sac:default (SAF service access controller)
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sac
   See: /etc/svc/volatile/system-sac:default.log
Impact: This service is not running.
bash-3.00# svcs -vx| more
svc:/application/print/server:default (LP print server)
 State: disabled since Wed Dec 08 11:23:47 2010
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M lpsched
Impact: 2 dependent services are not running:
        svc:/application/print/rfc1179:default
        svc:/application/print/ipp-listener:default

svc:/application/management/sma:default (net-snmp SNMP daemon)
 State: maintenance since Wed Dec 08 13:46:59 2010
Reason: Start method failed repeatedly, last exited with status 137.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man/ -s 1M snmpd
   See: /etc/svc/volatile/application-management-sma:default.log
Impact: This service is not running.

svc:/network/sendmail-client:default (sendmail SMTP client queue runner)
 State: maintenance since Wed Dec 08 14:00:26 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-sendmail-client:default.log
Impact: This service is not running.

svc:/network/smtp:sendmail (sendmail SMTP mail transfer agent)
 State: maintenance since Wed Dec 08 12:52:25 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-smtp:sendmail.log
Impact: This service is not running.

svc:/network/http:apache2 (Apache 2 HTTP server)
 State: maintenance since Wed Dec 08 11:25:06 2010
Reason: Start method failed repeatedly, last exited with status 1.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/apache2/man -s 8 httpd
   See: /etc/svc/volatile/network-http:apache2.log
Impact: This service is not running.

svc:/system/cron:default (clock daemon (cron))
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M cron
   See: man -M /usr/share/man -s 1 crontab
   See: /etc/svc/volatile/system-cron:default.log
bash-3.00# svcadm clear svc:/network/http:apache2
bash-3.00# svcadm enable svc:/network/http:apache2
bash-3.00# svcadm | more
Usage: svcadm [-v] [cmd [args ... ]]

        svcadm enable [-rst] <service> ...      - enable and online service(s)
        svcadm disable [-st] <service> ...      - disable and offline service(s)
        svcadm restart <service> ...            - restart specified service(s)
        svcadm refresh <service> ...            - re-read service configuration
        svcadm mark [-It] <state> <service> ... - set maintenance state
        svcadm clear <service> ...              - clear maintenance state
        svcadm milestone [-d] <milestone>       - advance to a service milestone

        Services can be specified using an FMRI, abbreviation, or fnmatch(5)
        pattern, as shown in these examples for svc:/network/smtp:sendmail

        svcadm <cmd> svc:/network/smtp:sendmail
        svcadm <cmd> network/smtp:sendmail
        svcadm <cmd> network/*mail
        svcadm <cmd> network/smtp
 svcadm <cmd> smtp:sendmail
        svcadm <cmd> smtp
        svcadm <cmd> sendmail
bash-3.00# svcs -xv | more
svc:/application/print/server:default (LP print server)
 State: disabled since Wed Dec 08 11:23:47 2010
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M lpsched
Impact: 2 dependent services are not running:
        svc:/application/print/rfc1179:default
        svc:/application/print/ipp-listener:default

svc:/application/management/sma:default (net-snmp SNMP daemon)
 State: maintenance since Wed Dec 08 13:46:59 2010
Reason: Start method failed repeatedly, last exited with status 137.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man/ -s 1M snmpd
   See: /etc/svc/volatile/application-management-sma:default.log
Impact: This service is not running.

svc:/network/sendmail-client:default (sendmail SMTP client queue runner)
 State: maintenance since Wed Dec 08 14:00:26 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-sendmail-client:default.log
Impact: This service is not running.

svc:/network/smtp:sendmail (sendmail SMTP mail transfer agent)
 State: maintenance since Wed Dec 08 12:52:25 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-smtp:sendmail.log
Impact: This service is not running.

svc:/network/http:apache2 (Apache 2 HTTP server)
 State: maintenance since Wed Dec 08 14:03:42 2010
Reason: Start method failed repeatedly, last exited with status 1.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/apache2/man -s 8 httpd
   See: /etc/svc/volatile/network-http:apache2.log
Impact: This service is not running.

svc:/system/cron:default (clock daemon (cron))
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M cron
   See: man -M /usr/share/man -s 1 crontab
   See: /etc/svc/volatile/system-cron:default.log
Impact: This service is not running.

bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00# svcadm
Usage: svcadm [-v] [cmd [args ... ]]

        svcadm enable [-rst] <service> ...      - enable and online service(s)
        svcadm disable [-st] <service> ...      - disable and offline service(s)
        svcadm restart <service> ...            - restart specified service(s)
        svcadm refresh <service> ...            - re-read service configuration
        svcadm mark [-It] <state> <service> ... - set maintenance state
        svcadm clear <service> ...              - clear maintenance state
        svcadm milestone [-d] <milestone>       - advance to a service milestone

        Services can be specified using an FMRI, abbreviation, or fnmatch(5)
        pattern, as shown in these examples for svc:/network/smtp:sendmail

        svcadm <cmd> svc:/network/smtp:sendmail
        svcadm <cmd> network/smtp:sendmail
        svcadm <cmd> network/*mail
        svcadm <cmd> network/smtp
        svcadm <cmd> smtp:sendmail
        svcadm <cmd> smtp
        svcadm <cmd> sendmail
bash-3.00# svcadm mark svc:/network/http:apache2
Usage: svcadm [-v] [cmd [args ... ]]

        svcadm enable [-rst] <service> ...      - enable and online service(s)
        svcadm disable [-st] <service> ...      - disable and offline service(s)
        svcadm restart <service> ...            - restart specified service(s)
        svcadm refresh <service> ...            - re-read service configuration
        svcadm mark [-It] <state> <service> ... - set maintenance state
        svcadm clear <service> ...              - clear maintenance state
        svcadm milestone [-d] <milestone>       - advance to a service milestone

        Services can be specified using an FMRI, abbreviation, or fnmatch(5)
        pattern, as shown in these examples for svc:/network/smtp:sendmail

        svcadm <cmd> svc:/network/smtp:sendmail
        svcadm <cmd> network/smtp:sendmail
        svcadm <cmd> network/*mail
        svcadm <cmd> network/smtp
        svcadm <cmd> smtp:sendmail
        svcadm <cmd> smtp
        svcadm <cmd> sendmail
bash-3.00# svcs -xv| more
svc:/application/print/server:default (LP print server)
 State: disabled since Wed Dec 08 11:23:47 2010
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M lpsched
Impact: 2 dependent services are not running:
        svc:/application/print/rfc1179:default
        svc:/application/print/ipp-listener:default

svc:/application/management/sma:default (net-snmp SNMP daemon)
 State: maintenance since Wed Dec 08 13:46:59 2010
Reason: Start method failed repeatedly, last exited with status 137.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man/ -s 1M snmpd
   See: /etc/svc/volatile/application-management-sma:default.log
Impact: This service is not running.

svc:/network/sendmail-client:default (sendmail SMTP client queue runner)
 State: maintenance since Wed Dec 08 14:00:26 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-sendmail-client:default.log
Impact: This service is not running.

svc:/network/smtp:sendmail (sendmail SMTP mail transfer agent)
 State: maintenance since Wed Dec 08 12:52:25 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-smtp:sendmail.log
Impact: This service is not running.

svc:/network/http:apache2 (Apache 2 HTTP server)
 State: maintenance since Wed Dec 08 14:03:42 2010
Reason: Start method failed repeatedly, last exited with status 1.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/apache2/man -s 8 httpd
   See: /etc/svc/volatile/network-http:apache2.log
Impact: This service is not running.

svc:/system/cron:default (clock daemon (cron))
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M cron
   See: man -M /usr/share/man -s 1 crontab
   See: /etc/svc/volatile/system-cron:default.log
Impact: This service is not running.
bash-3.00# svcadm clear svc:/network/smtp:sendmail
bash-3.00# svcadm disable svc:/network/smtp:sendmail
bash-3.00# svcenable svc:/network/smtp:sendmail
bash: svcenable: command not found
bash-3.00# svcadm enable svc:/network/smtp:sendmail
bash-3.00# svcs -xv | more
svc:/application/print/server:default (LP print server)
 State: disabled since Wed Dec 08 11:23:47 2010
Reason: Disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M lpsched
Impact: 2 dependent services are not running:
        svc:/application/print/rfc1179:default
        svc:/application/print/ipp-listener:default

svc:/application/management/sma:default (net-snmp SNMP daemon)
 State: maintenance since Wed Dec 08 13:46:59 2010
Reason: Start method failed repeatedly, last exited with status 137.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man/ -s 1M snmpd
   See: /etc/svc/volatile/application-management-sma:default.log
Impact: This service is not running.

svc:/network/http:apache2 (Apache 2 HTTP server)
 State: maintenance since Wed Dec 08 14:03:42 2010
Reason: Start method failed repeatedly, last exited with status 1.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/apache2/man -s 8 httpd
   See: /etc/svc/volatile/network-http:apache2.log
Impact: This service is not running.

svc:/network/sendmail-client:default (sendmail SMTP client queue runner)
 State: maintenance since Wed Dec 08 14:00:26 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sendmail
   See: /etc/svc/volatile/network-sendmail-client:default.log
Impact: This service is not running.

svc:/system/cron:default (clock daemon (cron))
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M cron
   See: man -M /usr/share/man -s 1 crontab
   See: /etc/svc/volatile/system-cron:default.log
Impact: This service is not running.

svc:/system/webconsole:console (java web console)
 State: maintenance since Wed Dec 08 11:25:13 2010
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /usr/share/man -s 1M smcwebserver
   See: /etc/svc/volatile/system-webconsole:console.log
Impact: This service is not running.

svc:/system/sac:default (SAF service access controller)
 State: maintenance since Wed Dec 08 11:24:53 2010
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sac
   See: /etc/svc/volatile/system-sac:default.log
Impact: This service is not running.
bash-3.00#
bash-3.00# svcadm clear svc:/network/sendmail-client:default
bash-3.00# svcadm disable svc:/network/sendmail-client:default
bash-3.00# svcadm enable svc:/network/sendmail-client:default
bash-3.00# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 v240.rebecca.com.cn ESMTP Sendmail 8.14.4+Sun/8.14.4; Wed, 8 Dec 2010 14:08:36 +0800 (CST)
quit
221 2.0.0 v240.rebecca.com.cn closing connection
Connection to 127.0.0.1 closed by foreign host.

  评论这张
 
阅读(912)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017