??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产精品久久久,久久精品夜色噜噜亚洲aⅴ,日本在线播放一区二区三区http://www.aygfsteel.com/xiaodong0417/category/51485.htmlJava Studyzh-cnThu, 21 Nov 2013 08:35:58 GMTThu, 21 Nov 2013 08:35:58 GMT60Linux 查看pȝ信息常用命ohttp://www.aygfsteel.com/xiaodong0417/archive/2013/11/21/406619.html王树?/dc:creator>王树?/author>Thu, 21 Nov 2013 03:21:00 GMThttp://www.aygfsteel.com/xiaodong0417/archive/2013/11/21/406619.htmlhttp://www.aygfsteel.com/xiaodong0417/comments/406619.htmlhttp://www.aygfsteel.com/xiaodong0417/archive/2013/11/21/406619.html#Feedback0http://www.aygfsteel.com/xiaodong0417/comments/commentRss/406619.htmlhttp://www.aygfsteel.com/xiaodong0417/services/trackbacks/406619.html# uname -a # 查看内核/操作pȝ/CPU信息 
# head -n 1 /etc/issue # 查看操作pȝ版本 
# cat /proc/cpuinfo # 查看CPU信息 
# hostname # 查看计算机名 
# lspci -tv # 列出所有PCI讑֤ 
# lsusb -tv # 列出所有USB讑֤ 
# lsmod # 列出加蝲的内核模?nbsp;
# env # 查看环境变量资源 
# free -m # 查看内存使用量和交换Z用量 
# df -h # 查看各分Z用情?nbsp;
# du -sh <目录?gt; # 查看指定目录的大?nbsp;
# grep MemTotal /proc/meminfo # 查看内存总量 
# grep MemFree /proc/meminfo # 查看I闲内存?nbsp;
# uptime # 查看pȝq行旉、用h、负?nbsp;
# cat /proc/loadavg # 查看pȝ负蝲盘和分?nbsp;
# mount | column -t # 查看挂接的分区状?nbsp;
# fdisk -l # 查看所有分?nbsp;
# swapon -s # 查看所有交换分?nbsp;
# hdparm -i /dev/hda # 查看盘参数(仅适用于IDE讑֤) 
# dmesg | grep IDE # 查看启动时IDE讑֤状늽l?nbsp;
# ifconfig # 查看所有网l接口的属?nbsp;
# iptables -L # 查看防火墙设|?nbsp;
# route -n # 查看路由?nbsp;
# netstat -lntp # 查看所有监听端?nbsp;
# netstat -antp # 查看所有已l徏立的q接 
# netstat -s # 查看|络l计信息q程 
# ps -ef # 查看所有进E?nbsp;
# top # 实时昄q程状态用?nbsp;
# w # 查看zd用户 
# id <用户?gt; # 查看指定用户信息 
# last # 查看用户d日志 
# cut -d: -f1 /etc/passwd # 查看pȝ所有用?nbsp;
# cut -d: -f1 /etc/group # 查看pȝ所有组 
# crontab -l # 查看当前用户的计划Q务服?nbsp;
# chkconfig –list # 列出所有系l服?nbsp;
# chkconfig –list | grep on # 列出所有启动的pȝ服务E序 
# rpm -qa # 查看所有安装的软g?/span>

]]>
Linux 上服务的安装以及CZQApache服务的安装(转)http://www.aygfsteel.com/xiaodong0417/archive/2013/01/17/394342.html王树?/dc:creator>王树?/author>Thu, 17 Jan 2013 02:23:00 GMThttp://www.aygfsteel.com/xiaodong0417/archive/2013/01/17/394342.htmlhttp://www.aygfsteel.com/xiaodong0417/comments/394342.htmlhttp://www.aygfsteel.com/xiaodong0417/archive/2013/01/17/394342.html#Feedback0http://www.aygfsteel.com/xiaodong0417/comments/commentRss/394342.htmlhttp://www.aygfsteel.com/xiaodong0417/services/trackbacks/394342.html1. chkconfig脚本格式Q?/div>
#!/bin/sh
#chkconfig 2345 55 45
#上面为固定格式:2345 表示q行U别Q?5表示开机执行顺序,45为关机顺?
#descriptionQthis is just a demo of chkconfig script
case “$1” in
start)
<start-script>
;;
Stop)
<stop-script>
;;
Status)
Echo <the information you want to display>
;;
*)
Echo “the usage of the script”
Case
2. 然后脚本保?q赋予执行权?再复制到/etc/init.d目录
#chmod a+x <myscript>
#copy <myscript> /etc/init.d
3. 使用chkconfig命od成服?
#chkconfig --add <myscript>
#chkconfig --level 35 <myscript > on
#chkconfig --list <myscript>
4. 然后可以通过service命o理?
#service <myscript> start | stop | status
5. 下面是我写的一个实例脚本,大家可以参考一些格式:
#!/bin/sh
#chkconfig: 2345 99 99
#description:the script to set the network at run level 2345
IN=eth0
OUT=eth1
HOST_NAME=cluster1.yang.com
INIP=192.168.10.10
OUTIP=192.168.136.10
MASK=255.255.255.0
IP=/sbin/ip
IFC=/sbin/ifconfig
ROUTE=/sbin/route
#flush the address
case "$1" in
start)
#echo "flush the address..."
#$IP addr flush dev eth0
#$IP addr flush dev eth1
echo "set the address..."
$IFC $IN $INIP netmask $MASK up
$IFC $OUT $OUTIP netmask $MASK up
echo "set the hostname..."
hostname $HOST_NAME
echo "set the default gateway..."
$IP route flush all
$ROUTE add default gw 192.168.136.2
echo "finshed!!!"
;;
stop)
echo "flush the network setting..."
$IP addr flush dev eth0
$IP addr flush dev eth1
echo "flush finshed!!!"
;;
status)
echo "hostname is $HOST_NAME"
$IFC eth0
$IFC eth1
;;
*)
echo "requires start,stop or status"
;;
esac
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------

