??xml version="1.0" encoding="utf-8" standalone="yes"?>成人激情综合,国产高清视频一区三区,bt在线麻豆视频http://www.aygfsteel.com/alexwan/category/33816.htmlLet life be beautiful like summer flowers and death like autumn leaves.zh-cnTue, 18 Aug 2009 15:12:19 GMTTue, 18 Aug 2009 15:12:19 GMT60[转蝲]【VNC】Linux环境VNC服务安装、配|与使用 http://www.aygfsteel.com/alexwan/archive/2009/07/11/286357.htmlAlexwanAlexwanSat, 11 Jul 2009 03:27:00 GMThttp://www.aygfsteel.com/alexwan/archive/2009/07/11/286357.htmlhttp://www.aygfsteel.com/alexwan/comments/286357.htmlhttp://www.aygfsteel.com/alexwan/archive/2009/07/11/286357.html#Feedback0http://www.aygfsteel.com/alexwan/comments/commentRss/286357.htmlhttp://www.aygfsteel.com/alexwan/services/trackbacks/286357.html

【实验】【VNC】Linux环境VNC服务安装、配|与使用


1.
VNC是否安装
默认情况下,Red Hat Enterprise Linux安装E序会将VNC服务安装在系l上?/span>
认是否已经安装VNC服务及查看安装的VNC版本
[root@testdb ~]# rpm -q vnc-server
vnc-server-4.1.2-9.el5
[root@testdb ~]#

若系l没有安?/span>,可以到操作系l安装盘?/span>Server目录下找?/span>VNC服务?/span>RPM安装?/span>vnc-server-4.1.2-9.el5.x86_64.rpmQ安装命令如?/span>
rpm -ivh /mnt/Server/vnc-server-4.1.2-9.el5.x86_64.rpm

2.
启动VNC服务
使用vncserver命o启动VNC服务Q命令格式ؓ“vncserver :桌面?/span>Q其?/span>桌面?/span>?/span>数字的方式表C,每个用户q个需要占?/span>1个桌?/span>
启动~号?/span>1的桌面示例如?/span>
[root@testdb ~]# vncserver :1

You will require a password to access your desktops.

Password:
Verify:
xauth:  creating new authority file /root/.Xauthority

New 'testdb:1 (root)' desktop is testdb:1

Creating default startup script. /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/testdb:1.log

