??xml version="1.0" encoding="utf-8" standalone="yes"?>番号集在线观看,日韩精品123,亚洲天堂2017http://www.aygfsteel.com/prince/category/9372.htmlzh-cnWed, 16 Feb 2011 21:21:42 GMTWed, 16 Feb 2011 21:21:42 GMT60Zvlan的HSRP配置http://www.aygfsteel.com/prince/archive/2011/02/16/344412.htmlprinceprinceWed, 16 Feb 2011 01:41:00 GMThttp://www.aygfsteel.com/prince/archive/2011/02/16/344412.htmlhttp://www.aygfsteel.com/prince/comments/344412.htmlhttp://www.aygfsteel.com/prince/archive/2011/02/16/344412.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/344412.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/344412.htmlQ{载请注明来源和作者)

SW1
int port-channel 1
switchport mode trunk //*两个交换Z用二层etherchannel相连

int f0/1 //*作etherchannel的口
switchport mode trunk
channel-group 1 mode on 

int f0/2
switchport mode trunk
channel-group 1 mode on

interface Vlan100
ip address 192.168.0.10 255.255.255.0
standby 1 ip 192.168.0.1
standby 1 priority 150  //hrsp 默认优先U是100  q里讄优先Uؓ150
standby 1 preempt

interface Vlan200
ip address 192.168.1.10 255.255.255.0
standby 2 ip 192.168.1.1
standby 2 preempt     

//*HSRP部分

 

SW2

interface Port-channel1
switchport mode trunk

int F0/1
switchport mode trunk
channel-group 1 mode on

int F0/2
switchport mode trunk
channel-group 1 mode on

interface Vlan100
ip address 192.168.0.20 255.255.255.0
standby 1 ip 192.168.0.1
standby 1 preempt


interface Vlan200
ip address 192.168.1.20 255.255.255.0
standby 2 ip 192.168.1.1
standby 2 priority 150
standby 2 preempt


 



prince 2011-02-16 09:41 发表评论
]]>
sshdcisco路由?/title><link>http://www.aygfsteel.com/prince/archive/2011/02/01/343851.html</link><dc:creator>prince</dc:creator><author>prince</author><pubDate>Tue, 01 Feb 2011 09:44:00 GMT</pubDate><guid>http://www.aygfsteel.com/prince/archive/2011/02/01/343851.html</guid><wfw:comment>http://www.aygfsteel.com/prince/comments/343851.html</wfw:comment><comments>http://www.aygfsteel.com/prince/archive/2011/02/01/343851.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/prince/comments/commentRss/343851.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/prince/services/trackbacks/343851.html</trackback:ping><description><![CDATA[<p><span style="color: #ff0000">(转蝲h明出?</span></p> <p>R1(config)#<span style="color: #0000ff">ip domain-name prince.com  </span>//配置本地域名Q用于生成证书。证书包含了公钥<br /> R1(config)#<br /> R1(config)#<span style="color: #0000ff">crypto key generate rsa     </span>//配置使用RSAQ生成一对密?nbsp; <br /> The name for the keys will be: R1.prince.com    //密钥的名U?br /> Choose the size of the key modulus in the range of 360 to 2048 for your<br />   General Purpose Keys. Choosing a key modulus greater than 512 may take<br />   a few minutes.<br /> How many bits in the modulus [512]:    //选择密钥的长度。默?12?当前路由器的允许范围?60?048位的长度<br /> % Generating 512 bit RSA keys, keys will be non-exportable...[OK]<br /> R1(config)#<br /> R1(config)#<span style="color: #0000ff">aaa new-model          </span>//配置AAA模式<br /> R1(config)#<br /> R1(config)#<span style="color: #0000ff">username prince secret 820929    </span>//配置账号和密码,用于SSH客户端登?<br /> R1(config)#<br /> R1(config)#<span style="color: #0000ff">ip ssh time-out 30          </span>//配置SSH的客L的空闲超时时间ؓ30U?br /> R1(config)#<span style="color: #0000ff">ip ssh authentication-retries 3 </span>   <br /> R1(config)#<span style="color: #0000ff">ip ssh time-out 120         </span>//配置SSH的客L的失败次数。如果尝试失败次数超q指定端?br />                                        //则默认停止响?20U。下面一条命令配|停止响应时?br /> R1(config)#<br /> R1(config)#<span style="color: #0000ff">line vty 0 4</span><br /> R1(config-line)#<span style="color: #0000ff">transport input ssh    </span>//配置VTY的线路,接受SSH的接?br /> R1(config-line)#<span style="color: #0000ff">end<br /> </span></p> <img src ="http://www.aygfsteel.com/prince/aggbug/343851.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/prince/" target="_blank">prince</a> 2011-02-01 17:44 <a href="http://www.aygfsteel.com/prince/archive/2011/02/01/343851.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>cisco pix防火墙重写ioshttp://www.aygfsteel.com/prince/archive/2009/08/14/291190.htmlprinceprinceFri, 14 Aug 2009 10:33:00 GMThttp://www.aygfsteel.com/prince/archive/2009/08/14/291190.htmlhttp://www.aygfsteel.com/prince/comments/291190.htmlhttp://www.aygfsteel.com/prince/archive/2009/08/14/291190.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/291190.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/291190.htmlQ{载请注明出处Q?br />
1.重启按escq入monitor


2.查看在monitor下可用的interface
monitor> interface

3.发现刚才配置好的6h口能正常使用
Using 1: i82559 @ PCI(bus:0 dev:3 irq:255), MAC: 000e.0c6d.e537

4.指定PIX防火墙接口的IP地址
monitor> address 172.16.0.254
address 172.16.0.254

5.指定tftp-server服务器地址Q安装tftp的PC机IP地址Q?br /> monitor> server 172.16.0.100
server 172.16.0.100

6.ping试一下tftp
monitor> ping 172.16.0.100
Sending 5, 100-byte 0xe2b8 ICMP Echoes to 172.16.0.100, timeout is 4 seconds:
!!!!!
Success rate is 100 percent (5/5)
7.指名tftp-server内的pixos映像文g名字
monitor> file pix724.bin
file pix721.bin

8.最后启动tftpQ开始灌pixos
monitor>tftp
9配置接口ip
inter e0
nameif inside
 security-level 0
ip add x.x.x.x 255.255.255.0
no shutdown
10.查启动文件是否已l写入flashQ?br /> #show flash:
如果配置文g没有pix724.bin文g则操?1?2步骤Q如果有直接操作13步骤
11.上传pix
copy tftp://x.x.x.x/pix724.bin flash:
12.讄启动路径
(config)#boot system flash:pix724.bin
13.保存配置
#wr



prince 2009-08-14 18:33 发表评论
]]>
cisco Zvlan的HSRP配置http://www.aygfsteel.com/prince/archive/2009/08/10/290594.htmlprinceprinceMon, 10 Aug 2009 14:31:00 GMThttp://www.aygfsteel.com/prince/archive/2009/08/10/290594.htmlhttp://www.aygfsteel.com/prince/comments/290594.htmlhttp://www.aygfsteel.com/prince/archive/2009/08/10/290594.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/290594.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/290594.html(原创 转蝲h明作者和出处)


Zvlan的HSRP配置

SW1
int port-channel 1
switchport mode trunk //*两个交换Z用二层etherchannel相连

int f0/1 //*作etherchannel的口
switchport mode trunk
channel-group 1 mode on 

int f0/2
switchport mode trunk
channel-group 1 mode on

interface Vlan100
ip address 192.168.0.10 255.255.255.0
standby 1 ip 192.168.0.1
standby 1 priority 150  //hrsp 默认优先U是100  q里讄优先Uؓ150
standby 1 preempt

interface Vlan200
ip address 192.168.1.10 255.255.255.0
standby 2 ip 192.168.1.1
standby 2 preempt     

 


SW2

interface Port-channel1
switchport mode trunk

int F0/1
switchport mode trunk
channel-group 1 mode on

int F0/2
switchport mode trunk
channel-group 1 mode on

interface Vlan100
ip address 192.168.0.20 255.255.255.0
standby 1 ip 192.168.0.1
standby 1 preempt


interface Vlan200
ip address 192.168.1.20 255.255.255.0
standby 2 ip 192.168.1.1
standby 2 priority 150
standby 2 preempt


 



prince 2009-08-10 22:31 发表评论
]]>
cisco交换机初始化讄http://www.aygfsteel.com/prince/archive/2009/08/10/290593.htmlprinceprinceMon, 10 Aug 2009 14:28:00 GMThttp://www.aygfsteel.com/prince/archive/2009/08/10/290593.htmlhttp://www.aygfsteel.com/prince/comments/290593.htmlhttp://www.aygfsteel.com/prince/archive/2009/08/10/290593.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/290593.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/290593.html(原创 转蝲h明作者和出处)

初始化cisco交换机基本设|?br /> en
conf t
hostname loveutrue  //讄交换机名U?br /> no ip domain lookup  //避免输错命o长时间等?br /> service password-encryption //讄密码加密
username prince secret 820929 //新徏登陆用户名密?br /> enable secret 092982  //新徏enable密码
line console 0   //q入console?br /> logging synchronous  //讄命o输入日志同步
login local    //在该端口应用新徏用户
exec-timeout 300  //待机5分钟自动断开
exit
line vty 0 4   //q入telnet口设|?
logging synchronous  //L控制台打断当前输?nbsp;
login local
exec-timeout 0 0  //不自动退?br /> exit

end
wr



prince 2009-08-10 22:28 发表评论
]]>
cisco 2960 重写ioshttp://www.aygfsteel.com/prince/archive/2008/12/30/249237.htmlprinceprinceTue, 30 Dec 2008 11:57:00 GMThttp://www.aygfsteel.com/prince/archive/2008/12/30/249237.htmlhttp://www.aygfsteel.com/prince/comments/249237.htmlhttp://www.aygfsteel.com/prince/archive/2008/12/30/249237.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/249237.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/249237.html  Q原?转蝲h明出处)

1、用控制U连接交换机console口与计算Z?/span>1Q用带有xmodem功能的终端Y件连接(win2000 and xp的超U终端就带这功能Q?/span>

2、设|连接方式ؓ串口1Q如果连接的是其他串口就选择其他串口Q,速率9600Q无校验Q无控Q停止位1。或者点击默认设|也可以?/span>

3、连接以后计机回R出现交换机无ios的界面,一般的提示W是Q?/span>switch:

4、拔掉交换机后的甉|UK新启动交换机

5、在l端输入Q?/span>

switch:flash_init

会出现如下提C:

Initializing Flash...

6?/span>switch:load_helper

装入E序

无提C?/span>

7、更ҎL特率提高传输速度

set BAUD 115200 Q更改的目的Q提高写入速率Q用原?600大约一个小Ӟ

原始gؓ9600

更改后需重新q接Q否则出Cؕ码,使用新的波特率?/span> 115200

8、输入拷贝指令:

switch:copy xmodem: flash:image_filename.bin

出现如下提示Q?/span>

Begin the Xmodem or Xmodem-1K transfer now...

9、系l提CZ断出?/span>Cq个字母可以开始传文g?/span>

10、点击超U终端菜单:传?/span>---发送文Ӟ在协议选项中选择Xmodem或?/span>Xmodem-1K协议Q然后选择ios的媄像文Ӟ*.binQ,开始传送?/span>

11、传送得很慢Q请耐心{待?/span>

12、传送完毕后提示Q?/span>

File "xmodem:" successfully copied to ....

switch:

13、在提示W下输入

switch:boot

启用新的ios

14、进入新?/span>ios后,q行如下操作Q将波特率修改ؓ原?/span> 9600

Q?/span>1Q?/span>Switch#copy flash:config.text tftp:

Address or name of remote host []? Lip地址

Destination filename [config.text]?

!!

1249 bytes copied in 1.065 secs (1173 bytes/sec)

Q?/span>2Q修攚w|文?/span>

删除配置文gline con 0下面波特率ؓ115200的一?/span>

Q?/span>3Q重C传配|文?/span>

Switch#copy tftp: flash:config.text

Address or name of remote host []? 10.227.81.160

Source filename []? config.text

Destination filename [config.text]?

Accessing tftp://10.227.81.160/config.text...

Loading config.text from 10.227.81.160 (via Vlan11): !

[OK - 1328 bytes]

1328 bytes copied in 0.134 secs (9910 bytes/sec)

Q?/span>4Q查看配|文件是否修?/span>

switch#more flash:config.text

line con 0

line vty 0 4

 login

line vty 5 15

 login

!

Line con 0下面无Q何配|?/span>

OK

15、重新加电完成恢复工作?/span>



prince 2008-12-30 19:57 发表评论
]]>
Solaris 10下安装Adobe Flash Playerhttp://www.aygfsteel.com/prince/archive/2008/12/14/246247.htmlprinceprinceSun, 14 Dec 2008 10:14:00 GMThttp://www.aygfsteel.com/prince/archive/2008/12/14/246247.htmlhttp://www.aygfsteel.com/prince/comments/246247.htmlhttp://www.aygfsteel.com/prince/archive/2008/12/14/246247.html#Feedback1http://www.aygfsteel.com/prince/comments/commentRss/246247.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/246247.html 

