Solaris 10 实用命令小结

实用命令

# 从根目录开始查找名为passwd的文件

[root@S1011:/]$ find / -name passwd

/var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/reloc/etc/default/passwd

/var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/reloc/etc/passwd

/etc/webmin/passwd

/etc/passwd

/etc/default/passwd

/usr/sfw/lib/webmin/caldera/passwd

/usr/sfw/lib/webmin/passwd

/usr/sfw/lib/webmin/blue-theme/passwd

/usr/bin/passwd

 

# 从根目录开始查找rc0.d目录

[root@S1011:/etc]$ find / -type d -namerc0.d    

/etc/rc0.d

 

# SMF(Service Management Facility)服务管理器

# 显示由FMRI指定的服务(rlogin)的状态和报告. 故障管理资源标识符(FMRIFault Management Resource Identifier

[root@S1011:/etc]$ svcs rlogin

STATE          STIME    FMRI

disabled        9:24:59 svc:/network/login:rlogin

 

# 显示系统上安装的所有服务及各个服务的状态. 包括禁用和启动的服务.

[root@S1011:/etc]$ svcs -a

STATE          STIME    FMRI

legacy_run      9:24:55 lrc:/etc/rcS_d/S50sk98sol

legacy_run      9:25:00 lrc:/etc/rc2_d/S10lu

legacy_run      9:25:00 lrc:/etc/rc2_d/S20sysetup

legacy_run      9:25:00 lrc:/etc/rc2_d/S40llc2

...

disabled        9:24:59 svc:/network/uucp:default

disabled        9:24:59 svc:/network/security/krb5_prop:default

disabled        9:25:00 svc:/network/swat:default

...

online          9:25:05 svc:/application/cde-printinfo:default

online          9:25:16 svc:/application/autoreg:default

online          9:25:18 svc:/system/webconsole:console

 

# 查看未正常启动的服务. 如果没用结果显示,则表明没有未正常启动的服务

[root@S1011:/etc]$ svcs -x

 

# 查看依赖于sendmail服务实例的服务

[root@S1011:/etc]$ svcs -Dsendmail

STATE          STIME    FMRI

online          9:25:02 svc:/milestone/multi-user:default

 

# 查看sendmail服务依赖的其它服务

[root@S1011:/etc]$ svcs -d sendmail

STATE          STIME    FMRI

online          9:24:39 svc:/milestone/name-services:default

online          9:24:52 svc:/system/identity:domain

online          9:24:54 svc:/network/service:default

online          9:24:55 svc:/system/filesystem/local:default

online          9:24:58 svc:/system/filesystem/autofs:default

online          9:24:59 svc:/system/system-log:default

 

# 查看某个服务的详细信息

# 每个服务都有自己的日志文件

[root@S1011:/etc]$ svcs -l cron

fmri         svc:/system/cron:default

name         clock daemon (cron)

enabled      true

state        online

next_state   none

state_time   Mon Jul 14 09:24:55 2014

logfile      /var/svc/log/system-cron:default.log

restarter    svc:/system/svc/restarter:default

contract_id  41

dependency   require_all/none svc:/system/filesystem/local (online)

dependency   require_all/none svc:/milestone/name-services (online)

 

# 启用telnet服务,同时运行该服务

[root@S1011:/etc]$ svcs telnet

STATE          STIME    FMRI

disabled        9:24:58 svc:/network/telnet:default

[root@S1011:/etc]$ svcadm  enable telnet

[root@S1011:/etc]$ svcs telnet         

STATE          STIME    FMRI

online         15:25:46 svc:/network/telnet:default

 

# 禁用telnet服务,同时停止该服务

[root@S1011:/etc]$ svcadm disable telnet

[root@S1011:/etc]$ svcs telnet         

STATE          STIME    FMRI

disabled       15:26:43 svc:/network/telnet:default

 

# 启动telnet服务

[root@S1011:/etc]$ svcadm restart telnet

 

# 刷新telnet服务,即让服务重新载入配置文件

[root@S1011:/etc]$ svcadm refresh telnet

 

# 启用指定的inetd服务(这里为telnet服务)

[root@S1011:/etc]$ inetadm -e svc:/network/telnet:default

[root@S1011:/etc]$ svcs telnet

STATE          STIME    FMRI