?/span>上命令执行的q程中,因ؓ是第一ơ执行,需要输入密码,q个密码被加密保存在用户ȝ录下?/span>.vnc子目录(/root/.vnc/passwdQ中Q同时在用户ȝ录下?/span>.vnc子目录中为用戯动徏?/span>xstartup配置文gQ?/span>/root/.vnc/xstartupQ,在每ơ启?/span>VND服务Ӟ都会d该文件中的配|信息?/span>
BTW
Q?/span>/root/.vnc/目录下还有一?/span>“testdb:1.pid”文gQ这个文件记录着启动VNC后对应后天操作系l的q程P用于停止VNC服务时准定位进E号?/span>

3.VNC
服务使用的端口号与桌面号的关p?/span>
VNC
服务使用的端口号与桌面号相关Q?/span>VNC使用TCP端口?/span>5900开始,对应关系如下
桌面号ؓ“1”  ---- 端口号ؓ5901
桌面号ؓ“2”  ---- 端口号ؓ5902
桌面号ؓ“3”  ---- 端口号ؓ5903
……
ZJava?/span>VNC客户E序Web服务TCP端口?/span>5800开始,也是与桌面号相关Q对应关pd?/span>
桌面号ؓ“1”  ---- 端口号ؓ5801
桌面号ؓ“2”  ---- 端口号ؓ5802
桌面号ؓ“3”  ---- 端口号ؓ5803
……
Z上面的介l,如果Linux开启了防火墙功能,需要手工开启相应的端口Q以开启桌面号?/span>“1”相应的端口ؓ例,命o如下
[root@testdb ~]# iptables -I INPUT -p tcp --dport 5901 -j ACCEPT
[root@testdb ~]# iptables -I INPUT -p tcp --dport 5801 -j ACCEPT

4.
VNC服务
W一U方法是使用VNC Viewer软g登陆Q操作流E如?/span>
启动VNC Viewer软g --> Server输入“144.194.192.183:1” --> 点击“OK” --> Password输入登陆密码 --> 点击“OK”登陆?/span>X-Window囑Ş桌面环境 --> 试成功
W二U方法是使用Web览器(?/span>Firefox,IE,SafariQ登陆测试,操作程如下
?/span>址栏输?/span>http://144.194.192.183:5801/ --> 出现VNC viewer for JavaQ此工具是?/span>Java~写?/span>VNC客户端程序)界面Q同时蟩?/span>VNC viewer对话框,?/span>Server处输?/span>“144.194.192.183:1”点击“OK” --> Password输入登陆密码 --> 点击“OK”登陆?/span>X-Window囑Ş桌面环境 --> 试成功
Q注Q?/span>VNC viewer for Java需?/span>JRE支持Q如果页面无法显C,表示没有安装JREQ可以到http://java.sun.com/javase/downloads/index_jdk5.jspq里下蝲最新的JREq行安装Q?/span>

5.
配置VNC囑Ş桌面环境?/span>KDE?/span>GNOME桌面环境
如果您是按照我的上面Ҏq行的配|的Q登陆到桌面后效果是非常单的Q只有一?/span>Shell可供使用Q这是ؓ什么呢Q怎么才能看到可爱q且丽?/span>KDE?/span>GNOME桌面环境呢?回答如下
之所以那么的隄Q是因ؓVNC服务默认使用的是twm囑Ş桌面环境的,可以?/span>VNC的配|文?/span>xstartup中对其进行修改,先看一下这个配|文?/span>
[root@testdb ~]# cat /root/.vnc/xstartup
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

这?/span>xstartup文g的最后一行修改ؓ“startkde &”Q再重新启动vncserver服务后就可以登陆?/span>KDE桌面环境
这?/span>xstartup文g的最后一行修改ؓ“gnome-session &”Q再重新启动vncserver服务后就可以登陆?/span>GNOME桌面环境

重新启动vncserver服务的方法:
[root@testdb ~]# vncserver -kill :1
[root@testdb ~]# vncserver :1

6.
配置多个桌面
可以使用如下的方法启动多个桌面的VNC
vncserver :1
vncserver :2
vncserver :3
……
但是q种手工启动的方法在服务器重新启动之后将失效Q因此,下面介绍如何让系l自?/span>多个桌面?/span>VNCQ方法是需要自动管理的信息d?/span>/etc/sysconfig/vncservers配置文g中,先以桌面1?/span>root用户桌面2?/span>oracle用户Zq行配置如下Q?/span>
格式为:VNCSERVERS="桌面?/span>:使用的用户名桌面?/span>:使用的用户名"
[root@testdb ~]# vi /etc/sysconfig/vncservers
VNCSERVERS="1:root 2:oracle"
VNCSERVERARGS[1]="-geometry 1024x768"
VNCSERVERARGS[2]="-geometry 1024x768"

7.
修改VNC讉K的密?/span>
使用命ovncpasswd对不同用LVNC的密码进行修改,一定要注意Q如果配|了不同用户?/span>VNC需要分别到各自用户中进行修改,例如在我的这个实验中Q?/span>root用户?/span>oracle用户需要分别修改,修改q程如下Q?/span>
[root@testdb ~]# vncpasswd
Password:
Verify:
[root@testdb ~]#

8.
启动和停?/span>VNC服务
1
Q启?/span>VNC服务命o
[root@testdb ~]# /etc/init.d/vncserver start
Starting VNC server: 1:root
New 'testdb:1 (root)' desktop is testdb:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/testdb:1.log

2:oracle
New 'testdb:2 (oracle)' desktop is testdb:2

Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/testdb:2.log

                                                           [  OK  ]
2
Q停?/span>VNC服务命o
[root@testdb ~]# /etc/init.d/vncserver stop
Shutting down VNC server: 1:root 2:oracle                  [  OK  ]
3
Q重新启?/span>VNC服务命o
[root@testdb ~]# /etc/init.d/vncserver restart
Shutting down VNC server: 1:root 2:oracle                  [  OK  ]
Starting VNC server: 1:root
New 'testdb:1 (root)' desktop is testdb:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/testdb:1.log

2:oracle
New 'testdb:2 (oracle)' desktop is testdb:2

Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/testdb:2.log

                                                           [  OK  ]
4
Q设|?/span>VNC服务随系l启动自动加?/span>
W一U方法:使用“ntsysv”命o启动囑Ş化服务配|程序,?/span>vncserver服务前加上星P点击定Q配|完成?/span>
W二U方法:使用“chkconfig”在命令行模式下进行操作,命o使用如下Q预?/span>chkconfig详细使用Ҏ误助式man一下)
[root@testdb ~]# chkconfig vncserver on
[root@testdb ~]# chkconfig --list vncserver
vncserver       0:off   1:off   2:on    3:on    4:on    5:on    6:off



Alexwan 2009-07-11 11:27 发表评论
]]>
[linux]linux下查看系l启动时间的Ҏhttp://www.aygfsteel.com/alexwan/archive/2009/06/11/281632.htmlAlexwanAlexwanThu, 11 Jun 2009 15:29:00 GMThttp://www.aygfsteel.com/alexwan/archive/2009/06/11/281632.htmlhttp://www.aygfsteel.com/alexwan/comments/281632.htmlhttp://www.aygfsteel.com/alexwan/archive/2009/06/11/281632.html#Feedback0http://www.aygfsteel.com/alexwan/comments/commentRss/281632.htmlhttp://www.aygfsteel.com/alexwan/services/trackbacks/281632.html 输出的第一行就是系l当前时间和已运行的旉长度Q如
top
top - 23:15:59 up 9 days,  8:45,  1 user,  load average: 1.23, 0.87, 0.58