1.首先是去ADOBE官方站下?/span>FlashPlayer9.(www.adobe.com首页里点get Adobe Flash Player).

2.解压flash_player_9_solaris_x86.tar.bz2

#cd /home/prince

#bzip2 -d flash_player_9_solaris_x86.tar.bz2

#tar -xvf flash_player_9_solaris_x86.tar

3.解压后?/span>flash_player_9_r124_x86里的文g拯?/span>/usr/sfw/lib/mozilla/plugins/?/span>

#cd /flash_player_9_r124_x86

#cp * /usr/sfw/lib/mozilla/plugins/

4、重新启?br /> #init 6


prince 2008-12-14 18:14 发表评论
]]>
xmanager q程桌面理 linuxhttp://www.aygfsteel.com/prince/archive/2007/11/08/159177.htmlprinceprinceThu, 08 Nov 2007 14:08:00 GMThttp://www.aygfsteel.com/prince/archive/2007/11/08/159177.htmlhttp://www.aygfsteel.com/prince/comments/159177.htmlhttp://www.aygfsteel.com/prince/archive/2007/11/08/159177.html#Feedback1http://www.aygfsteel.com/prince/comments/commentRss/159177.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/159177.html以RHEL 4ZQ?br /> 使用 vi ~辑器编辑以下配|文Ӟ
以下配置都用root用户

1、修?/etc/X11/xdm/Xaccess 文gQ修改内?br /> #    *        #any host can get a login window
L # P变ؓ
*        #any host can get a login window
保存Q退?br />
2、修?/etc/X11/gdm/gdm.conf 文gQ修改内?br /> [xdmcp]
# Distributions: Ship with this off.  It is never a safe thing to leave
# out on the net.  Setting up /etc/hosts.allow and /etc/hosts.deny to only
# allow local access is another alternative but not the safest.
# Firewalling port 177 is the safest if you wish to have xdmcp on.
# Read the manual for more notes on the security of XDMCP.
Enable=false
最后一?Enable=false
改ؓ Enable=true
 
在同一配置文g中找到语?br />
# The port.  177 is the standard port so better keep it that way
#Port=177
L端口前面?# P改ؓ
Port=177
Q?77端口是要配置?xdmcp 服务监听端口Q?br /> 保存Q退出?br />
3、修?/etc/inittab文gQ修改内?br /> id:3:initdefault:
改ؓ
id:5:initdefault:

同时修改下列语句
# Run xdm in runlevel 5
x:5:respawn:/etc/X11/prefdm -nodaemon
为:
# Run xdm in runlevel 5
x:5:respawn:/usr/bin/gdm
保存Q退?br />
4、修?/etc/X11/xdm/xdm-config 文gQ?br />     DisplayManager.requestPort:     0
为:
    QDisplayManager.requestPort:     0
保存Q退?br />
5、修攚w|文?/etc/X11/xdm/Xservers 权限?444
      修改配置文g /etc/X11/xdm/Xserup_0 权限?755
    chmod 444 /etc/X11/xdm/Xservers
    chmod 755 /etc/X11/xdm/Xsetup_0 
    查看修改后的配置文g权限Qls -l
-r--r--r--  1 root root   487 2005-05-14  Xservers
-rwxr-xr-x  1 root root   935 2004-10-21  Xsetup_0

6、配|linux防火墙端?br /> iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 177 -j ACCEPT
完成
Q有时候会出现防火墙端口没有开启,在终端运?setup 配置防火墙端?选择防火墙,在其他端口填?177:udp Q保存退出)
7、重新启?br /> init 6

Qover 收工Q?/span>




prince 2007-11-08 22:08 发表评论
]]>
linux 修改计算机名http://www.aygfsteel.com/prince/archive/2007/11/08/159141.htmlprinceprinceThu, 08 Nov 2007 10:42:00 GMThttp://www.aygfsteel.com/prince/archive/2007/11/08/159141.htmlhttp://www.aygfsteel.com/prince/comments/159141.htmlhttp://www.aygfsteel.com/prince/archive/2007/11/08/159141.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/159141.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/159141.html1、修?/etc/sysconfig/network
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=prince(prince机?
2、修?/etc/hosts
vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost
192.168.1.120   prince prince (prince机名称)
3、重启电?br /> init 6


prince 2007-11-08 18:42 发表评论
]]>
linux crontab 备忘http://www.aygfsteel.com/prince/archive/2007/10/26/156065.htmlprinceprinceFri, 26 Oct 2007 03:14:00 GMThttp://www.aygfsteel.com/prince/archive/2007/10/26/156065.htmlhttp://www.aygfsteel.com/prince/comments/156065.htmlhttp://www.aygfsteel.com/prince/archive/2007/10/26/156065.html#Feedback2http://www.aygfsteel.com/prince/comments/commentRss/156065.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/156065.htmlQ{Q?/span>linux crontab 的格?br /> 基本格式 :
*  *  *  *  *  command
分 时 日 月 周 命o

W?列表C分??9 每分钟用*或?*/1表示
W?列表C小??3Q?表示0点)
W?列表C日??1
W?列表C月??2
W?列标识号星期0?Q?表示星期天)
W?列要q行的命?/span>

crontab文g的一些例子:

30 21 * * * /usr/local/etc/rc.d/lighttpd restart
上面的例子表C每晚的21:30重启apache?/span>

45 4 1,10,22 * * /usr/local/etc/rc.d/lighttpd restart
上面的例子表C每??0?2日的4 : 45重启apache?/span>

10 1 * * 6,0 /usr/local/etc/rc.d/lighttpd restart
上面的例子表C每周六、周日的1 : 10重启apache?/span>

0,30 18-23 * * * /usr/local/etc/rc.d/lighttpd restart
上面的例子表C在每天18 : 00?3 : 00之间每隔30分钟重启apache?/span>

0 23 * * 6 /usr/local/etc/rc.d/lighttpd restart
上面的例子表C每星期六的11 : 00 pm重启apache?/span>

* */1 * * * /usr/local/etc/rc.d/lighttpd restart
每一时重启apache

* 23-7/1 * * * /usr/local/etc/rc.d/lighttpd restart
晚上11点到早上7点之_每隔一时重启apache

0 11 4 * mon-wed /usr/local/etc/rc.d/lighttpd restart
每月?号与每周一到周三的11炚w启apache

0 4 1 jan * /usr/local/etc/rc.d/lighttpd restart
一月一L4炚w启apache

 

名称 : crontab

使用权限 : 所有用?

使用方式 :

crontab file [-u user]-用指定的文g替代目前的crontab?

crontab-[-u user]-用标准输入替代目前的crontab.

crontab-1[user]-列出用户目前的crontab.

crontab-e[user]-~辑用户目前的crontab.

crontab-d[user]-删除用户目前的crontab.

crontab-c dir- 指定crontab的目录?

crontab文g的格式:M H D m d cmd.

 

M: 分钟Q?-59Q?

HQ小Ӟ0-23Q?

DQ天Q?-31Q?

m: 月(1-12Q?

d: 一星期内的天(0~6Q?为星期天Q?

cmd要运行的E序Q程序被送入sh执行Q这个shell只有USER,HOME,SHELLq三个环境变?/span>

说明 :

crontab 是用来让使用者在固定旉或固定间隔执行程序之用,换句话说Q也是cM使用者的时程表?u user 是指讑֮指定

user 的时E表Q这个前提是你必要有其权限(比如说是 root)才能够指定他人的时程表。如果不使用 -u user 的话Q就是表C

定自q时程表?

 

 

参数 :

crontab -e : 执行文字~辑器来讑֮时程表,内定的文字编辑器?VIQ如果你想用别的文字~辑器,则请先设?VISUAL 环境变数

来指定用那个文字编辑器(比如?setenv VISUAL joe)

crontab -r : 删除目前的时E表

crontab -l : 列出目前的时E表

crontab file [-u user]-用指定的文g替代目前的crontab?/span>

时程表的格式如下 :

f1 f2 f3 f4 f5 program

其中 f1 是表C分钟,f2 表示时Qf3 表示一个月份中的第几日Qf4 表示月䆾Qf5 表示一个星期中的第几天。program 表示要执

行的E序?

?f1 ?* 时表C每分钟都要执行 programQf2 ?* 时表C每时都要执行E序Q其馀cL

?f1 ?a-b 时表CZW?a 分钟到第 b 分钟q段旉内要执行Qf2 ?a-b 时表CZW?a 到第 b 时都要执行Q其馀cL

?f1 ?*/n 时表C每 n 分钟个时间间隔执行一ơ,f2 ?*/n 表示?n 时个时间间隔执行一ơ,光cL

?f1 ?a, b, c,... 时表C第 a, b, c,... 分钟要执行,f2 ?a, b, c,... 时表C第 a, b, c...个小时要执行Q其馀cL

使用者也可以所有的讑֮先存攑֜档案 file 中,?crontab file 的方式来讑֮时程表?

例子 :

#每天早上7Ҏ行一?/bin/ls :

0 7 * * * /bin/ls

?12 月内, 每天的早?6 点到 12 点中Q每?个小时执行一?/usr/bin/backup :

0 6-12/3 * 12 * /usr/bin/backup

周一到周五每天下?5:00 寄一信l?alex@domain.name :

0 17 * * 1-5 mail -s "hi" alex@domain.name < /tmp/maildata

每月每天的午?0 ?20 ? 2 ?20 ? 4 ?20 ?...执行 echo "haha"

20 0-23/2 * * * echo "haha"

注意 :

当程序在你所指定的时间执行后Q系l会寄一信l你Q显CE序执行的内容,若是你不希望收到q样的信Q请在每一行空一g

后加?> /dev/null 2>&1 卛_

 

例子2 :

#每天早上6?0?

10 6 * * * date

#每两个小?

0 */2 * * * date

#晚上11点到早上8点之间每两个时Q早??

0 23-7/2Q? * * * date

#每个月的4号和每个C拜的礼拜一到礼拜三的早?1?

0 11 4 * mon-wed date

#1月䆾日早??

0 4 1 jan * date

范例

$crontab -l 列出用户目前的crontab.



prince 2007-10-26 11:14 发表评论
]]>
linux chmod命ohttp://www.aygfsteel.com/prince/archive/2007/07/21/131632.htmlprinceprinceSat, 21 Jul 2007 07:34:00 GMThttp://www.aygfsteel.com/prince/archive/2007/07/21/131632.htmlhttp://www.aygfsteel.com/prince/comments/131632.htmlhttp://www.aygfsteel.com/prince/archive/2007/07/21/131632.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/131632.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/131632.html指o名称 : chmod
使用权限 : 所有用?

使用方式 : chmod [-cfvR] [--help] [--version] mode file...

说明 : Linux/Unix 的档案存取权限分ZU?: 档案拥有者、群l、其他。利?chmod 可以藉以控制档案如何被他人所存取?

