手机站
网通分站
电信主站
密 码:
用户名:
当前位置 : 主页>网站运营>建站经验>列表

[个人学习小结]soalris 命令连同sa239考点集锦

来源:互联网 作者:west263.com 时间:2008-04-16
西部数码-全国虚拟主机10强!40余项虚拟主机管理功能,全国领先!双线多线虚拟主机南北访问畅通无阻!免费赠送企业邮局,.CN域名,自助建站480元起,免费试用7天,满意再付款! P4主机租用799元/月.月付免压金!

提示:必须使用绝对路径,否则不显示信息;

(22), 删除软件包:

# pkgrm SUNWapchr 删除软件包SUNWapchr

(23),
增加一个软件包spool 路径:
默认情况下,spool路径放在/var/spool/pkg ,
增加方法如下:
# pkgadd -d /cdrom/cdrom0/s0/Solaris_9/Product -s spool SUNWensqr.u

假如想删除spool路径:
# pkgrm -s spool SUNWensqr.u

假如想增加一个spool中径到一个自己指定的目录/export/pkg下,则如下操作:

# pkgadd -d /cdrom/cdrom0/s0/Solaris_9/Product -s /export/pkg SUNWensqr.u
# pkgrm -s /export/pkg SUNWensqr.u


------------------------------------------------------------------------------
(24),

安装:
# patchadd 105050-01

# patchrm 105050-01


安装patch cluster:

patch cluster由推荐补丁,安全补丁连同Y2K patch组成;安装时必须在/ /var /usr /opt有至少10M的空间,会把patch存在/var/sadm/pkg目录,也可-nosave,将不能对个别patch进行恢复删除,


# cd patch_cluster_directory
# ./install_cluster


-------------------------------------------------------------------------------------------

(25),To display revsion of OpenBoot PROM :
#/usr/platform/'uname -m'/sbin/prtdiag -v

---------------------------------------------------------------------
(26), NVRAM 's noneditable area :

The Ethernet address, such as 8:0:20:5d:6f:9e
The HostID value ,such as 805d6f83
(27),stop D
stop N
Stop A 三个命令的作用

(28),停止在系统运行时stop A的作用:
/etc/default/kbd
删除KEYBOARD ABORT=disable的注册符;

--------------------------------------------------------------------
(29),Boot PROM command: (必考)

banner---- displays the power-on banner(also list Ethernet address,HostID,model name , boot PROM version,the amount of memory.)
boot ---- boots the system(-s boot the system to single-usermode;
-a boot the system interactively;
-v boots the system displaying more detailed info;
-r Performs a reconfigration boot.)
help ---- Lists the main help categories
words ---- displays the FORTH words in the dictionary
sifting text ----- Displays the FORTH commands contianing text
Printenv ---- Dislplays all paramenter's current and default values.
setenv ---- set the specified NVRAM parameter to some value.
reset-all ---- Resets the entire system; similar to a power cycle.
set-defaults ---- Resets all paramter values to the factory defualts.
probe-ide
probe-scsi
probe-fcal-all
probe-scsi-all
probe-ide
probe-pci-slot
test ---- Runs self-test on specified devices;
.version ---- Displays the version and the date of the boot PROM;
.enet-addr ---- Displays the Ethernet address;
.idprom ---- Displays the IP PROM contents.
.speed ---- Displays the speed oft processor and of the buses attached to the sytem;
.registers ----- Displays the contents of the registers;

show-devs ---- view the entire device tree;
devalias ---- To identify the current boot device alias for the system;
nvalias ---- Creat a new device alias name;
nvunalias ---- Remove a custom device alias name;


--------------------------------------------------------------------------------
(30),Identifying RUN level (必考)

0 and S and 1 , this three level differ;
difference between 2 and 3 level;

0 ,PROM monitor
S , single-user mode with critical file systems;
1 , single-user mode with all available local file systems;
2 , multiuser mode, All system daemons are running except NFS and other network resource;
3 , multiuser mode , all system and has NFS ,/etc/inittab file default level;
5 , shutdown and power off;
6 , shutdown and reboots to the default run level.

---------------------------------------------------------------------------------
(31),reboot or shutdown system command

init 5 change run level to 5 and poweroff
init 6 reboot system to default run level;
halt shutdwon system ,stop the solaris OE ,change run level to 0
shutdown shutdown -g 30 -i 5 -y ,have grace period;
poweroff immediate shutdown
reboot immediate shutwon and reinitialization system;
----------------------------------------------------------------------------
(32),
useing the solaris OE Print Manager
/user/sadm/admin/bin/printmgr &

----------------------------------------------------------------------
(33), administering Printer services

lpadmin

文章整理:西部数码--专业提供域名注册虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!