2.uptime命o

输出和top命o的第一行类|
uptime
 23:16:58 up 9 days,  8:46,  1 user,  load average: 1.57, 1.02, 0.64

3.查看/proc/uptime/
cat /proc/uptime
809318.30 767841.27

q用pȝ工具date卛_出pȝ启动旉
date -d "$(awk -F. '{print $1}' /proc/uptime) second ago" +"%Y-%m-%d %H:%M:%S"
2009-06-02 14:30:36











Alexwan 2009-06-11 23:29 发表评论
]]>
[linux]linux下查看与操作pȝ相关的命?/title><link>http://www.aygfsteel.com/alexwan/archive/2009/06/08/280582.html</link><dc:creator>Alexwan</dc:creator><author>Alexwan</author><pubDate>Mon, 08 Jun 2009 03:25:00 GMT</pubDate><guid>http://www.aygfsteel.com/alexwan/archive/2009/06/08/280582.html</guid><wfw:comment>http://www.aygfsteel.com/alexwan/comments/280582.html</wfw:comment><comments>http://www.aygfsteel.com/alexwan/archive/2009/06/08/280582.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/alexwan/comments/commentRss/280582.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/alexwan/services/trackbacks/280582.html</trackback:ping><description><![CDATA[查看操作pȝ的具体信息:<br /> uname -a<br /> <br /> 查看操作pȝ?2位还?4位:<br /> getconf WORD_BIT <img src ="http://www.aygfsteel.com/alexwan/aggbug/280582.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/alexwan/" target="_blank">Alexwan</a> 2009-06-08 11:25 <a href="http://www.aygfsteel.com/alexwan/archive/2009/06/08/280582.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[linux]修改linux文g描述W限?http://www.aygfsteel.com/alexwan/archive/2009/05/18/271269.htmlAlexwanAlexwanMon, 18 May 2009 02:58:00 GMThttp://www.aygfsteel.com/alexwan/archive/2009/05/18/271269.htmlhttp://www.aygfsteel.com/alexwan/comments/271269.htmlhttp://www.aygfsteel.com/alexwan/archive/2009/05/18/271269.html#Feedback0http://www.aygfsteel.com/alexwan/comments/commentRss/271269.htmlhttp://www.aygfsteel.com/alexwan/services/trackbacks/271269.html  
查看命oQ?br />         ulimit -n
        在修改之前一般得到的l果?024Q?br />         
 临时修改Q?br />         ulimit -HSn 65536
        q样增大了文g描述W的限制?br />
 持久性修Ҏ两种ҎQ?br /> (1)ulimit -HSn 65536写入对应用户?bash_profile文g中,?root/.bash_profile;
(2)ulimit -HSn 65536写入?etc/profile文g中,那么q个讄对所有用h效;

q样在下ơ进入系l是׃用再讄了?br /> 上面q个Ҏ对解决too many open file的错误很有效?br />

PSQ如果你的进E是通过脚本启动的,当然也可以将
ulimit -HSn 65536
写到脚本文g中?br />         