把计 :

mode : 权限讑֮字串Q格式如?: [ugoa...][[+-=][rwxX]...][,...]Q其中u 表示该档案的拥有者,g 表示与该档案的拥有者属于同一个群?group)者,o 表示其他以外的hQa 表示q三者皆是?
+ 表示增加权限? 表示取消权限? 表示唯一讑֮权限?
r 表示可读取,w 表示可写入,x 表示可执行,X 表示只有当该档案是个子目录或者该档案已经被设定过为可执行?
-c : 若该档案权限实已经更改Q才昄其更改动?
-f : 若该档案权限无法被更改也不要昄错误讯息
-v : 昄权限变更的详l资?
-R : 对目前目录下的所有档案与子目录进行相同的权限变更(即以递回的方式逐个变更)
--help : 昄辅助说明
--version : 昄版本

范例 :档?file1.txt 设ؓ所有h皆可d :
chmod ugo+r file1.txt

档?file1.txt 设ؓ所有h皆可d :
chmod a+r file1.txt

档?file1.txt ?file2.txt 设ؓ该档案拥有者,与其所属同一个群体者可写入Q但其他以外的h则不可写?:
chmod ug+w,o-w file1.txt file2.txt

?ex1.py 讑֮为只有该档案拥有者可以执?:
chmod u+x ex1.py

目前目录下的所有档案与子目录皆设ؓM人可d :
chmod -R a+r *

此外chmod也可以用数字来表C权限如 chmod 777 file
语法为:chmod abc file

其中a,b,c各ؓ一个数字,分别表示User、Group、及Other的权限?

r=4Qw=2Qx=1
若要rwx属性则4+2+1=7Q?
若要rw-属性则4+2=6Q?
若要r-x属性则4+1=7?

范例Q?
chmod a=rwx file

?
chmod 777 file

效果相同
chmod ug=rwx,o=x file

?
chmod 771 file

效果相同

若用chmod 4755 filename可此程式具有root的权?



prince 2007-07-21 15:34 发表评论
]]>
和openssh有关的东?/title><link>http://www.aygfsteel.com/prince/archive/2007/07/21/131631.html</link><dc:creator>prince</dc:creator><author>prince</author><pubDate>Sat, 21 Jul 2007 07:08:00 GMT</pubDate><guid>http://www.aygfsteel.com/prince/archive/2007/07/21/131631.html</guid><wfw:comment>http://www.aygfsteel.com/prince/comments/131631.html</wfw:comment><comments>http://www.aygfsteel.com/prince/archive/2007/07/21/131631.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/prince/comments/commentRss/131631.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/prince/services/trackbacks/131631.html</trackback:ping><description><![CDATA[在RHEL中将/etc/ssh/sshd_config的PermitRootLogin设ؓno便可以,q样能增强系l的相对安全性?br> <p style="FONT-SIZE: 10pt">一、安装和配置openssh server:<br>1 安装软g包(略)?br>2 OpenSSH服务器配|文Ӟ/etc/ssh/sshd_config<br>3 penSSH服务器状态:#service sshd status<br>4 启动/停止/重启enSSH serverQ?service sshd start/stop/restart<br>5 讄OpenSSH server默认启动Q?br>#chkconfig --level 35 sshd on<br>#ls /etc/rc3.d/|grep sshd<br>二、scpQ从q程L复制文g到本?br>#scp root@192.168.3.119:/etc/passwd .<br>三、sftpQ用ssh协议的ftp<br></p> <img src ="http://www.aygfsteel.com/prince/aggbug/131631.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/prince/" target="_blank">prince</a> 2007-07-21 15:08 <a href="http://www.aygfsteel.com/prince/archive/2007/07/21/131631.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>grub密码丢失http://www.aygfsteel.com/prince/archive/2007/07/20/131567.htmlprinceprinceFri, 20 Jul 2007 13:49:00 GMThttp://www.aygfsteel.com/prince/archive/2007/07/20/131567.htmlhttp://www.aygfsteel.com/prince/comments/131567.htmlhttp://www.aygfsteel.com/prince/archive/2007/07/20/131567.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/131567.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/131567.html[转] 已经通过本h上机试验

忘了 root 密码q可以通过修改 Grub q入单用h式来重置密码Q?忘了 Grub 密码怎么办呢Q?/p>

    a. q入Linux救援模式(resuce mode): 用光盘引导系l,?"boot>" 提示W后输入 "linux rescue" q回车即可?/p>

    b. 如果没有使用md5 加密Q?则直接查?修改 "/mnt/sysimage/boot/grub/grub.conf" ?"password xxxxxx" * 的密码或者直接删除这一句即? 如果是md5 加密q, 则修?"password  --md5 xxxxxxxxxxxxxxxxxx" 为明文密?修改?"password xxxxxx")或直接删除这一句即可?/p>

    c. ?"exit" 命o退?shell 后, pȝ自动重启Q?新设|即可生效?/p>

    * 当然Q?如果你运行了 "chroot /mnt/sysimage" 命o重设了根分区的话Q?对应路径则ؓ "/boot/grub/grub.conf"?



prince 2007-07-20 21:49 发表评论
]]>
grub讄密码http://www.aygfsteel.com/prince/archive/2007/07/20/131562.htmlprinceprinceFri, 20 Jul 2007 13:26:00 GMThttp://www.aygfsteel.com/prince/archive/2007/07/20/131562.htmlhttp://www.aygfsteel.com/prince/comments/131562.htmlhttp://www.aygfsteel.com/prince/archive/2007/07/20/131562.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/131562.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/131562.htmllinux?会看到GRUB引导,如果不设|密码很Ҏ被别人篡改root密码.
GRUB有两U加密方式,一U是lockQ一U是利用非明文加密,也就是md5 128位加密?br>[root@localhost /]# vi /etc/grub.conf
讄grub.conf
没有讄密码?

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-11.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-11.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.9-11.EL.img

password 明文讄密码
修改?

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
password=prince(prince讄的密?
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-11.EL)
 lock(q入linux旉要输入密?
        root (hd0,0)
        kernel /vmlinuz-2.6.9-11.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.9-11.EL.img

?q里GRUB密码讄为prince,lock意思是q入linux旉要输入密?/p>

 

lgrub加密密码

利用非明文加密,也就是md5 128位加?

md5加密方式

q行
# /sbin/grub-md5-crypt      (在grub中用Q?md5crypt)
输入你的密码Q如prince
生成一串东东, 是随即生的,要记下来.
然后d?grub.conf
改grub.conf成如?/p>

CODE:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
password --md5 $1$GexO3$iHhcfqlRE84s.2TyHN2l10 (加密后的密码)
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-11.EL)
 lock
        root (hd0,0)
        kernel /vmlinuz-2.6.9-11.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.9-11.EL.img



prince 2007-07-20 21:26 发表评论
]]>
rhel 忘记root密码修改Ҏhttp://www.aygfsteel.com/prince/archive/2007/07/20/131547.htmlprinceprinceFri, 20 Jul 2007 12:08:00 GMThttp://www.aygfsteel.com/prince/archive/2007/07/20/131547.htmlhttp://www.aygfsteel.com/prince/comments/131547.htmlhttp://www.aygfsteel.com/prince/archive/2007/07/20/131547.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/131547.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/131547.html[转]已经通过试

一、进入单用户模式
  1.使用Linux pȝ启动软盘
  如果你已创徏了Linux pȝ的启动Y盘,而且讄计算机系l从软盘启动Q当昄boot 提示W后输入Q?
  boot: linux single
  pȝq入了提C符?#8220;#”的单用户模式Q计机引导的运行别ؓ1Q本地文件系l被挂蝲Q很多系l服务没有运行,跌所有系l认证,是一个系l管理员使用特定的机器,?root 文gpȝ挂ؓdQ此时你可以使用Q?
  (1)passwd E序来设|root的新密码
  # passwd root
  # reboot
  重启pȝ后,root 密码已被更新?
  (2)通过修改 /etc/shadow 文gQ删除root 的密?
  # cd /etc
  # vi shadow
  以root 开头的一行中“rootQ?#8221;后和下一?#8220; Q?#8221;前的内容删除Q?
  W一行将cM?#8220;root Q:??”Q保存后重启pȝQroot 密码|ؓI?
  2.以LILO 多系l引导程序启?
  当系l以LILO 引导E序启动Ӟ在出现LILO 提示W时输入Q?
  LILO: linux single
  q入单用户后Q更改password 的方法同1?
  3.以GRUB 多系l引导程序启?
  用GRUB引导pȝq入单用h骤:
  (1) 启动GRUBQ选择Red Hat Linux的选项Q然后键?e 来编辑;
  (2) 选择以kernel开头的一行,再按e 键,在此行的末尾Q按I格键后输入singleQ以回R键来退出编辑模式;
  (3) 回到?GRUB 屏幕后,键入 b 来引D入单用户模式?
  q入单用户后Q更改password 的方法同1?
  二、用Linux pȝ安装?
  如果你既没做pȝ启动软盘Q同时多pȝ的引导LILO 和GRUB 又被删除(如重装了Windows pȝ?Q那么只能用Linux pȝ安装盘来恢复root 的密码?
  用第一张Linux pȝ安装盘启动,出现boot 提示W后输入Q?
 oot: linux rescue
  此时pȝq入救援模式Q然后根据提C完成:
  1.选择语言和键盘格式;
  2.选择是否配置|卡Q一般系l因|络不需要,所以可以选择否蟩q网卡配|;
  3 . 选择是否让系l查扄盘上的Redhat Linux pȝQ选择l箋Q?
  4.pȝ昄盘上的pȝ已经被找刎ͼq挂载在/mnt/sysimage 下;
  5.q入拯救状态,可重新设|root 的密码:
  # chroot/mnt/sysimage (让系l成为根环境)
  # cd /mnt/sysimage
  # passwd root

prince 2007-07-20 20:08 发表评论
]]>
SSH Secure ShelldRedHat AS中文q问题http://www.aygfsteel.com/prince/archive/2007/07/11/129564.htmlprinceprinceWed, 11 Jul 2007 03:42:00 GMThttp://www.aygfsteel.com/prince/archive/2007/07/11/129564.htmlhttp://www.aygfsteel.com/prince/comments/129564.htmlhttp://www.aygfsteel.com/prince/archive/2007/07/11/129564.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/129564.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/129564.htmlLANG=”zh_CN:UTF-8″

SUPPORTED="zh_CN.UTF-8:zh_CN:zh"

SYSFONT="latarcyrheb-sun16"

    修改成以下内容:

LANG="zh_CN.GB18030"

LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"

SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"

SYSFONT="latarcyrheb-sun16"