在Linux中chkconfighttpdddQApache服务器的最新稳定发布版本是httpd-2.2..0,官方下蝲地址是:http://httpd.apache.org/download.cgi。我们通过下面的步骤来快速的搭徏一个web服务器?/p>

1、下载源码文件httpd-2.2.0.tar.gz 到linux服务器的某个目录?br />2、解压文?# tar zxvf httpd-2.2.0.tar.gz .
3、配|?# ./configure –refix=/usr/local/apache //指定安装目录Q以后要删除安装只需删除q个目录?br />4、编译和安装?# make ; make install .
5、编写启动脚本,把它攑ֈ目录 /etc/rc.d/init.d/里,q里取名为httpd,其内容如下:
 

  1. #!/bin/bash  
  2. #description:http server  
  3. #chkconfig: 235 98 98  
  4. case "$1" in  
  5. start)  
  6. echo "Starting Apache daemon..."  
  7. /usr/local/apache2/bin/apachectl -k start  
  8. ;;  
  9. stop)  
  10. echo "Stopping Apache daemon..."  
  11. /usr/local/apache2/bin/apachectl -k stop  
  12. ;;  
  13. restart)  
  14. echo "Restarting Apache daemon..."  
  15. /usr/local/apache2/bin/apachectl -k restart  
  16. ;;  
  17. status)  
  18. statusproc /usr/local/apache2/bin/httpd  
  19. ;;  
  20. *)  
  21. echo "Usage: $0 {start|stop|restart|status}"  
  22. exit 1  
  23. ;;  
  24. Esac  

 

注意Q?description:http server q一行必d?/strong>Q否则在执行命o

 # chkconfig –add httpd

时会出现“service apache does not support chkconfig”的错误报告?/p>

#chkconfig: 2345 98 98 表示在执行命?/p>

 # chkconfig –add httpd 时会在目?/etc/rc2.d/ ?etc/rc3.d/ /etc/rc5.d 分别生成文g S98httpd?K98httpd。这个数字可以是别的?/p>