Alexwan 2009-05-18 10:58 发表评论
]]>
[j2ee]linux下Activemq的部|和使用http://www.aygfsteel.com/alexwan/archive/2009/05/06/269182.htmlAlexwanAlexwanWed, 06 May 2009 02:57:00 GMThttp://www.aygfsteel.com/alexwan/archive/2009/05/06/269182.htmlhttp://www.aygfsteel.com/alexwan/comments/269182.htmlhttp://www.aygfsteel.com/alexwan/archive/2009/05/06/269182.html#Feedback0http://www.aygfsteel.com/alexwan/comments/commentRss/269182.htmlhttp://www.aygfsteel.com/alexwan/services/trackbacks/269182.html http://activemq.apache.org/getting-started.html#GettingStarted-StartingActiveMQ

1.下蝲
http://activemq.apache.org/download.html

2.解压
下载下来的apache-activemq-5.2.0-bin.tar.gz攄?usr/local
cd /usr/local/
tar xvfz apache-activemq-5.2.0-bin.tar.gz
则ActiveMQ的安装目录ؓQ?usr/local/apache-activemq-5.2.0

3.修改activemqq行文g的权?br /> cd /usr/local/apache-activemq-5.2.0/bin
chmod 755 activemq

4.q行
(1).普通启?br /> bin/activemq
(2).指定日志文g的启动方?br /> bin/activemq >/tmp/smlog 2>&1 &
(3)后台启动方式
nohup bin/activemq >/tmp/smlog 2>&1 &

q里需要注意:前两U启动方式在linix命o行或者通过ssh客户端启动时在关闭对应的H口时activemq会关闭,甚至直接ctrl+c也会Dactivemq退出;W三U则不会出现q种情况?br />
5.验证服务端是否开启,有几U方?br /> (1).查看控制台输出或者日志文?br /> (2).直接讉Kactivemq的管理页面:http://localhost:8161/admin/

6.关闭activemq
如果开启方式是使用(1)?2)Q则直接ctrl+c或者关闭对应的l端卛_
如果开启方式是(3),则稍微麻烦一点:
先查扑ֈactivemq对应的进E:
ps -ef | grep activemq
然后把对应的q程杀掉,假设扑ֈ的进E编号ؓ 168168
kill 168168





Alexwan 2009-05-06 10:57 发表评论
]]>
[linux]和进E相关的命ohttp://www.aygfsteel.com/alexwan/archive/2009/05/05/269042.htmlAlexwanAlexwanTue, 05 May 2009 11:02:00 GMThttp://www.aygfsteel.com/alexwan/archive/2009/05/05/269042.htmlhttp://www.aygfsteel.com/alexwan/comments/269042.htmlhttp://www.aygfsteel.com/alexwan/archive/2009/05/05/269042.html#Feedback0http://www.aygfsteel.com/alexwan/comments/commentRss/269042.htmlhttp://www.aygfsteel.com/alexwan/services/trackbacks/269042.html 输出单的q程列表
2.ps aufx
输出q程?
3.ps aufx | more
输出内容较ؓ详细的进E树
4. cd /proc/pid
切换到进E文件夹
其中
cmdline 内的内容是开启该q程的命令行
environ 是该q程启动时用的环境变量

http://www.aygfsteel.com/alexwan/archive/2009/05/05/269042.html



Alexwan 2009-05-05 19:02 发表评论
]]>
[linux]linux下查看及修改机器名的Ҏhttp://www.aygfsteel.com/alexwan/archive/2009/05/01/268526.htmlAlexwanAlexwanFri, 01 May 2009 08:28:00 GMThttp://www.aygfsteel.com/alexwan/archive/2009/05/01/268526.htmlhttp://www.aygfsteel.com/alexwan/comments/268526.htmlhttp://www.aygfsteel.com/alexwan/archive/2009/05/01/268526.html#Feedback0http://www.aygfsteel.com/alexwan/comments/commentRss/268526.htmlhttp://www.aygfsteel.com/alexwan/services/trackbacks/268526.html查看机器名:

uname -a

 

修改机器名:

redhat中修改主机名

W一步:
#hostname oratest
W二步:
修改/etc/sysconfig/network中的hostname
W三步:
修改/etc/hosts文g

suse linux:

修改/etc/HOSTNAME文gQ在此文件中保存L名,例如Q?br /> homer100

然后q行命o讄L?br /> # /etc/rc.d/boot.localnet start