prince 2007-07-11 11:42 发表评论
]]>
PIX 配置命ohttp://www.aygfsteel.com/prince/archive/2007/05/21/118824.htmlprinceprinceMon, 21 May 2007 03:15:00 GMThttp://www.aygfsteel.com/prince/archive/2007/05/21/118824.htmlhttp://www.aygfsteel.com/prince/comments/118824.htmlhttp://www.aygfsteel.com/prince/archive/2007/05/21/118824.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/118824.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/118824.html本hҎ自己的日帔R要,记录一些有用的pix防火墙命令?br>
创徏讉K控制列表ACL。PIX提供outbound和apply两个命o来实现访问控制列表?br>outbound用来指定允许/拒绝操作、受影响的IP地址、端口号{。apply用来指定ACL应用的接口,
以及受限制的是源或目的等信息。例Q?br>outbound 10 deny 0 0 www tcp
outbound 10 permit 192.168.1.2 255.255.255.255 www tcp
apply (dmz1) 10 outgoing_src
要注意的是:outbound和apply后面的ID可一致?br>
保存配置。write memory?br>
开通pix       WEB理Q?br>1、http 192.168.1.0 255.255.255.0 inside(内网接口名称)
2、pdm location 192.168.1.0 255.255.255.0 inside
3、http server enable


prince 2007-05-21 11:15 发表评论
]]>
linux chown 命ohttp://www.aygfsteel.com/prince/archive/2007/05/05/115442.htmlprinceprinceSat, 05 May 2007 11:51:00 GMThttp://www.aygfsteel.com/prince/archive/2007/05/05/115442.htmlhttp://www.aygfsteel.com/prince/comments/115442.htmlhttp://www.aygfsteel.com/prince/archive/2007/05/05/115442.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/115442.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/115442.html指o名称   :   chown    
  使用权限   :   root    
   
  使用方式   :   chown   [-cfhvR]   [--help]   [--version]   user[:group]   file...    
   
  说明   :   利用   chown   可以档案的拥有者加以改变。这个指令只有是ql管理?root)所使用Q一般用者没有权限可以改变别人的档案拥有者,也没有权限可以自q档案拥有者改设ؓ别h。只有系l管理?root)才有q样的权限?nbsp;    
 
  参数Q? 
  -c?changeQ作用与-v怼Q但只传回修改的部分  
  -f?-quiet?-silentQ不昄错误信息  
  -h?-no-dereferenceQ只对符号链接的文g做修改,而不更改其他M相关文g  
  -R?recursiveQ递归处理Q将指定目录下的所有文件及子目录一q处? 
  -v?-verboseQ显C指令执行过E? 
  --dereferenceQ作用和-h刚好相反  
  --helpQ显C在U说? 
  --reference=<参考文件或目录>Q把指定文g或目录的所有者与所属组Q统l设|成和参考文件或目录的所有者与所属组相同  
  --versionQ显C版本信?/span>


prince 2007-05-05 19:51 发表评论
]]>
linux df命ohttp://www.aygfsteel.com/prince/archive/2007/05/03/115221.htmlprinceprinceThu, 03 May 2007 12:29:00 GMThttp://www.aygfsteel.com/prince/archive/2007/05/03/115221.htmlhttp://www.aygfsteel.com/prince/comments/115221.htmlhttp://www.aygfsteel.com/prince/archive/2007/05/03/115221.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/115221.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/115221.htmldf --help >/tmp/df.txt输出Q?br>
用法Qdf [选项]... [文g]...
昄每个<文g>所在的文gpȝ的信息,默认是显C所有文件系l?/p>

镉K项必须用的参数在用短选项时也是必ȝ?br>  -a, --all             包括大小?0 个块的文件系l?br>  -B, --block-size=大小 块以指定<大小>的字节ؓ单位
  -h, --human-readable  以容易理解的格式印出文gpȝ大小 (例如 1K 234M 2G)
  -H, --si              cM -hQ但?1000 的次方而不?1024
  -i, --inodes          昄 inode 信息而非块用量
  -k                    ?--block-size=1K
  -l, --local           只显C本机的文gpȝ
  --no-sync         取得使用量数据前不进?sync 动作 (默认)
  -P, --portability     使用 POSIX 输出格式
  --sync            取得使用量数据前先进?sync 动作
  -t, --type=cd       只印出指?lt;cd>的文件系l信?br>  -T, --print-type      印出文gpȝcd
  -x, --exclude-type=cd   只印Z是指?lt;cd>的文件系l信?br>  -v                    (此选项不作处理)
  --help     昄此帮助信息ƈd
  --version  昄版本信息q离开



prince 2007-05-03 20:29 发表评论
]]>
Cisco单臂路由http://www.aygfsteel.com/prince/archive/2006/12/01/84925.htmlprinceprinceFri, 01 Dec 2006 11:43:00 GMThttp://www.aygfsteel.com/prince/archive/2006/12/01/84925.htmlhttp://www.aygfsteel.com/prince/comments/84925.htmlhttp://www.aygfsteel.com/prince/archive/2006/12/01/84925.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/84925.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/84925.html Cisco单臂路由





路由器:
Cisco 2621

交换机: Cisco 1912

PC 机:两台

路由?/span> FastEthernet0/0 口—?/span> > 交换?/span> Fast Ethernet0/26 ?/span>

交换?/span> e0/2 口—?/span> >PC1

交换?/span> e0/3 口—?/span> >PC2

 

配置信息Q?/span>

讑֤

IP 地址

Cisco 2621 Route

F0/0.1(10.227.80.1/24)  F0/0.2(10.227.81.1/24)

Cisco 1912 Switch

VLAN 10 (10.227.80.0/24) —?/span> E0/2 ?/span>

VLAN 20 (10.227.81.0/24) —?/span> E0/3 ?/span>

Trunk 口—?/span> F0/26 ?/span>

PC1

10.227.80.11 255.255.255.0

PC2

10.227.81.11 255.255.255.0

 

路由器配|信息:

Router#show run

 

Building configuration...

 

!

Version 12.1

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname Router

!

!

!

ip subnet-zero

!

!

!

!

!

!

!

!

interface Serial0/0

 no ip address

 

          no ip directed-broadcast

 shutdown

!

interface FastEthernet0/0

 no ip address

 no ip directed-broadcast

 bandwidth 100000

!

interface FastEthernet0/0.1

 encapsulation isl 10

 ip address 10.227.80.1 255.255.255.0

!

interface FastEthernet0/0.2

 encapsulation isl 20

 ip address 10.227.81.1 255.255.255.0

!

interface FastEthernet0/1

 no ip address

 no ip directed-broadcast

 bandwidth 100000

 shutdown

!

!

ip classless

         no ip http server

!

!

!

!

line con 0

 transport input none

line aux 0

line vty 0 4

!

no scheduler allocate

end

 

交换机配|:

 

Building configuration...

Current configuration:

!

!

!

vlan 10 name VLAN0010

vlan 20 name VLAN0020

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

 

         !

interface Ethernet0/1

 

!

interface Ethernet0/2

 

  vlan-membership static 10

!

interface Ethernet0/3

 

  vlan-membership static 20

!

interface Ethernet0/4

 

!

interface Ethernet0/5

 

!

interface Ethernet0/6

 

!

interface Ethernet0/7

 

!

         interface Ethernet0/8

 

!

interface Ethernet0/9

 

!

interface Ethernet0/10

 

!

interface Ethernet0/11

 

!

interface Ethernet0/12

 

!

interface FastEthernet0/26

 

!

!

  trunk On

!

interface FastEthernet0/27

 

!

         !

line console

!

End

 

PC 机配|:

 

PC1 Q?/span>

  Boson BOSS 5.0 IP Configuration

     Ethernet adapter Local Area Connection:

        IP Address. . . . . . . . . . . . : 10.227.80.11

        Subnet Mask . . . . . . . . . . . : 255.255.255.0

        Default Gateway . . . . . . . . . : 10.227.80.1

 

PC2 Q?/span>

  Boson BOSS 5.0 IP Configuration

     Ethernet adapter Local Area Connection:

        IP Address. . . . . . . . . . . . : 10.227.81.11

        Subnet Mask . . . . . . . . . . . : 255.255.255.0

        Default Gateway . . . . . . . . . : 10.227.81.1

prince 2006-12-01 19:43 发表评论
]]>
常用sql语句http://www.aygfsteel.com/prince/archive/2006/09/20/70852.htmlprinceprinceWed, 20 Sep 2006 09:13:00 GMThttp://www.aygfsteel.com/prince/archive/2006/09/20/70852.htmlhttp://www.aygfsteel.com/prince/comments/70852.htmlhttp://www.aygfsteel.com/prince/archive/2006/09/20/70852.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/70852.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/70852.html --新徏数据?prince
 create database prince

--删除数据?prince
 drop database prince

--创徏?users

 CREATE TABLE users
 (
 ID int IDENTITY (3,1) PRIMARY KEY,
 username nvarchar (50),
 password varchar(100),
 SiteCount int
 )

注:
IDENTITY(3,1) 自动~号自增Q从3开始,每次自增1
PRIMARY KEY 表示该字Dؓ主键

--删除?br /> drop table users
  已l存在的表users删除

--表结构修?br /> 1、在已存在的表中增加新列
  alter table users add
   question nvarchar(100),
   answer nvarchar(100)
 2、在已存在的表中删除一?br />  alter table users drop column
   answerQ?br />   question
    删除answer,question两列
 3、修改表中一个字D늚属?br />  alter table users alter column answer int null

--查找表中的记?br /> select * from users
  列出users表中所有字D和所有数?/font>

 select username,password from users
  列出users表中username,password字段的所有记?/font>

 select * from users where username='prince'
  列出users表中usernamegؓprince的所有记?/font>

--d记录
 insert into users (username,password) values(prince,520929)
  向users表中d一条记录,更新username,password两个字段。id动编P不能d

--修改记录
 update prince set password='520618' where username='prince'
  修改username字段gؓprince的password字段Q将其D|ؓ520618

--删除表中记录
 delete from users
  删除表中所有记?/font>

 delete from users where username='prince'
  删除username字段gؓprince的所有字D?br />



prince 2006-09-20 17:13 发表评论
]]>
linux更改|络讄http://www.aygfsteel.com/prince/archive/2006/08/12/63148.htmlprinceprinceSat, 12 Aug 2006 03:31:00 GMThttp://www.aygfsteel.com/prince/archive/2006/08/12/63148.htmlhttp://www.aygfsteel.com/prince/comments/63148.htmlhttp://www.aygfsteel.com/prince/archive/2006/08/12/63148.html#Feedback1http://www.aygfsteel.com/prince/comments/commentRss/63148.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/63148.html
修改以下文g可以怹保存|络讄Q?/font>
ip:修改/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0<--讑֤
ONBOOT=yes<--是否自动启动
BOOTPROTO=static<--是否讄静态IP
IPADDR=xxx.xxx.xxx.xxx<--讄的IP
NETMASK=255.255.255.0<--讄的子|掩?br /> GATAWAY=192.168.1.1<--讄的网?br />
dns:修改/etc/resolv.conf

nameserver 202.100.96.68 <--DNS的设|?br /> 可以通过一下方式直接写入DNS
echo "nameserver 202.100.96.68">>/etc/resolv.conf

 
netbios:修改/etc/hosts
修改计算机名UC?etc/sysconfig/network中的HOSTNAME
修改完成后下ơ计机重新启动时生效,如果想ɾ|络配置立即生效Q?/font>
q行service network restart
或者运?/etc/init.d/network restart
 
 
q行以下操作可以临时保存|络讄Q?/font>
netconfig命o可以打开|络配置H口Q比较方?但需要重新启动网l服务来使设|生效,或者用下面的命oQ?/font>
ifconfig eth0 10.138.1.1 broadcast 10.138.255.255 netmask 255.255.0.0
route add default gw 10.138.1.254 eth0
q行q些命o|络讄的更改即时生效?/font>
 
启动和禁用网卡:
ifup eth0            //enable NIC       
ifdown eth0          //disable NIC
 
察看|络讄Q?/font>
ifconfig          //察看ip和netmask
route             //察看路由?br /> cat /etc/resolv.conf
   //察看dns


