由于对Solaris系统不熟悉,很多信息都要用的时候去google,所以写下本篇文章,方便自己和其他人日后可以方便使用。

查看服务器配置

CPU配置

CPU颗数:

psrinfo -p
1

CPU线程数以及在线状态

psrinfo
0       on-line   since 02/22/2014 14:57:48
1       on-line   since 02/22/2014 14:57:52
2       on-line   since 02/22/2014 14:57:52
3       on-line   since 02/22/2014 14:57:52
4       on-line   since 02/22/2014 14:57:52
5       on-line   since 02/22/2014 14:57:52
6       on-line   since 02/22/2014 14:57:52
7       on-line   since 02/22/2014 14:57:52
8       on-line   since 02/22/2014 14:57:52
9       on-line   since 02/22/2014 14:57:52
10      on-line   since 02/22/2014 14:57:52
11      on-line   since 02/22/2014 14:57:52
12      on-line   since 02/22/2014 14:57:52
13      on-line   since 02/22/2014 14:57:52
14      on-line   since 02/22/2014 14:57:52
15      on-line   since 02/22/2014 14:57:52
16      on-line   since 02/22/2014 14:57:52
17      on-line   since 02/22/2014 14:57:52
18      on-line   since 02/22/2014 14:57:52
19      on-line   since 02/22/2014 14:57:52
20      on-line   since 02/22/2014 14:57:52
21      on-line   since 02/22/2014 14:57:52
22      on-line   since 02/22/2014 14:57:52
23      on-line   since 02/22/2014 14:57:52
24      on-line   since 02/22/2014 14:57:52
25      on-line   since 02/22/2014 14:57:52
26      on-line   since 02/22/2014 14:57:52
27      on-line   since 02/22/2014 14:57:52
28      on-line   since 02/22/2014 14:57:52
29      on-line   since 02/22/2014 14:57:52
30      on-line   since 02/22/2014 14:57:52
31      on-line   since 02/22/2014 14:57:52
32      on-line   since 02/22/2014 14:57:52
33      on-line   since 02/22/2014 14:57:52
34      on-line   since 02/22/2014 14:57:52
35      on-line   since 02/22/2014 14:57:52
36      on-line   since 02/22/2014 14:57:52
37      on-line   since 02/22/2014 14:57:52
38      on-line   since 02/22/2014 14:57:52
39      on-line   since 02/22/2014 14:57:52
40      on-line   since 02/22/2014 14:57:52
41      on-line   since 02/22/2014 14:57:52
42      on-line   since 02/22/2014 14:57:52
43      on-line   since 02/22/2014 14:57:52
44      on-line   since 02/22/2014 14:57:52
45      on-line   since 02/22/2014 14:57:52
46      on-line   since 02/22/2014 14:57:52
47      on-line   since 02/22/2014 14:57:52
48      on-line   since 02/22/2014 14:57:52
49      on-line   since 02/22/2014 14:57:52
50      on-line   since 02/22/2014 14:57:52
51      on-line   since 02/22/2014 14:57:52
52      on-line   since 02/22/2014 14:57:52
53      on-line   since 02/22/2014 14:57:52
54      on-line   since 02/22/2014 14:57:52
55      on-line   since 02/22/2014 14:57:52
56      on-line   since 02/22/2014 14:57:52
57      on-line   since 02/22/2014 14:57:52
58      on-line   since 02/22/2014 14:57:52
59      on-line   since 02/22/2014 14:57:52
60      on-line   since 02/22/2014 14:57:52
61      on-line   since 02/22/2014 14:57:52
62      on-line   since 02/22/2014 14:57:52
63      on-line   since 02/22/2014 14:57:52

可以看到,solaris中,一颗CPU可以有64个线程,新款的T5单核线程数目更多。

RAM配置
prtconf | grep Memory
prtconf: devinfo facility not available
Memory size: 32640 Megabytes
SWAP配置
/usr/sbin/swap -l
swapfile             dev  swaplo blocks   free
/dev/swap            0,0      16 67109936 67109936

一个block是512 byte

查看系统架构
/bin/isainfo -kv
64-bit sparcv9 kernel modules
查看OS软件包和补丁

查看软件包

pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibC SUNWlibms SUNWsprot \
>  SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt
system      SUNWarc   Lint Libraries (usr)
system      SUNWbtool CCS tools bundled with SunOS
system      SUNWhea   SunOS Header Files
system      SUNWi15cs X11 ISO8859-15 Codeset Support
system      SUNWi1cs  X11 ISO8859-1 Codeset Support
system      SUNWi1of  ISO-8859-1 (Latin-1) Optional Fonts
system      SUNWlibC  Sun Workshop Compilers Bundled libC
system      SUNWlibms Math & Microtasking Libraries (Usr)
system      SUNWsprot Solaris Bundled tools
system      SUNWtoo   Programming Tools
system      SUNWxwfnt X Window System platform required fonts

查看补丁

/usr/sbin/patchadd -p | grep 120753

软件设置

允许root使用远程登录ssh
cd /etc/ssh
cp sshd_config sshd_config_bak_20140702
vi sshd_config

set:
PermitRootLogin yes
启动vnc
export PATH=/usr/openwin/bin:/usr/X11/bin:$PATH
vncserver

花菜土豆粉
67 声望27 粉丝

Life with Oracle


引用和评论

0 条评论