Alexwan 2009-05-01 16:28 发表评论
]]>
[linux]redhat linux 9 下配|DNShttp://www.aygfsteel.com/alexwan/archive/2009/02/18/255319.htmlAlexwanAlexwanWed, 18 Feb 2009 09:20:00 GMThttp://www.aygfsteel.com/alexwan/archive/2009/02/18/255319.htmlhttp://www.aygfsteel.com/alexwan/comments/255319.htmlhttp://www.aygfsteel.com/alexwan/archive/2009/02/18/255319.html#Feedback0http://www.aygfsteel.com/alexwan/comments/commentRss/255319.htmlhttp://www.aygfsteel.com/alexwan/services/trackbacks/255319.htmlq是一个小W记?/p>

打开文g /etc/resolv.conf

在文件的最开头键?Q?/p>

nameserver 202.96.128.68
保存文gQ该DNS讄立即生效?/p>

Alexwan 2009-02-18 17:20 发表评论
]]>
[linux]linux下的脚本与java中的相对路径http://www.aygfsteel.com/alexwan/archive/2008/12/12/246000.htmlAlexwanAlexwanFri, 12 Dec 2008 09:31:00 GMThttp://www.aygfsteel.com/alexwan/archive/2008/12/12/246000.htmlhttp://www.aygfsteel.com/alexwan/comments/246000.htmlhttp://www.aygfsteel.com/alexwan/archive/2008/12/12/246000.html#Feedback0http://www.aygfsteel.com/alexwan/comments/commentRss/246000.htmlhttp://www.aygfsteel.com/alexwan/services/trackbacks/246000.html背景Q?/strong>
linux使用ANT~译javacdƈ部v到Tomcat下,然后使用脚本(deploy.sh)开启Tomcat,脚本如下:
deploy.sh(其绝对\径ؓQ?usr/local/myapp/deploy.sh)

1/usr/local/apache-tomcat-5.5.20/bin/shutdown.sh
2ant
3/usr/local/apache-tomcat-5.5.20/bin/startup.sh
4
其中各行的意义:
(1)关闭tomcat
(2)~译javacdƈ部v到tomcat
(3)开启tomcat
q里使用的命令都是绝对\径运行的?br />
问题来了Q?/strong>
(1)在项目中安排了log4j的日志输出到myapp.log,其\径写法:../log/myapp.log;启动服务器的时候在catalina.out中输出错误信息,?./log/myapp.log没有扑ֈ?br /> (2)在程序中使用了output/files/Q程序完成后很难才找到文Ӟ因ؓ其位|ƈ不像在window下调试时一P最后?find   -name   output -type   d命o才找刎ͼ发现原来q个文gҎ在的位置是在:/usr/local/myapp/下面?br />
倪端初现Q?/strong>
可见Q用脚本开启tomcat时如果以l对路径的方式去开启的话,那么在程序中的相对\径就会以脚本的当前目录作\径的起始炏V这样就D了在文g的位|上出现变化Q得文件管理出现困隄臛_已有的文仉成破坏?br />
问题解决Q?br /> 解决路径的问题有很多Q在q里主要说一下以下两个思\Q?br /> (1)使用可配|的l对路径Q在ANT部v的时候,可以Window下的路径替换成Linux下的l对路径Q这样就很方便管理,此ؓ上策?br /> (2)使用相对路径Ӟ开启Tomcat时一定要切换到tomcat的bin文g夹开启,q样相对路径指向的位|就和Window下的一致了Q此Z{也?br /> 使用相对路径的脚本如下:
1/usr/local/apache-tomcat-5.5.20/bin/shutdown.sh
2ant
3cd /usr/local/apache-tomcat-5.5.20/bin/
4./startup.sh
其中各行的作用:
(1)关闭tomcat
(2)~译javacdƈ部v文g
(3)切换目录到tomcat的bin文g?br /> (4)开启tomcat


估计其他应用服务器下使用脚本和相对\径也时也会遇CL问题Q方法估计也是类似的?br />


Alexwan 2008-12-12 17:31 发表评论
]]>
[linux]linux下集成apache和tomcat时可能用到的命ohttp://www.aygfsteel.com/alexwan/archive/2008/10/05/232423.htmlAlexwanAlexwanSat, 04 Oct 2008 16:10:00 GMThttp://www.aygfsteel.com/alexwan/archive/2008/10/05/232423.htmlhttp://www.aygfsteel.com/alexwan/comments/232423.htmlhttp://www.aygfsteel.com/alexwan/archive/2008/10/05/232423.html#Feedback0http://www.aygfsteel.com/alexwan/comments/commentRss/232423.htmlhttp://www.aygfsteel.com/alexwan/services/trackbacks/232423.html         在apache2和tomcat5集成的环境下Q通常会把静态文Ӟ如shtml文gQ存攑֜apache的目录下Q而动态文件则存在在tomcat的管辖范围内Q因为开发过E中q没有将q两cL件分开Q所以在讉K静态文件是需要做个映?br />
        假设集成环境中,装有apache2的机器在局域网中的地址?92.168.1.55Q下面简U?5Q装有tomcat5的机器的地址?92.168.1.66Q后面简U?6