prince 2006-08-12 11:31 发表评论
]]>
单模光纤与多模光U?/title><link>http://www.aygfsteel.com/prince/archive/2006/07/05/56781.html</link><dc:creator>prince</dc:creator><author>prince</author><pubDate>Wed, 05 Jul 2006 07:41:00 GMT</pubDate><guid>http://www.aygfsteel.com/prince/archive/2006/07/05/56781.html</guid><wfw:comment>http://www.aygfsteel.com/prince/comments/56781.html</wfw:comment><comments>http://www.aygfsteel.com/prince/archive/2006/07/05/56781.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/prince/comments/commentRss/56781.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/prince/services/trackbacks/56781.html</trackback:ping><description><![CDATA[ <font size="2">按传输模式分 <br />按光在光U中的传输模式可分ؓQ单模光U和多模光纤?<br /><br />多模光纤的纤芯直径ؓ50~62.5μmQ包层外直径125μmQ单模光U的U芯直径?.3μmQ包层外直径125μm。光U的工作波长有短波长0.85μm、长波长1.31μm?.55μm。光U损耗一般是随L长加长而减,0.85μm的损耗ؓ2.5dB/km,1.31μm的损耗ؓ0.35dB/kmQ?.55μm的损耗ؓ0.20dB/kmQ这是光U的最低损耗,波长1.65μm以上的损耗趋向加大。由于OHˉ的吸收作用,0.90~1.30μm?.34~1.52μm范围内都有损耗高峎ͼq两个范围未能充分利用?0q代P們֐于多用单模光U,而且先用长L?.31μm?<br /><br />多模光纤 <br />多模光纤(Multi Mode Fiber)Q中心玻璃芯较粗(50?2.5μm)Q可传多U模式的光。但其模间色散较大,q就限制了传输数字信L频率Q而且随距ȝ增加会更加严重。例如:600MB/KM的光U在2KM时则只有300MB的带宽了。因此,多模光纤传输的距d比较q,一般只有几公里?<br /><br />单模光纤 <br />单模光纤(Single Mode Fiber)Q中心玻璃芯很细(芯径一般ؓ9?0μm)Q只能传一U模式的光。因此,其模间色散很,适用于远E通讯Q但q存在着材料色散和LD散,q样单模光纤对光源的谱宽和稳定性有较高的要求,卌宽要H,E_性要好。后来又发现?.31μm波长处,单模光纤的材料色散和波导色散一为正、一Q大也正好相等。这是说在1.31μm波长处,单模光纤的总色散ؓ零。从光纤的损耗特性来看,1.31μm处正好是光纤的一个低损耗窗口。这P1.31μm波长区就成了光纤通信的一个很理想的工作窗口,也是现在实用光纤通信pȝ的主要工作LDc?.31μm常规单模光纤的主要参数是由国际电信联盟ITUQT在G652中确定的Q因此这U光U又UG652光纤?/font> <img src ="http://www.aygfsteel.com/prince/aggbug/56781.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/prince/" target="_blank">prince</a> 2006-07-05 15:41 <a href="http://www.aygfsteel.com/prince/archive/2006/07/05/56781.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux 中的 vi~辑器?/title><link>http://www.aygfsteel.com/prince/archive/2006/06/21/54284.html</link><dc:creator>prince</dc:creator><author>prince</author><pubDate>Wed, 21 Jun 2006 07:55:00 GMT</pubDate><guid>http://www.aygfsteel.com/prince/archive/2006/06/21/54284.html</guid><wfw:comment>http://www.aygfsteel.com/prince/comments/54284.html</wfw:comment><comments>http://www.aygfsteel.com/prince/archive/2006/06/21/54284.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/prince/comments/commentRss/54284.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/prince/services/trackbacks/54284.html</trackback:ping><description><![CDATA[ <font size="2"> <strong>vi~辑器用方法:</strong> <br /> </font> <strong> <font size="2">1、如何调用vi<br /></font> </strong> <font face="Courier New" size="2">[root@localhost ~]# vi filename<br /><strong><br />2、vi的三U命令模?br /></strong>CommandQ命令)模式Q用于输入命令;<br />InsertQ插入)模式Q用于插入文本;<br />VisualQ可视)模式Q用于视化的的高亮ƈ选定正文Q?br /><strong>3?/strong><font size="3"><font size="2"><strong>文g的保存和退?br /></strong></font><font size="2">Command 模式是vi或vim的默认模式,如果我们处于其它命o模式Ӟ要通过ESC键切换过来?br /></font><font size="2">当我们按ESC键后Q接着再输?hQvi会在屏幕的最下方{待我们输入命oQ?br /></font></font>:w 保存Q?br />:w filename 另存为filenameQ?br />:wq! 保存退出;<br />:wq! filename 注:以filename为文件名保存后退出;<br />:q! 不保存退出;<br />:x 应该是保存ƈ退?Q功能和:wq!相同<br /><strong><br />4、光标移?br /></strong>当我们按ESCq入Command模式后,我们可以用下面的一些键位来Ud光标Q?br />j 向下Ud一行;<br />k 向上Ud一行;<br />h 向左Ud一个字W;<br />l 向右Ud一个字W;<br />ctrl+b 向上Ud一屏;<br />ctrl+f 向下Ud一屏;<br />向上头 向上UdQ?br />向下头 向下UdQ?br />向左头 向左UdQ?br />向右头 向右UdQ?br />我们~辑一个文件时Q对?j、k、l和h键,q能在这些动作命令的前面加上数字Q比?3jQ表C向下移?行?br /><strong><br />5、插入模式(文本的插入)<br /></strong>i 在光标之前插入;<br />a 在光标之后插入;<br />I 在光标所在行的行首插入;<br />A 在光标所在行的行末插入;<br />o 在光标所在的行的上面插入一行;<br />O 在光标所在的行的下面插入一行;<br />s 删除光标后的一个字W,然后q入插入模式Q?br />S 删除光标所在的行,然后q入插入模式Q?br /><strong><br />6、文本内容的删除操作<br /></strong>x 一个字W;<br />#x 删除几个字符Q?表示数字Q比?xQ?br />dw 删除一个单词;<br />#dw 删除几个单词Q?用数字表C,比如3dw表示删除三个单词Q?br />dd 删除一行;<br />#dd 删除多个行,#代表数字Q比?dd 表示删除光标行及光标的下两行Q?br />d$ 删除光标到行内容Q?br />J 清除光标所处的行与上一行之间的I格Q把光标行和上一行接在一P<br /><strong><br />7、恢复修改及恢复删除操作</strong><br />u 撤消修改或删除操作;<br />按ESC键返回CommandQ命令)模式Q然后按u键来撤消删除以前的删除或修改Q如果您x消多个以前的修改或删除操作,h多按几次u。这和Word的撤消操作没有太大的区别Q?br /><strong><font color="#000000"><br />8、复制和_帖的操?br /></font></strong><font color="#000000">其实删除也带有剪切的意思,当我们删除文字时Q可以把光标Ud到某处,然后按shift+p键就把内容脓在原处,然后再移动光标到某处Q然后再按p或shift+p又能贴上Q?br />p 在光标之后粘帖;<br />shift+p 在光标之前粘?br /></font><b><font color="#000000">来D一例:<br /></font></b><font color="#000000">如我们想把一个文档的W三行复制下来,然后帖到W五行的后面Q我们应该怎么做呢Q?br /></font><b><font color="#000000">有两U方法;<br /></font></b><font color="#000000">W一U方法:<br /></font><font color="#000000">先把W三行删除,把光标移动到W三行处Q然后用dd动作Q接着再按一下shift+p键。这样就把刚才删除的W三行帖在原处了?br /></font><font color="#000000">接着我们再用k键移动光标到W五行,然后再按一下p键,q样把W三行的内容又帖到第五行的后面了Q?br /></font><font color="#000000">W二U方法;<br /></font><font color="#000000">q入可视模式Q按ESC键,然后按v键。移动鼠标指针,选中W三行的内容Q然后按y键复Ӟ再移动指针到W五行,最后按p键;<br /></font><font color="#ff0000">所以复制和_脓操作Q是命o模式、插入模式及可视模式的综合运用;我们要学会各U模式之间的切换Q要常用ESC键;更ؓ重要的学会在命o模式下移动光标;</font></font> <img src ="http://www.aygfsteel.com/prince/aggbug/54284.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/prince/" target="_blank">prince</a> 2006-06-21 15:55 <a href="http://www.aygfsteel.com/prince/archive/2006/06/21/54284.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>AIX技?如何查看操作pȝ中是否安装了某个补丁E序http://www.aygfsteel.com/prince/archive/2006/06/12/52262.htmlprinceprinceMon, 12 Jun 2006 10:38:00 GMThttp://www.aygfsteel.com/prince/archive/2006/06/12/52262.htmlhttp://www.aygfsteel.com/prince/comments/52262.htmlhttp://www.aygfsteel.com/prince/archive/2006/06/12/52262.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/52262.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/52262.html使用命o:
lslpp -Bl Uxxxxxx
Uxxxxxx 是补丁程序的ID.
? lslpp -Bl U465241 命o可用于查看系l中是否安装了ID为U4652241的补丁程?