6、执行命?# chkconfig –add httpd Q进入目?etc/rc3.d/查是否生成文? S98httpd及K98httpd.
7、启动服?# service httpd start .



]]>
(?Windows Server 2003 中寻扄口与q程的关?/title><link>http://www.aygfsteel.com/xiaodong0417/archive/2012/01/30/368992.html</link><dc:creator>王树?/dc:creator><author>王树?/author><pubDate>Mon, 30 Jan 2012 01:31:00 GMT</pubDate><guid>http://www.aygfsteel.com/xiaodong0417/archive/2012/01/30/368992.html</guid><wfw:comment>http://www.aygfsteel.com/xiaodong0417/comments/368992.html</wfw:comment><comments>http://www.aygfsteel.com/xiaodong0417/archive/2012/01/30/368992.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/xiaodong0417/comments/commentRss/368992.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/xiaodong0417/services/trackbacks/368992.html</trackback:ping><description><![CDATA[@import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); <div> QQWindows Server 2003 中寻扄口与q程的关?  AQ如果发C些从没见q的端口P你怎么分辩端口是不是木马开攄端口Q或者在q程列表中发现陌生的q程Ӟ是否想知道该q程在你的系l中开了什?端口Q?一Q根据进E查端口号首先在开始菜单的“q行”框中输入“cmd.exe”q入命o提示W窗口,先键?#8220;tasklist”命o列出系l正在运行的q程 列表Q把你要查的q程所对应?#8220;PID”可下或复制。把q程的PID好记下后Q接下来qq个PIDh该进E所开的端口显C出来了。在当前的命令符?l箋键入“netstat -ano | find 1140”命oQ其?#8220;netstat -ano”参数表示以数字Ş式显C所有活动的TCPq接以及计算机正在侦听的TCP、UDP端口Qƈ且显C查找进EID(PID)P“|find 1140”表示查找q程PID?#8220;1140”的TCPq接以及TCP、UDP端口的侦听情况(在实际应用中Q需要把你刚才记下或复制的PIDh换掉q里 ?140Q。按“回R”键后Q就会显C出该进E所开的端口号?二,Ҏ端口hq程   在命令提C符H口中输?#8220;netstat -ano”命oQ列出系l当前的端口列表Q该命o的作用已在上面提q了?o参数的作用主要是昄各端口对应的q程PIDP现在把你要查的端口对应的q?EPID可下或复制。然后在命o提示W下l箋输入tasklist /fi“PID eq 788”(在实际应用中Q需要把你复制或C的PIDh换掉q里?88)Q这行语?fi参数表示?#8220;tasklist”中筛选,?#8220;ID eq 788”则是指定{选的条gQ按“回R”键后Q就会显C出端口对应的进E?三,查出q程对应的程?nbsp;  知道了端口和q程的关联后Q如何再q一步查q程是那个Y件或E序的进E呢Q下面的操作需要用到Windows2000(Server?Professional版都可以)安装光盘中的一个工兗首先在安装光盘?#8220;Support\Tools\”目录下,用解压Y件打开 “support.cab”压羃包,扑ֈ“tlist.exe”文gQ将此文仉攑ֈM目录Q如“D:\Support”。然后在命o提示W窗口中切换 到此目录Q运?#8220;tlist.exe”命oQ把要查的进E对应的PID可下或复制Q第一列就是进E的PIDPQ然后l输?#8220;tlist.exe 2012”命oQ你输入的时候,需要将刚才C的PIDh换掉q里?012Q,“CmdLine:”后面昄的就是该q程对应的Y件所在的目录。除?之外Q返回信息中q列Z该进E所调用的文Ӟ得到了这些信息就可以很容易查E对应的E序了。假如想关闭某个q程Q可把该q程的PID可下,在命?提示W下输入“taskkill/pid 2400”(2400是PID?可以将PID号ؓ2400的进E关闭,如果要强制关闭该q程Q只dq条命o的后面加?#8220;/f”参数卛_?/div> 来源Q?a >http://www.cn6154.com/ask/question.php?id=2623</a><img src ="http://www.aygfsteel.com/xiaodong0417/aggbug/368992.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/xiaodong0417/" target="_blank">王树?/a> 2012-01-30 09:31 <a href="http://www.aygfsteel.com/xiaodong0417/archive/2012/01/30/368992.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Ubuntu 25个快捷键http://www.aygfsteel.com/xiaodong0417/archive/2011/12/14/366380.html王树?/dc:creator>王树?/author>Wed, 14 Dec 2011 14:58:00 GMThttp://www.aygfsteel.com/xiaodong0417/archive/2011/12/14/366380.htmlhttp://www.aygfsteel.com/xiaodong0417/comments/366380.htmlhttp://www.aygfsteel.com/xiaodong0417/archive/2011/12/14/366380.html#Feedback0http://www.aygfsteel.com/xiaodong0417/comments/commentRss/366380.htmlhttp://www.aygfsteel.com/xiaodong0417/services/trackbacks/366380.html1. Win+E - 昄所有桌面,方便的左右选择?/span>

2. Alt+Ctrl+Left/Right Arrow -切换桌面

3. Alt+Ctrl+Shift+Left/Right Arrow – Ud当前H口到其他桌?/span>

4. Alt + Shift+ Up Arrow – 以很L方式昄当前H口

5. Alt+F9/F10 – 最化/最大化当前H口

6. Alt+F5 -不最大化当前H口

7. Alt+F7 – Ȁzd前窗口的Ud选项Q你可以使用方向键移动当前窗口,甚至Ud到其他桌面?/span>

8. Alt+F8 – 用方向键调整当前H口大小


9. Ctrl + Alt + D – 昄桌面/恢复当前H口

10. Alt+ Tab – 切换H口

Nautilus

11. Shift+Ctrl+N – 新徏文g? 很有?/span>

12. Alt + Enter – 查看选择文g/文g夹的属性,代替单击右键选择属?/span>

13. Ctrl + 1/2 – 改变文g夹视图查看方式,图标视图/列表视图

14. Ctrl + W – 关闭当前NautilusH口

15. Ctrl + Shift + W – 关闭所有NautilusH口

16. Ctrl+T – 在Nautilus中新Z个标{?/span>

17. Alt + Up/Down Arrow – Ud到父文g?选择的文件夹

18. Alt + Left/Right Arrow – 后退/前进

19. Alt + Home -直接UdC文g?/span>

20. F9 – 开xCNautilus侧边?/span>

21. Ctrl + H -开xC隐藏文件夹

22. Ctrl + Alt + L -锁屏

23. Alt + F1 – 打开应用E序菜单

24. Alt + F2 – 打开q行应用E序对话?/span>

25. Win + 鼠标滚轮 – 攑֤/~小屏幕



]]>
Groovy Eclipse 插g安装p|http://www.aygfsteel.com/xiaodong0417/archive/2011/11/20/364373.html王树?/dc:creator>王树?/author>Sun, 20 Nov 2011 13:33:00 GMThttp://www.aygfsteel.com/xiaodong0417/archive/2011/11/20/364373.htmlhttp://www.aygfsteel.com/xiaodong0417/comments/364373.htmlhttp://www.aygfsteel.com/xiaodong0417/archive/2011/11/20/364373.html#Feedback0http://www.aygfsteel.com/xiaodong0417/comments/commentRss/364373.htmlhttp://www.aygfsteel.com/xiaodong0417/services/trackbacks/364373.html 然后只能在网上找到插件的压羃包,下蝲后再安装好了。步骤如下:
1.    下蝲groovy 插g的安装包Q链接:
        For Eclipse 3.7:
        http://dist.springsource.org/release/GRECLIPSE/e3.7/archive-2.5.1.xx-20110628-1600-e37.zip 
        For Eclipse 3.6: 
        http://dist.springsource.org/release/GRECLIPSE/e3.6/archive-2.5.1.xx-20110627-1300-e36.zip

2.    q入eclipse安装插g的页面,点击Add d新的插gQ在弹出的对话框中选择Archieve
        然后选择下蝲的压~文Ӟ安装可以了?img src ="http://www.aygfsteel.com/xiaodong0417/aggbug/364373.html" width = "1" height = "1" />

]]>
վ֩ģ壺 | | | ̫| | | | | ϻ| | | ɽ| | | | | | ľ| | | ³ľ| ݶ| | | Թ| ɽ| | | | | ˳ƽ| | ˫| Զ| ˼é| | ֻ| | ƽ| | |