那么?5中需要提供的是NFS服务Q?br />
?etc/exports中添加如下语句:

{apache2_home}/htdocs     192.168.1.*(ro,no_root_squash)

其中
{apache2_home}/是指apache2的安装目录;
192.168.1.*是指可访问的?br /> ro选项是指讉K的权?br /> no_root_squash选项是指55的root在这个文件夹下没有写的权?br />


开启NFS服务的命令:

service nfs start

然后?6中运行另外一个命令:

mount -o nolock 192.168.1.55:{apache2_home}/htdocs {tomcat_home}/webapps/ROOT


PS:如果修改?etc/exports的话需要重新开启nfs服务Q那么关闭的命o是:service nfs stop?br />

Alexwan 2008-10-05 00:10 发表评论
]]>
[Tomcat]linux下改变tomcat5.5的内存设|?/title><link>http://www.aygfsteel.com/alexwan/archive/2008/09/12/228537.html</link><dc:creator>Alexwan</dc:creator><author>Alexwan</author><pubDate>Fri, 12 Sep 2008 02:58:00 GMT</pubDate><guid>http://www.aygfsteel.com/alexwan/archive/2008/09/12/228537.html</guid><wfw:comment>http://www.aygfsteel.com/alexwan/comments/228537.html</wfw:comment><comments>http://www.aygfsteel.com/alexwan/archive/2008/09/12/228537.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/alexwan/comments/commentRss/228537.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/alexwan/services/trackbacks/228537.html</trackback:ping><description><![CDATA[打开在Tomcat的安装目录的bin文g的catalina.sh文g,q入~辑状?<br /> 在注释后面加上如下脚?<br /> JAVA_OPTS='-Xms512m -Xmx1024m'<br /> JAVA_OPTS="$JAVA_OPTS -server -XX:PermSize=64M -XX:MaxPermSize=256m"<br /> <br /> 其中 JAVA_OPTS='-Xms512m -Xmx1024m' 是设|Tomcat使用的内存的大小.<br /> <br /> -XX:PermSize=64M -XX:MaxPermSize=256m 指定cȝ?用于加蝲c?的内存大? <img src ="http://www.aygfsteel.com/alexwan/aggbug/228537.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/alexwan/" target="_blank">Alexwan</a> 2008-09-12 10:58 <a href="http://www.aygfsteel.com/alexwan/archive/2008/09/12/228537.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[linux]linux下开启VPN(openvpn)客服?/title><link>http://www.aygfsteel.com/alexwan/archive/2008/09/08/227669.html</link><dc:creator>Alexwan</dc:creator><author>Alexwan</author><pubDate>Mon, 08 Sep 2008 02:28:00 GMT</pubDate><guid>http://www.aygfsteel.com/alexwan/archive/2008/09/08/227669.html</guid><wfw:comment>http://www.aygfsteel.com/alexwan/comments/227669.html</wfw:comment><comments>http://www.aygfsteel.com/alexwan/archive/2008/09/08/227669.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/alexwan/comments/commentRss/227669.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/alexwan/services/trackbacks/227669.html</trackback:ping><description><![CDATA[<p>openvpn --config client.conf</p> <img src ="http://www.aygfsteel.com/alexwan/aggbug/227669.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/alexwan/" target="_blank">Alexwan</a> 2008-09-08 10:28 <a href="http://www.aygfsteel.com/alexwan/archive/2008/09/08/227669.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[linux]linux下常用的命ohttp://www.aygfsteel.com/alexwan/archive/2008/09/05/227133.htmlAlexwanAlexwanFri, 05 Sep 2008 02:05:00 GMThttp://www.aygfsteel.com/alexwan/archive/2008/09/05/227133.htmlhttp://www.aygfsteel.com/alexwan/comments/227133.htmlhttp://www.aygfsteel.com/alexwan/archive/2008/09/05/227133.html#Feedback0http://www.aygfsteel.com/alexwan/comments/commentRss/227133.htmlhttp://www.aygfsteel.com/alexwan/services/trackbacks/227133.html
|络复制
scp -P port fileName userName@ip:/targetDir