prince 2006-06-12 18:38 发表评论
]]>
局域网Q学习一Q?/title><link>http://www.aygfsteel.com/prince/archive/2006/04/13/40867.html</link><dc:creator>prince</dc:creator><author>prince</author><pubDate>Thu, 13 Apr 2006 04:55:00 GMT</pubDate><guid>http://www.aygfsteel.com/prince/archive/2006/04/13/40867.html</guid><wfw:comment>http://www.aygfsteel.com/prince/comments/40867.html</wfw:comment><comments>http://www.aygfsteel.com/prince/archive/2006/04/13/40867.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/prince/comments/commentRss/40867.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/prince/services/trackbacks/40867.html</trackback:ping><description><![CDATA[ <p> <font size="2">一、局域网的特征:</font> </p> <p> <font size="2">  局域网分布范围,投资,配置单等Q具有如下特征:<br />  1Q传输速率高:一般ؓ1Mbps--20MbpsQ光U高速网可达100MbpsQ?000MbpS<br />  2Q支持传输介质种cd?br />  3Q通信处理一般由|卡完成?br />  4Q传输质量好Q误码率低?br />  5Q有规则的拓扑结构?br />   <br />二、局域网的组成:<br />  <br /><br />         局域网一般由服务器,用户工作站,传输介质四部分组成?br />  1Q服务器Q?br />  q行|络0SQ提供硬盘、文件数据及打印机共享等服务功能Q是|络控制的核心?br />  从应用来说较高配|的普?86以上的兼Ҏ都可以用于文件服务器Q但从提高网l的整体性能Q尤其是从网l的pȝE_性来_q是选用专用服务器ؓ宜?br />  目前常见的NOS主要有NetwareQUnix和Windows NT三种?br />  NetwareQ?br />  行版本V3.12QV4.11QV5.0Q对g要求低,应用环境与DOS怼Q技术完善,可靠Q支持多U工作站和协议,适于局域网操作pȝQ作为文件服务器Q打印服务器性能好?br />  UnixQ一U典型的32位多用户的NOSQ主要应用于񔞮型机,大型ZQ目前常用版本有Unix SUR4.0。支持网l文件系l服务,提供数据{应用,功能强大Q不易掌握,命o复杂Q由AT&T和SCO公司推出?br />  Windows NT Server 4.0Q?br />  一U面向分布式囑Ş应用E序的完整^台系l,界面与Win95怼Q易于安装和理Q且集成了Internet|络理工具Q前景广阔?br />  服务器分为文件服务器Q打印服务器Q数据库服务器,在Internet|上Q还有WebQFTPQE—mail{服务器?br />  |络0S朝着能支持多U通信协议Q多U网卡和工作站的方向发展?br />  2Q工作站Q可以有自己?SQ独立工作;通过q行工作站网lYӞ讉KServer׃n资源Q常见有DOS工作站,Windows95工作站?br />  3Q网卡:工作站式服务器q到|络上,实现资源׃n和相互通信Q数据{换和电信号匹配?br />  |卡(NTC)的分c:<br />  (1)速率Q?0MbpsQ?00Mbps<br />  (2)ȝcdQISAQPCI<br />  (3)传输介质接口Q?br />  单口QBNC(l缆)或RJ一45(双绞U?<br />  4Q传输介质:目前常用的传输介质有双绞U,同u늼Q光U等?br />  (1)双绞U?TP)Q?br />  一对以上的双绞U封装在一个绝~外套中Qؓ了降低干扎ͼ每对怺扭绕而成。分为非屏蔽双绞U?UTP)和屏蔽双l线(STP)Q局域网中UTP分ؓ3c,4c,5cd?cdU?br />  以AMP公司ZQ?br />  3c:10MbpsQ皮薄,皮上注“cat3’,׃注?cZ,305cI,400元/?br />  4c:|络中用的不?br />  5c:(?c?100MbpsQ?0MbpsQ皮厚,匝密Q皮上注“cat5”,׃?c,305cI,600?00元/?每段100cI?个中l器Q最?00c?<br />  <br />接线序Q?正常Q?白桔 ?白绿 ?白蓝 l?白棕 ?br />1 2 3 4 5 6 7 8<br />集联Q?白绿 l?白桔 ?白棕 ?白蓝 ?br />1 2 3 4 5 6 7 8<br />  STPQ内部与UTP相同Q外包铝,AppleQIBM公司|络产品要求使用STP双绞U,速率高,hc?br />  (2)同u늼Q?br />  ׃根空心的外圆柱导体和一根位于中心uU的内导U组成,两导体间用绝~材料隔开?br />  按直径分为粗~和l缆?br />  _缆Q传输距长Q性能高但成本高,使用于大型局域网q线Q连接时两端需l接器?br />  A._缆与外部收发器相连?br />  BQ收发器与网卡之间用AUI늼相连?br />  CQ网卡必LAUI接口Q每D?00cI100个用P4个中l器可达2500cI收发器之间最?.5cI收发器电~最?0c?br />  l缆Q传输距ȝQ相对便宜,用T型头Q与BNC|卡相连Q两端安50Ƨ终端电阅R?br />  每段185cI4个中l器Q最?25cI每段30个用PT型头之间最?.5c?br />按传输频带分为基带和宽带传输?br />  基带Q数字信P信号占整个信道,同一旉内能传送一U信受?br />  宽带Q传送的是不同频率的信号?br />  (3)光纤Q?br />  应用光学原理Q由光发送机产生光束Q将电信号变为光信号Q再把光信号导入光纤Q在另一端由光接收机接收光纤上传来的光信Pq把它变为电信号Q经解码后再处理。分为单模光U和多模光纤。绝~保密性好?br />  单模光纤Q由Ȁ光作光源Q仅有一条光通\Q传输距长Q?公里以上?br />  多模光纤Q由二极发光,低速短距离Q?公里以内?br />  三、计机|络软g体系Q?br />  四、局域网的几U工作模式:<br />  1Q专用服务器l构Q?Server—Baseb)<br />  又称为“工作站Q文件服务器”结构,pq台微机工作站与一台或多台文g服务器通过通信U\q接hl成工作站存取服务器文gQ共享存储设备?br />  文g服务器自然以׃n盘文gZ要目的?br />对于一般的数据传递来说已l够用了Q但是当数据库系l和其它复杂而被不断增加的用户用的应用pȝ到来的时候,服务器已l不能承担这Ld了,因ؓ随着用户的增多,为每个用h务的E序也增多,每个E序都是独立q行的大文gQ给用户感觉极慢Q因此生了客户机/服务器模式?br />  2Q客h/服务器模式:(clientQserver)<br />  其中一台或几台较大的计机集中q行׃n数据库的理和存取,UCؓ服务器,而将其它的应用处理工作分散到|络中其它微ZdQ构成分布式的处理系l,服务器控制管理数据的能力q文g理方式上升为数据库理方式Q因此,C/Sq服务器也UCؓ数据库服务器Q注重于数据定义及存取安全后备及q原Qƈ发控制及事务理Q执行诸如选择索和索引排序{数据库理功能Q它有够的能力做到把通过其处理后用户所需的那一部分数据而不是整个文仉过|络传送到客户机去Q减M|络的传输负荗CQSl构是数据库技术的发展和普遍应用与局域网技术发展相l合的结果?br />  3.对等式网l:QPeer—to—Peer)<br />  在拓扑结构上与专用Server与CQS相同。在对等式网l结构中Q没有专用服务器Q每一个工作站既可以v客户Z用也可以h务器作用?/font> </p> <img src ="http://www.aygfsteel.com/prince/aggbug/40867.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/prince/" target="_blank">prince</a> 2006-04-13 12:55 <a href="http://www.aygfsteel.com/prince/archive/2006/04/13/40867.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>SYBASE 11.0.0 For SCO Unix 安装手册http://www.aygfsteel.com/prince/archive/2006/04/03/38913.htmlprinceprinceMon, 03 Apr 2006 04:56:00 GMThttp://www.aygfsteel.com/prince/archive/2006/04/03/38913.htmlhttp://www.aygfsteel.com/prince/comments/38913.htmlhttp://www.aygfsteel.com/prince/archive/2006/04/03/38913.html#Feedback0http://www.aygfsteel.com/prince/comments/commentRss/38913.htmlhttp://www.aygfsteel.com/prince/services/trackbacks/38913.html Q{载:学习Q?br /> 作者:SYBASE 11.0.0 For SCO Unix 安装手册
SYBASE SYSTEM 11.0.0 for SCO UNIX 5.0.5
????
1.首先必须定|卡已正地配置在系l上?
2.以rootdQ用scoadmin命o创徏Sybase用户Q组属ؓSybase
定上述二部骤无误之后,我们可以转入一阶段地安装工作?
3.login:root
# divvy
pȝ 子分Q试举例Q?
NameTypeNew Fs#Fist BlockLast Block
bootEAFSno0019999
swapNON FSno120000109999
rootHTFSno211000709999
/uHTFSno37100001309999
raw1NON FSno4Q-
raw2NON FSno5Q-
recoverNON FSno621104542110463
hd0WHOLE DISKno702111471
raw1和raw2是Sybase的数据库讑֤实际存放的物理设备名U。raw1用来存放数据库,raw2用来存放事务日志?
在这里我们正地分配raw1和raw2的大:
假设我们定义raw1=600M, raw2=200m?
nName or renawe a divishon
cCredit a new file system on this divison
tSelect or change filesystem type on new filesystem
pPrevent a new file system from being crented on the division
sStart a division on a different block
eEnd a division on a different block
rRestore the original division table
Enter you choice or q to Quit_____ n ?
Whick division (o through 7)Q?4 ?
What do your want to call it?Qraw1 ?
定义起始块,按需要设定v始块Q?
Enter you choice or q QuitQ?S ?
Whick division ? Q? ?
Start number blockQ?310000 ?
Q徏议:boot 的大ؓ20MBQu文gpȝ的大ؓ500MBQ?
同上Q如此类推定义raw2后,屏幕应提C?
NameTypeNew Fs#Fist BlockLast Block
bootEAFSno0019999
swapNON FSno120000109999
rootHTESno211000709999
/uEAFSno37100001309999
raw1NON FSno413100001910000
raw2NON FSno519100012110001
recoverNON FSno621104542110463
hd0aWHOLE DISKno702111471
Enter you choice or q to Quit q ?
pȝ提示Q?
iInstall the division set_up shown
rRetarn to the previous menu
eexit without installing a division table
Enter your choice or q to Quit i ?
然后Q准备物理设备raw1, raw2Q在root下将raw1, rraw1, raw2, rraw2的属性及l名更改为sybaseQƈ且权限ؓ666
# cd dev ?
# chown sybase raw* rraw* ?
# chgrp sybase raw* rraw* ?
# chmod 666 raw* rraw* ?
然后退ZSybase用户dpȝ
$ mkdir install ?
$ cd install ?
$ tar xv6 sco_kernel.scr ?
把光盘插入CD_ROM它安装q文件系l,以rootd?
# mount /dev/cd0 /mnt ?
再次以Sybase用户dQ?
$ cd /mnt
$ sybload QD ?
current directory is "/mnt"讄安装的\?
Is this the correct directory for installation?
If so, Please enter 'y' or 'n' : n ?
Please specify the correct installation directory here
A null entry will terminate this installation: /u/sybase ?
Current directory is "/u/Sybase"
Is this the correct directory for installation?
If so, Please enter 'Y' or 'Y' : y
讄安装的方式:Is this a local or Remote in installation, as defined in your installation Guide?
Please enter L for Local or R for Remote.
> L ?
Please enter the full name of the disk file of the global archive : > /mnt/sybimage ?
Yor specified /mnt/sybimage for the media device, Is this correct? Please enter 'y' or 'Y' to continue: y
紧跟随着pȝ会提示你输入Sybase产品的序列号QCASQ:
CASQDVBYBY SOKOBY BYBYBD BYBKBK BZTWLO BJVL ?
正确输入序列号后Q会提供一串可供安装的菜单?
选择1QSybase 11.0之后回R
可把光盘上的Sybase安装?u/Sybase之下?
xQSybase已安装至盘上面Q我们可以进行设|方面地工作?
$ pwd ?$/mnt
$ cd.. ?退出mnt目录?
首先, 要把?mnt下的sybase拆卸?我们以rootd,执行# umount /dev/cd0 ?卛_
然后# cd /u/sybase/install ?“设|环境变量?
# SYBASE = /u/sybase; export SYBASE ?
增大SHMMAX的大?
# 重新链接内核 sh ./sco_kernel.scr sybase ?
# cd /etc/conf/cf.d ?
# vi stune
删掉MAXPMEM 0该行后,存盘退?
# vi mtune
修改NAIOHBUF该行Q将50修改?00后,存盘退?
# cd /etc/conf/pack.d /itimer ?
# cp space.c.presyb space.c ?
# vi space.c
修改该行int alarm_accuracy设ؓ{于-1Q?
# cd /usr/lib
# cp aiomemlock. presyb aiomemlock ?
# vi aiomemlock Q在该文件末增加一行sybase 28000000Q?
# cd /etc/conf/sdevice.d
# vi aio
该文g重覆的两行删掉一行后Q存盘退?
# vi suds
suds该行的NQ改为Y后存盘退?
# cd /etc/rc2.d
# vi S99*
?字符下一行的行首加入一句: /etc/suds_ctrl -a 100
?00为Sybase的组P做完此步之后
链接内核重新启动后,重新q入Sybase用户
$ cd install
$ sybinit
此时Q请参考附?Q将参数讄正确Q提C安装成功即可?






附页1

注:在下文中每屏信息由横UK开Q在中在gؓ输入|MASTER讑֤为raw1.
Sybase的主目录?u/sybase


SYBINIT

1. Release directory: /u/sybase

2. Edit / View Interfaces File

3. Configure a Server product
4. Configure an Open Client/Server product
5. Configure a Front End product


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:  
----------------------------------------------------------------------------

CONFIGURE SERVER PRODUCTS

Product Date Installed Date Configured
1. SQL Server Jun 09 96 14:35 Jun 13 96 17:30
2. Backup Server Jun 09 96 14:35 Jun 13 96 17:32


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:  
----------------------------------------------------------------------------

NEW OR EXISTING SQL SERVER

1. Configure a new SQL Server
2. Configure an existing SQL Server


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:  
----------------------------------------------------------------------------

ADD NEW SQL SERVER

1. SQL Server name:SYBASE


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the name of the new SQL Server (default is 'SYBASE'):  
----------------------------------------------------------------------------


ADD NEW SQL SERVER

1. SQL Server name:SYBASE


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
----------------------------------------------------------------------------

SQL SERVER CONFIGURATION

1. CONFIGURE SERVER'S INTERFACES FILE ENTRY Incomplete

2. MASTER DEVICE CONFIGURATION Incomplete
3. SYBSYSTEMPROCS DATABASE CONFIGURATION Incomplete
4. SET ERRORLOG LOCATION Incomplete
5. CONFIGURE DEFAULT BACKUP SERVER Incomplete

6. CONFIGURE LANGUAGES Incomplete
7. CONFIGURE CHARACTER SETS Incomplete
8. CONFIGURE SORT ORDER Incomplete

9. ACTIVATE AUDITING Incomplete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
----------------------------------------------------------------------------

SERVER INTERFACES FILE ENTRY SCREEN

Server name: SYBASE

1. Retry Count: 0
2. Retry Delay: 0

3. Add a new listener service


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
Enter the retry count (default is '0'):  
----------------------------------------------------------------------------


SERVER INTERFACES FILE ENTRY SCREEN

Server name: SYBASE

1. Retry Count: 3
2. Retry Delay: 0

3. Add a new listener service


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
Enter the delay interval between retries (default is '0'):  
----------------------------------------------------------------------------


SERVER INTERFACES FILE ENTRY SCREEN

Server name: SYBASE

1. Retry Count: 3
2. Retry Delay: 3

3. Add a new listener service


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
----------------------------------------------------------------------------

EDIT TCP SERVICE

1. Hostname/Address: credit.credit.COM
2. Port:
3. Name Alias:

4. Delete this service from the interfaces entry



Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
Enter the port number to use for this entry (default is ''):
----------------------------------------------------------------------------
EDIT TCP SERVICE

1. Hostname/Address: credit.credit.COM
2. Port: 7371
3. Name Alias:

4. Delete this service from the interfaces entry



Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
Is this information is correct?  
----------------------------------------------------------------------------


SERVER INTERFACES FILE ENTRY SCREEN

Server name: SYBASE

1. Retry Count: 3
2. Retry Delay: 3

3. Add a new listener service

Modify or delete a service

Listener services available:

Protocol Address Port Name Alias
4. tcp credit.credit.COM 7371



Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
Write the changes to the interfaces file now?
----------------------------------------------------------------------------

SQL SERVER CONFIGURATION

1. CONFIGURE SERVER'S INTERFACES FILE ENTRY Complete

2. MASTER DEVICE CONFIGURATION Incomplete
3. SYBSYSTEMPROCS DATABASE CONFIGURATION Incomplete
4. SET ERRORLOG LOCATION Incomplete
5. CONFIGURE DEFAULT BACKUP SERVER Incomplete

6. CONFIGURE LANGUAGES Incomplete
7. CONFIGURE CHARACTER SETS Incomplete
8. CONFIGURE SORT ORDER Incomplete

9. ACTIVATE AUDITING Incomplete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
----------------------------------------------------------------------------

MASTER DEVICE CONFIGURATION

1. Master Device:  

2. Size (Meg): 29.299805
(QMaster Device最好放在裸讑֤/dev/rraw1?

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
----------------------------------------------------------------------------

MASTER DEVICE CONFIGURATION

1. Master Device:  
2. Size (Meg): 29.299805



Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
Enter the size of the SQL sever's master device in megabutesQ?0
----------------------------------------------------------------------------------

MASTER DEVICE CONFIGURATION

1. Master Device:  
2. Size (Meg): 40


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
----------------------------------------------------------------------------------
SQL SERVER CONFIGURATION

1. CONFIGURE SERVER'S INTERFACES FILE ENTRY Complete

2. MASTER DEVICE CONFIGURATION Complete
3. SYBSYSTEMPROCS DATABASE CONFIGURATION Incomplete
4. SET ERRORLOG LOCATION Incomplete
5. CONFIGURE DEFAULT BACKUP SERVER Incomplete

6. CONFIGURE LANGUAGES Incomplete
7. CONFIGURE CHARACTER SETS Incomplete
8. CONFIGURE SORT ORDER Incomplete

9. ACTIVATE AUDITING Incomplete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
---------------------------------------------------------------------------

SYBSYSTEMPROCS DATABASE CONFIGURATION

1. sybsystemprocs database size (Meg): 16

2. sybsystemprocs logical device name: sysprocsdev

3. create new device for the sybsystemprocs database: yes

4. physical name of new device:

5. size of the new device (Meg): 16



Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
Enter the physical device name for the sybsystemprocs database:  
Q徏议:sybsystemprocs database攑֜裸设?dev/rraw2下)
---------------------------------------------------------------------------

SYBSYSTEMPROCS DATABASE CONFIGURATION

1. sybsystemprocs database size (Meg): 16

2. sybsystemprocs logical device name: sysprocsdev

3. create new device for the sybsystemprocs database: yes

4. physical name of new device: /u/sybase/data/sysprocs.dat

5. size of the new device (Meg): 16


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
----------------------------------------------------------------------------

SQL SERVER CONFIGURATION

1. CONFIGURE SERVER'S INTERFACES FILE ENTRY Complete

2. MASTER DEVICE CONFIGURATION Complete
3. SYBSYSTEMPROCS DATABASE CONFIGURATION Complete
4. SET ERRORLOG LOCATION Incomplete
5. CONFIGURE DEFAULT BACKUP SERVER Incomplete

6. CONFIGURE LANGUAGES Incomplete
7. CONFIGURE CHARACTER SETS Incomplete
8. CONFIGURE SORT ORDER Incomplete

9. ACTIVATE AUDITING Incomplete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
---------------------------------------------------------------------------

SET ERRORLOG LOCATION

1. SQL Server errlrlog: /u/sybase/install/errorlog



Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
---------------------------------------------------------------------------

SQL SERVER CONFIGURATION

1. CONFIGURE SERVER'S INTERFACES FILE ENTRY Complete

2. MASTER DEVICE CONFIGURATION Complete
3. SYBSYSTEMPROCS DATABASE CONFIGURATION Complete
4. SET ERRORLOG LOCATION Complete
5. CONFIGURE DEFAULT BACKUP SERVER Incomplete

6. CONFIGURE LANGUAGES Incomplete
7. CONFIGURE CHARACTER SETS Incomplete
8. CONFIGURE SORT ORDER Incomplete

9. ACTIVATE AUDITING Incomplete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
---------------------------------------------------------------------------

SET THE SQL SERVER'S BACKUP SERVER

1. SQL Server Backuup Server name: SYB_BACKUP


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
----------------------------------------------------------------------------

SQL SERVER CONFIGURATION

1. CONFIGURE SERVER'S INTERFACES FILE ENTRY Complete

2. MASTER DEVICE CONFIGURATION Complete
3. SYBSYSTEMPROCS DATABASE CONFIGURATION Complete
4. SET ERRORLOG LOCATION Complete
5. CONFIGURE DEFAULT BACKUP SERVER Complete

6. CONFIGURE LANGUAGES Incomplete
7. CONFIGURE CHARACTER SETS Incomplete
8. CONFIGURE SORT ORDER Incomplete

9. ACTIVATE AUDITING Incomplete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
---------------------------------------------------------------------------

CONFIGURE LANGUAGES

Current default language: us_english
Current default character set: ISO 8859-1 (Latin-1) - Westen European
8-bitcharacter set.
Current sort order: Binary ordering, for the ISO 8859/1 or Latin-1
character set (iso_1).

Select the language you want to install, remove, or designate as the default
language.

Language Installed? Remove Install Make default
1. us_english yes no no yes



Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:

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

SQL SERVER CONFIGURATION

1. CONFIGURE SERVER'S INTERFACES FILE ENTRY Complete

2. MASTER DEVICE CONFIGURATION Complete
3. SYBSYSTEMPROCS DATABASE CONFIGURATION Complete
4. SET ERRORLOG LOCATION Complete
5. CONFIGURE DEFAULT BACKUP SERVER Complete

6. CONFIGURE LANGUAGES Complete
7. CONFIGURE CHARACTER SETS Incomplete
8. CONFIGURE SORT ORDER Incomplete

9. ACTIVATE AUDITING Incomplete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
---------------------------------------------------------------------------

CONFIGURE CHARACTER SETS

Current default language: us_english
Current default character set: ISO 8859-1 (Latin-1) - Westen European
8-bitcharacter set.
Current sort order: Binary ordering, for the ISO 8859/1 or Latin-1
character set (iso_1).

Select the character set you want to install, remove, or designate as the
default character set.

Character set Installed? Remove Install Make default
1. ASCII, for use with unsp yesno no no
2. Code Page 437, (United S nono no no
3. Code Page 850 (Multiling nono no no
4. ISO 8859-1 (Latin-1) - W yesno no yes
5. Macintosh default charac nono no no
6. Hewlett-Packard propriet nono no no


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
----------------------------------------------------------------------------

SQL SERVER CONFIGURATION

1. CONFIGURE SERVER'S INTERFACES FILE ENTRY Complete

2. MASTER DEVICE CONFIGURATION Complete
3. SYBSYSTEMPROCS DATABASE CONFIGURATION Complete
4. SET ERRORLOG LOCATION Complete
5. CONFIGURE DEFAULT BACKUP SERVER Complete

6. CONFIGURE LANGUAGES Complete
7. CONFIGURE CHARACTER SETS Complete
8. CONFIGURE SORT ORDER Incomplete

9. ACTIVATE AUDITING Incomplete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
---------------------------------------------------------------------------

CONFIGURE SORT ORDER
Current default language: us_english
Current default character set: ISO 8859-1 (Latin-1) - Westen European
8-bitcharacter set.
Current sort order: Binary ordering, for the ISO 8859/1 or Latin-1
character set (iso_1).

Select a sort order.

SortOrder Chosen
1. Binary ordering, for the ISO 8859/1 or Latin-1 characterset set (is yes
2. General purpose dictionary ordering. no
3. Dictionary order, case insensitive, accent insensitive. no
4. Dictionary order, case insensitive. no
5. Dictionary order, case insensitive with preference. no


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
------------------------------------------------------------------------------

SQL SERVER CONFIGURATION

1. CONFIGURE SERVER'S INTERFACES FILE ENTRY Complete

2. MASTER DEVICE CONFIGURATION Complete
3. SYBSYSTEMPROCS DATABASE CONFIGURATION Complete
4. SET ERRORLOG LOCATION Complete
5. CONFIGURE DEFAULT BACKUP SERVER Complete

6. CONFIGURE LANGUAGES Complete
7. CONFIGURE CHARACTER SETS Complete
8. CONFIGURE SORT ORDER Complete

9. ACTIVATE AUDITING Incomplete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
---------------------------------------------------------------------------

ACTIVATE AUDITING

1. Install auditing: no

2. sybsecurity database size (Meg): 5

3. sybsecurity logical device name: sybsecurity

4. creat new device for the sybsecurity database: no




Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:

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

SQL SERVER CONFIGURATION

1. CONFIGURE SERVER'S INTERFACES FILE ENTRY Complete

2. MASTER DEVICE CONFIGURATION Complete
3. SYBSYSTEMPROCS DATABASE CONFIGURATION Complete
4. SET ERRORLOG LOCATION Complete
5. CONFIGURE DEFAULT BACKUP SERVER Complete

6. CONFIGURE LANGUAGES Complete
7. CONFIGURE CHARACTER SETS Complete
8. CONFIGURE SORT ORDER Complete

9. ACTIVATE AUDITING Complete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
Execute the SQL Server Configuration now?
---------------------------------------------------------------------------




Running task to create the master device.
Building the master device
...................................Done
Task to create the msster device succeeded.
Running task jto boot the SQL Server.
Task to boot the SQL Server succeeded.
Running task to create the sybsystemprocs database.
sybsystemprocs database created.
Task to created the sybsystemprocs database succeeded.
Running task to install system stored procedures.
............................................................................
.....................................................
Task to install system stored procedures succeeded.
Running task to set permissions for the 'model' database.
.Done
Task to set permissions for the 'model' database succeeded.
Running task to set the default character set and/or default sort order for the
SQL Server.
Setting the default character set to iso_1
Sort order 'binary' has already been installed.
Character set 'iso_1' is already is default.
Sort order 'binary' is already the default.
Task to set the default character set and/or default sort order for the SQL
Server succeeded.
Running task to set the default language.
Setting the default language to us_english.
Language 'us_english' is already the default.
Task to set the default language succeeded.

Configuration completed successfully.
Press  to continue.


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

NEW OR EXISTING SQL SERVER

1. Configure a new SQL Server
2. Configure an existing SQL Server



Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
-----------------------------------------------------------------------------

CONFIGURE SERVER PRODUCTS

Product Date Installed Date Configured
1. SQL Server Jun 09 96 14:35 Jun 13 96 17:30
2. Backup Server Jun 09 96 14:35 Jun 13 96 17:32


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:  
----------------------------------------------------------------------------

NEW OR EXISTING BACKUP SERVER

1. Configure a new Backup Server
2. Configure an existing Backup Server


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:  
----------------------------------------------------------------------------

ADD NEW BACKUP SERVER

1. Backup Server name:SYB_BACKUP


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:  
----------------------------------------------------------------------------

BACKUP SERVER CONFIGURATION

1. Backup Server errorlog: /u/sybase/install/backup.log
2. Enter / Modify Backup Server interfaces file information




Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:  
----------------------------------------------------------------------------

SERVER INTERFACES FILE ENTRY SCREEN

Server name: SYB_BACKUP

1. Retry Count: 0
2. Retry Delay: 0

3. Add a new listener service


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
Enter the retry count (default is '0'):  
----------------------------------------------------------------------------


SERVER INTERFACES FILE ENTRY SCREEN

Server name: SYB_BACKUP

1. Retry Count: 3
2. Retry Delay: 0

3. Add a new listener service


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
Enter the delay interval between retries (default is '0'):  
----------------------------------------------------------------------------

SERVER INTERFACES FILE ENTRY SCREEN

Server name: SYB_BACKUP


1. Retry Count: 3
2. Retry Delay: 3

3. Add a new listener service


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
----------------------------------------------------------------------------

EDIT TCP SERVICE

1. Hostname/Address: credit.credit.COM
2. Port:
3. Name Alias:

4. Delete this service from the interfaces entry



Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
Enter the port number to use for this entry (default is ''):
----------------------------------------------------------------------------

EDIT TCP SERVICE

1. Hostname/Address: credit.credit.COM
2. Port: 7372
3. Name Alias:

4. Delete this service from the interfaces entry

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
Is this information is correct?  
----------------------------------------------------------------------------

SERVER INTERFACES FILE ENTRY SCREEN

Server name: SYB_BACKUP

1. Retry Count: 3
2. Retry Delay: 3

3. Add a new listener service

Modify or delete a service

Listener services available:

Protocol Address Port Name Alias
4. tcp credit.credit.C 7372


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
Write the changes to the interfaces file now?
----------------------------------------------------------------------------

BACKUP SERVER CONFIGURATION

1. Backup Server errorlog: /u/sybase/install/backup.log
2. Enter / Modify Backup Server interfaces file information


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:
Execute the Backup Server configuration now?
----------------------------------------------------------------------------

Running task to update the Backup Server runserver file.
Task jto update the Backup Server runserver file succeeded.
Running task to boot the Backup Serve.
waiting for server 'SYB_BACKUP' to boot...
Task to boot the Backup Server succeeded.

Configuration completed successfully.

Press  to continue.

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

NEW OR EXISTING BACKUP SERVER

1. Configure a new Backup Server
2. Configure an existing Backup Server


Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ?Help

Enter the number of your choice and press return:
-----------------------------------------------------------------------------

CONFIGURE SERVER PRODUCTS

Product Date Installed Date Configured
1. SQL Server Jun 09 96 14:35 Jun 13 96 17:30
2. Backup Server Jun 09 96 14:35 Jun 13 96 17:32

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:  
---------------------------------------------------------------------------

SYBINIT

1. Release directory: /u/sybase

2. Edit / View Interfaces File

3. Configure a Server product
4. Configure an Open Client/Server product
5. Configure a Front End product

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:  
----------------------------------------------------------------------------

Exiting.
The log file for this session is '/u/sybase/init/logs/log0613.024'.


prince 2006-04-03 12:56 发表评论
]]>
AIX操作pȝ的学?/title><link>http://www.aygfsteel.com/prince/archive/2006/04/03/38912.html</link><dc:creator>prince</dc:creator><author>prince</author><pubDate>Mon, 03 Apr 2006 04:43:00 GMT</pubDate><guid>http://www.aygfsteel.com/prince/archive/2006/04/03/38912.html</guid><wfw:comment>http://www.aygfsteel.com/prince/comments/38912.html</wfw:comment><comments>http://www.aygfsteel.com/prince/archive/2006/04/03/38912.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/prince/comments/commentRss/38912.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/prince/services/trackbacks/38912.html</trackback:ping><description><![CDATA[ <font color="#000000"> <table cellspacing="0" cellpadding="0" width="90%" align="center" border="0"> <tbody> <tr> <th class="f24"> <h1 align="left"> <font style="BACKGROUND-COLOR: #ffffff" size="3">AIX常用命o</font> </h1> </th> </tr> </tbody> </table> <font color="#000000">查看交换Z息: <br />lsps -a 昄交换区的分布信息 <br />lsps -s 昄交换区的使用信息 <br />slibclean 清除处理E序遗留的旧分页信息 <br />smit mkps 建立交换区空间信?<br />swapon -a 启动所有的分页I间 <br />/etc/swapspaces 存放分页I间表格信息 <br />------------------------------------------------- <br />昄卷信息: <br />lsvg 昄L名称 <br />lsvg -l rootvg 昄rootvgL详细信息 <br /><br />------------------------------------------------- <br />mountLҎQ?<br />varyonvg datavg 加蝲datavg?<br />mount /dev/data1 加蝲datavg下的一个data1?<br /><br />裸设备类型:raw,jfs jfs可以转变成文件系l,而raw则不?<br />------------------------------------------------- <br /><br />在裸讑֤上安装oraclepȝQ?<br />修改裸设备的权限Q如裸设备名为system01Q安装数据库用户为oracle <br />chown oracle:dba /dev/system01 <br />chown oracle:dba /dev/rsystem01 <br />在用文件时必须用rsystem01 <br />------------------------------------------------- <br /><br />smit快速\径名Uͼ(smitQ图形方式,smittyQ字W方? <br />dev 讑֤理 <br />diag 诊断 <br />jfs 定期档案理pȝ <br />lvm 逻辑卷册pȝ理员管?<br />nfs NFS理 <br />sinstallp 软g安装及维?<br />spooler 列印队列理 <br />system pȝ理 <br />tcpip TCP/IP理 <br />USER 使用者管?<br />clstartQclstopQ启动和停止cluster <br />lssrc -g cluserQ查看cluser的状?<br />------------------------------------------------- <br /><br />查看已安装的软g信息Q?<br />ls -aF /usr/lpp (lpp:Licensed Program Products) <br />查看安装媒体内容Q?<br />installp -q -d /dev/cdrom -l <br />------------------------------------------------- <br /><br />启动时自动加载文件系l信息: <br />需要加载的信息存放?etc/filesystems <br />mount -t nf 加蝲所有在/ect/filesystems中定义type=nfs的文件系l?<br />昄已加载的文gpȝ及状态: df -v,mount <br />------------------------------------------------- <br /><br />查看错误日志信息Q?<br />errpt -a <br />------------------------------------------------- <br /><br />有关TCP/IP的命?<br />|\卡: <br />smit chgenet,chgtok,chgfddi,opschange,mktty:adptr架构快速\?<br />smit mkinet,ppp:slip与ppp快速\?<br />ifconfig:config界面 <br />位址Q?<br />/etc/hosts 静态主 <br />/etc/resolv.conf 位址解析的名U服务器 <br />/etc/named.boot 名称服务器架?<br />/etc/named.ca 根名U服务器快取 <br />/etc/named.data 位址列表 <br />/etc/named.rev 反{指标列表 <br />nslookup 查询名称服务器资?<br />|络路由Q?<br />route 理路由 <br />netstat -rn 列出定义的\?<br />routed 路由(daekmin rip) <br />gated 路由(daekmin rip、egp、hello) <br />/etc/gateways 已知|关 <br />/etc/networks 已知|\ <br />服务Q?<br />/etc/services <br />/etc/inetd.conf <br />TCP/IP组子系l? <br />/etc/rc.net <br />startsrc -g tcpip 启动全部的tcpip子系l?<br />startsrc -s inetd 启动主要internet <br />除错Q?<br />iptrace 启动包q踪 <br />ipreport q踪l果格式化输?<br />netstat |络l计 <br />ping 查是否可以到?<br />查看HACMPQ外部硬盘信? <br />lscfg -v <br />lsdev -Cc adapter <br />对等机器信息Q?<br />/etc/.rhosts <br />/etc/hosts.equiv <br />/etc/hosts <br />------------------------------------------------- <br /><br />观察q程内存使用情况Q?<br />ps aux 观察参数%memQ内存用百分比 RSS:实际使用内存 <br />vmstat free的单位ؓ块,~省gؓ4096bytst <br />------------------------------------------------- <br /><br />创徏raw讑֤旉择的类? <br />raw_lv  <br /></font> <br /> <br /> <br />###############################################################################<br />AIX的系l备份和恢复<br /><br /> 备䆾和恢复是pȝ理员经常要做的事情, 主要包括rootvg备䆾和用h据备? <br />  1. 操作pȝ和系l程序的备䆾: <br />  一盘新带或无用磁带插入磁带机 <br />  #tctl -f /dev/rmt0 rewind <br />  #smit mksysb  <br />    <br /><br />  ?备䆾讑֤或文?中添?/dev/rmt0"后回? <br />  pȝ会运行很长时? {到屏幕昄OK后拿出磁? q时? pȝ备䆾完成. 注意:  <br />mksysb仅备份rootvg中已安装的文件系l? <br /><br />  2. 用户数据备䆾 <br />  · 常用带机选项 <br />  /dev/rmt0: 若选择/dev/rmt0, 在插入磁带和写完一ơ磁带时, 带机都磁带反l到?  <br />因此, 下一ơ备份文件将覆盖本次备䆾. <br />  /dev/rmt0.1: 若选择/dev/rmt0.1, 则插入磁带和写完一ơ磁带时, 带机均不反l磁?  <br />因此, 一盘磁带可以连l备份几个文件或文gpȝ. <br />  · #smit fs <br />  选择"备䆾文gpȝ" <br /><br />  d要备份的"文gpȝ名称" <br />  d"/dev/rmt0.1" <br />     <br /><br />  重复上述操作卛_在同一盘磁带上备䆾多个文gpȝ. <br /><br />  3. rootvg的恢?<br />  · 启动机器q入l护模式 <br />  参见安装手册, 当出?Welcome to Base Operating System Installation and Maintanence"?  <br />? "Start Maintenance Mode for System Recovery" <br />    <br />  · 恢复pȝ <br />  l箋? "Install from a System Backup" <br />  出现"Choose mksysb Device"画面, ?/dev/rmt0"q插入磁带后回R.q时? pȝ自动恢复操作pȝ. <br /><br />  4. 用户数据恢复 <br />  #tctl -f /dev/rmt0 rewind <br />  #smit fs <br />  选择"恢复文gpȝ" <br />  d"讑֤名称"?目标目录" <br />   <br />  pȝ会自动找到相应目录恢?<br /><br />##########################################################################<br /><br /><table cellspacing="0" cellpadding="0" width="90%" align="center" border="0"><tbody><tr><th class="f24"><h1 align="left"><font style="BACKGROUND-COLOR: #f5f5dc" face="Arial" color="#000000" size="3">AIXpȝ日常理</font></h1><p align="left"><font color="#cccccc"><font style="BACKGROUND-COLOR: #f5f5dc" face="Arial" color="#000000">1Q 文件系l是否满  <br />ҎQ df –k 可以以K为单位检查文件系l的使用率。(90%以上Q需要调_  <br />2Q 检查系l出错日志 用errpt |more来检查?<br />清除现有的log: Errclear 0  <br />3Q 检查系l合?非法登陆情况  <br />使用Last命o来检查来自登陆的地方。?<br />4Q 检查系l是否有巨大的Core文g生成  <br />使用 find / -name core –print来检查。对Core文gQ一般直接删除就可以了。?<br />5Q 系l性能查:  <br />a) CPU性能Q用Vmstat, topas来检查?<br />b) 内存使用情况Q也是用topas, vmstat来检查?<br />c) 查IOq使用情况Q用iostat来检查?<br />d) 交换I间使用情况Q用lsps –a来检查?<br />6Q Mail查?<br />7Q Diag 一个月一?/font>  </font><br /></p></th></tr></tbody></table><br /><br /></font> <img src ="http://www.aygfsteel.com/prince/aggbug/38912.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/prince/" target="_blank">prince</a> 2006-04-03 12:43 <a href="http://www.aygfsteel.com/prince/archive/2006/04/03/38912.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ᶫ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ƹ</a>| <a href="http://" target="_blank">Ͻ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">˰</a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ԭ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ٺ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">˳</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">˹</a>| <a href="http://" target="_blank">̨ʡ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">¬</a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">ʩ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">³</a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">կ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>