online         15:32:24 svc:/network/telnet:default

 

# 禁用指定的inetd服务(这里为telnet服务)

[root@S1011:/etc]$ inetadm -d svc:/network/telnet:default

[root@S1011:/etc]$ svcs telnet

STATE          STIME    FMRI

disabled       15:34:46 svc:/network/telnet:default

 

# 列出指定的inetd服务的属性(这里为telnet服务)

[root@S1011:/etc]$ inetadm -l svc:/network/telnet:default

SCOPE    NAME=VALUE

         name="telnet"

         endpoint_type="stream"

         proto="tcp6"

         isrpc=FALSE

         wait=FALSE

         exec="/usr/sbin/in.telnetd"

         user="root"

default  bind_addr=""

default  bind_fail_max=-1

default  bind_fail_interval=-1

default  max_con_rate=-1

default  max_copies=-1

default  con_rate_offline=-1

default  failrate_cnt=40

default  failrate_interval=60

default  inherit_env=TRUE

default  tcp_trace=FALSE

default  tcp_wrappers=FALSE

default  connection_backlog=10

 

# Lists all default inet service propertyvalues  provided

# by  inetd  in the form of name=valuepairs. If the value

# is of boolean type, it is listed as TRUE orFALSE.


[root@S1011:/etc]$ inetadm -p

NAME=VALUE

bind_addr=""

bind_fail_max=-1

bind_fail_interval=-1

max_con_rate=-1

max_copies=-1

con_rate_offline=-1

failrate_cnt=40

failrate_interval=60

inherit_env=TRUE

tcp_trace=FALSE

tcp_wrappers=FALSE