修改文g所有?/strong>
chown usename dir -R

令文件可执行
chmod file +x

解压tar文g
tar xvfz filename

关闭q程
killall -9 processName

下蝲 
wget [url]

文g操作
览文g vi 文g路径及文件名
退出浏览状?nbsp; Qq!
退出编辑状?ESC
退出ƈ保存文g Qwq
q入~辑状?a


开启OPENVPN客户?br /> openvpn --config client.conf

Alexwan 2008-09-05 10:05 发表评论
]]>
[ORACLE]linux下开启ORACLE服务的步?/title><link>http://www.aygfsteel.com/alexwan/archive/2008/08/26/224434.html</link><dc:creator>Alexwan</dc:creator><author>Alexwan</author><pubDate>Tue, 26 Aug 2008 03:32:00 GMT</pubDate><guid>http://www.aygfsteel.com/alexwan/archive/2008/08/26/224434.html</guid><wfw:comment>http://www.aygfsteel.com/alexwan/comments/224434.html</wfw:comment><comments>http://www.aygfsteel.com/alexwan/archive/2008/08/26/224434.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/alexwan/comments/commentRss/224434.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/alexwan/services/trackbacks/224434.html</trackback:ping><description><![CDATA[一般按照如下步骤开启数据库服务:<br /> 1Q以oraclew䆾q入 su oracle<br /> 2Q进入oraproduct/bin目录<br /> 3Q执行启动监听命令:./lsnrctl start<br /> 4Q修改当前要启动的SID|export ORACLE_SID=dbname<br /> (要查看可用的数据库实?在oraproduct/ dbs目录下面。LS一下看看所有扩展名?ora的就可以?<br /> 5Q以NOLOG方式q接数据库:./sqlplus /nolog<br /> 6Q再q接到sysdbaQconnect /as sysdba<br /> 7Q执行启动命令:startup<br /> PS:前三步只执行一?后四步可重复执行.<br /> <br /> 在此感谢杨秧同志的热心帮? <img src ="http://www.aygfsteel.com/alexwan/aggbug/224434.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/alexwan/" target="_blank">Alexwan</a> 2008-08-26 11:32 <a href="http://www.aygfsteel.com/alexwan/archive/2008/08/26/224434.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[linux]VNC服务器开启命?/title><link>http://www.aygfsteel.com/alexwan/archive/2008/08/26/224387.html</link><dc:creator>Alexwan</dc:creator><author>Alexwan</author><pubDate>Tue, 26 Aug 2008 01:58:00 GMT</pubDate><guid>http://www.aygfsteel.com/alexwan/archive/2008/08/26/224387.html</guid><wfw:comment>http://www.aygfsteel.com/alexwan/comments/224387.html</wfw:comment><comments>http://www.aygfsteel.com/alexwan/archive/2008/08/26/224387.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/alexwan/comments/commentRss/224387.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/alexwan/services/trackbacks/224387.html</trackback:ping><description><![CDATA[安装?L路径下运?br /> vncserver<br /> 命o卛_<br /> <br /> 查看vncserver其他参数可以使用vncserver --help<br /> <br /> <p>vncserver -kill :1</p> <p>--关闭~号?的桌?/p> <p>修改密码Q?/p> <p>vncpasswd</p> <br /> <br /> <img src ="http://www.aygfsteel.com/alexwan/aggbug/224387.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/alexwan/" target="_blank">Alexwan</a> 2008-08-26 09:58 <a href="http://www.aygfsteel.com/alexwan/archive/2008/08/26/224387.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[linux]linux查看|络使用状态的命ohttp://www.aygfsteel.com/alexwan/archive/2008/08/22/223777.htmlAlexwanAlexwanFri, 22 Aug 2008 11:08:00 GMThttp://www.aygfsteel.com/alexwan/archive/2008/08/22/223777.htmlhttp://www.aygfsteel.com/alexwan/comments/223777.htmlhttp://www.aygfsteel.com/alexwan/archive/2008/08/22/223777.html#Feedback0http://www.aygfsteel.com/alexwan/comments/commentRss/223777.htmlhttp://www.aygfsteel.com/alexwan/services/trackbacks/223777.html
netstat -lan

查看|卡信息:
ifconfig

Alexwan 2008-08-22 19:08 发表评论
]]>
[oracle]oracle中创I间(tablespace)http://www.aygfsteel.com/alexwan/archive/2008/08/16/222419.htmlAlexwanAlexwanSat, 16 Aug 2008 05:51:00 GMThttp://www.aygfsteel.com/alexwan/archive/2008/08/16/222419.htmlhttp://www.aygfsteel.com/alexwan/comments/222419.htmlhttp://www.aygfsteel.com/alexwan/archive/2008/08/16/222419.html#Feedback0http://www.aygfsteel.com/alexwan/comments/commentRss/222419.htmlhttp://www.aygfsteel.com/alexwan/services/trackbacks/222419.html
create tablespace data datafile '/home/oracle/databases/ora10/data .dbf'
size                                 100M
autoextend on maxsize                200M
extent management local uniform size  64K;

ps:需要确?'/home/oracle/databases/ora10/data .dbf' 中涉及到的文件夹存在,q且oralce用户有写的权?

Alexwan 2008-08-16 13:51 发表评论
]]>
[linux]linux下去除ؕ?q原成英?的简单方?/title><link>http://www.aygfsteel.com/alexwan/archive/2008/08/07/220651.html</link><dc:creator>Alexwan</dc:creator><author>Alexwan</author><pubDate>Thu, 07 Aug 2008 05:33:00 GMT</pubDate><guid>http://www.aygfsteel.com/alexwan/archive/2008/08/07/220651.html</guid><wfw:comment>http://www.aygfsteel.com/alexwan/comments/220651.html</wfw:comment><comments>http://www.aygfsteel.com/alexwan/archive/2008/08/07/220651.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/alexwan/comments/commentRss/220651.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/alexwan/services/trackbacks/220651.html</trackback:ping><description><![CDATA[?etc/profile的最后添加如下两?br /> <strong>export  LANG="C"<br /> export  LC_CTYPE=""<br /> </strong>然后使用命osource /etc/profile使之生效<br /> 使用locale命o查输出是否和如下内容一?br /> LANG=C<br /> LC_CTYPE=<br /> LC_NUMERIC="C"<br /> LC_TIME="C"<br /> LC_COLLATE="C"<br /> LC_MONETARY="C"<br /> LC_MESSAGES="C"<br /> LC_PAPER="C"<br /> LC_NAME="C"<br /> LC_ADDRESS="C"<br /> LC_TELEPHONE="C"<br /> LC_MEASUREMENT="C"<br /> LC_IDENTIFICATION="C"<br /> LC_ALL=<br /> <br /> 如果是则说明已经生效.<br /> 那么在linux的图形界面上׃会出中?也就没有和中文ؕ?<br /> ps:参考的操作pȝ为opensuse 10.1<br /> <br /> By the way:弄到linux正常昄中文的办法我q没学到!<br /> <img src ="http://www.aygfsteel.com/alexwan/aggbug/220651.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/alexwan/" target="_blank">Alexwan</a> 2008-08-07 13:33 <a href="http://www.aygfsteel.com/alexwan/archive/2008/08/07/220651.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[pgsql]linux下开启postgres sql数据库服务器命ohttp://www.aygfsteel.com/alexwan/archive/2008/07/11/214337.htmlAlexwanAlexwanFri, 11 Jul 2008 13:33:00 GMThttp://www.aygfsteel.com/alexwan/archive/2008/07/11/214337.htmlhttp://www.aygfsteel.com/alexwan/comments/214337.htmlhttp://www.aygfsteel.com/alexwan/archive/2008/07/11/214337.html#Feedback1http://www.aygfsteel.com/alexwan/comments/commentRss/214337.htmlhttp://www.aygfsteel.com/alexwan/services/trackbacks/214337.html /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 & Q开PGQ?br /> exit (恢复为root)

Alexwan 2008-07-11 21:33 发表评论
]]>
վ֩ģ壺 | е| Ƽ| Ƥɽ| żҸ| | | | κ| | ̩˳| ຣʡ| | | բ| տ| ׯ| | ɫ| | | | Ϸ| ͩ| | Դ| ذ| | ˫Ѽɽ| | | ư| | ʡ| | ¤| ӯ| | | ѽ| |