connection_backlog = 10
2013年最新版的强悍Unix版本Solaris 11.1系统文件,功能十分强大,不愧是真正血统的Unix系统! Oracle Announces Availability of Oracle Solaris 11.1 and Oracle Solaris Cluster 4.1 Delivers Oracle Database and Java Enhancements, Expanded Mission Critical Cloud Management Capabilities and Advanced Platform Features Redwood Shores, Calif – October 26, 2012 News Facts Oracle today announced general availability of Oracle Solaris 11.1 and Oracle Solaris Cluster 4.1. Oracle Solaris 11 is the first cloud OS that allows customers to build large-scale enterprise-class Infrastructure as a Service (IaaS), Platform as a Service (PaaS) and Software as a Service (SaaS) clouds on a wide range of SPARC and x86 servers and Oracle engineered systems. Oracle Solaris Cluster 4.1 extends high availability and disaster recovery capabilities of Oracle Solaris and includes unique virtual cluster features supporting highly efficient application consolidation with best-in-class availability. Oracle Solaris 11 is already widely in production with thousands of customers with mission critical deployments across industries such as financial services, communications, healthcare, retail, public sector and media and entertainment. Read customer success stories about Oracle Solaris here. Oracle Solaris 11 is also gaining strong momentum among enterprise application vendors with hundreds of applications already qualified for Oracle Solaris Ready status through the Oracle PartnerNetwork (OPN). OPN members can develop, sell and implement their solutions on Oracle Solaris 11 and take advantage of specialized Oracle Solaris resources to expand their market reach. Customers and partners can quickly and safely upgrade to Oracle Solaris 11.1 using the built-in update tools and software repositories available with Oracle Solaris 11. Oracle will host a webcast on November 7, 2012 at 8 a.m. Pacific time on Oracle Solaris 11.1 and Oracle Solaris Cluster 4.1, featuring Markus Flierl, vice president, Oracle Solaris Engineering, Core Technology and Bill Nesheim, vice president, Oracle Solaris Engineering, Platform Software. Register here. This event will also include an interactive chat with core developers of Oracle Solaris and Oracle Solaris Cluster. New and Enhanced Features in Oracle Solaris 11.1 Oracle Solaris 11.1 increases the performance, availability and I/O throughput of the latest Oracle Database technology. A new, optimized shared memory interface between the Oracle Database and Oracle Solaris 11.1 provides 8x faster database startup and shutdown, as well as online resizing of the Oracle Database System Global Area (SGA). Oracle Solaris 11.1 introduces unique new capabilities for optimizing Oracle Database performance. Oracle Solaris 11.1 exposes Oracle Solaris DTrace I/O interfaces that allow an Oracle Database administrator to identify I/O outliers and subsequently isolate network or storage bottlenecks. A new Oracle Solaris DTrace plug-in for Oracle Java Mission Control to enable customers to profile Java applications on Oracle Solaris production systems. New cloud management features add to Oracle Solaris 11’s zero overhead built-in virtualization capabilities across system, network and storage resources, including expanded support for Software Defined Networks (SDN) with Edge Virtual Bridging enhancements, to maximize network resource utilization and manage bandwidth in cloud environments. New built-in memory predictor monitors application memory use and provides optimized memory page sizes and resource location to speed overall application performance. Support for an unprecedented 32 TB of RAM and thousands of CPUs unlocks the full potential of Oracle’s latest server systems. Oracle Solaris Cluster 4.1 Highlights New Oracle Solaris 10 Zone Clusters allow customers to consolidate mission critical Oracle Solaris 10 applications on Oracle Solaris 11 cloud environments. Expanded disaster recovery operations using Oracle’s Sun ZFS Storage Appliance services along with Oracle Solaris Cluster 4.1 to coordinate failover of applications and data to a remote disaster recovery site. Faster application recovery with improved storage failure detection and resource dependencies management. New labeled security capability in Oracle Solaris Zone Clusters provides military grade application separation in highly consolidated mission-critical deployments using Oracle Solaris 11 Trusted Extensions. Integrated Oracle Deployments and Support Oracle Enterprise Manager Ops Center provides comprehensive cloud management capabilities for Oracle Solaris 11, including self-service provisioning of Oracle Solaris 11 Zones. Ops Center’s integrated systems management delivers enterprise scale cloud performance. Oracle Enterprise Manager Ops Center is available to Oracle Solaris customers at no additional cost under the Ops Center Everywhere Program. Oracle Solaris Studio delivers the latest in compiler optimizations, multithread performance and powerful analysis tools for native development, and optimized application performance and reliability on Oracle Solaris 11.1 systems. Oracle Solaris 11 guarantees binary compatibility with previous Oracle Solaris versions through the Oracle Solaris Binary Application Guarantee Program, which provides customers a seamless upgrade path and the industry’s best investment protection. Oracle Solaris Legacy Containers allows older Oracle Solaris environments to be brought forward onto latest generation hardware to provide power, cooling and footprint consolidation savings. OPN members can find Oracle Solaris tools and resources in the Oracle Solaris Knowledge Zone, including Oracle Solaris Ready, Oracle Solaris 11 Specialization and Oracle Solaris Development Initiative. The Oracle Solaris Remote Lab now provides a secure cloud environment for OPN members to test and validate their applications with Oracle Solaris 11 in SPARC and x86 virtual environments. Supporting Quotes “Oracle recommends Oracle Solaris 11 for all UNIX®-based Oracle implementations. Oracle Solaris 11.1 delivers over 300 new performance and feature enhancements and is engineered together with Oracle Database, middleware, applications to increase performance, streamline management and automate support for Oracle deployments,” said John Fowler, executive vice president, Systems, Oracle. “The combination of the secure, highly available capabilities of Oracle Solaris Cluster 4.1 and the built-in virtualization of Oracle Solaris 11.1 helps customers bring their most mission-critical applications into a cost effective, agile cloud environment and delivers extreme availability for enterprise applications.” “Clients are looking for ways to reduce the complexity of systems management while enabling Platform as a Service (PaaS) & Software as a Service (SaaS) clouds,” says Lee Diamante, solutions architect, Systems Computing Solutions at Forsythe. “The value of Oracle Solaris 11 is that it maintains all the enterprise-class features expected with a mission-critical OS, while bringing in new, innovative technologies. Forsythe has a long and rich history of delivering customer solutions on Oracle Solaris systems. This is why we are excited about the Solaris 11.1 release.” “Oracle is making it much easier for partners like Informatica to gain access to their software with the new testing environments; shrinking the time to measurable results and value,” said Julie Lockner, vice president, ILM, Informatica. “With the release of Oracle Solaris 11.1 Informatica customers now have access to mission critical deployments across major industries, with an environment of high performance and high availability. With all the new feature enhancements, we look forward to making the Informatica Platform certified on the Oracle Solaris 11 product family.”
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值