linuxϵͳ¹¤³ÌʦÃæÊÔÌâ(¸½´ð°¸)
1.²é¿´Linuxϵͳµ±Ç°µ¥¸ö¹²ÏíÄÚ´æ¶ÎµÄ×î´óÖµ£¨ÃüÁ
ipcs -m
ipcs -a
2.ÓÃʲôÃüÁî²éѯָ¶¨IPµØÖ·µÄ·þÎñÆ÷¶Ë¿Ú
ÌâÒâÓ¦¸ÃÊÇ nmap ºÍnbtscan ÃüÁîÀ´É¨°É¡£
3.crontabÖÐÓÃʲôÃüÁÒåij¸ö³ÌÐòÖ´ÐеÄÓÅÏȼ¶±ð
nice/renice£º½ø³ÌÖ´ÐÐÓÅÏȼ¶
¸ÅÄ
½ø³ÌÓÅÏȼ¶£ºÏµÍ³°´½ø³ÌÓÅÏȼ¶µÄ²»Í¬·ÖÅäCPUʱ¼ä£¬ÓÅÏȼ¶¸ßµÄ½ø³Ì»áµÃµ½¸ü¶àµÄCPUʹÓÃʱ¼ä£¬ÒÔÌá¸ßËٶȣ¬Ëõ¶Ì×ܵÄÖ´ÐÐʱ¼ä¡£
½ø³ÌÓÅÏȼ¶·¶Î§£º-20ÖÁ19
×î¸ßµÈ¼¶£º-20
×îµÍµÈ¼¶£º19
ϵͳ¹ÜÀíÔ±ÓÐȨ½«½ø³ÌÓÅÏȼ¶ÉèÖÃΪ-1ÖÁ-20£¬¶øÆÕͨÓû§Ö»ÄÜÉèÖÃ0ÖÁ19¡£
½ø³ÌÔËÐеÄĬÈϵȼ¶Îª0¡£
ÓÃniceÖ´ÐеĽø³ÌÆäĬÈϵȼ¶Îª10£¨¼´nice <³ÌÐòÃû>£¬²»Ö¸¶¨µÈ¼¶Ê±£©¡£
¸ñʽ£º
nice <³ÌÐòÃû>
nice -<µÈ¼¶> <³ÌÐòÃû>
È磺(ÃüÁîºó¼Ó&±íʾÒÔºǫ́ÔËÐÐ)
vi & ÓÅÏȵȼ¶0£¬Ä¬Èϵȼ¶¡£
nice vi & ÓÅÏȵȼ¶10£¬Ê¹ÓÃniceÖ´ÐгÌÐòʱµÄĬÈϵȼ¶¡£
nice -50 vi & ÓÅÏȵȼ¶19£¬-ºÅ±íʾѡÏµÈ¼¶50³¬¹ý×îµÍµÈ¼¶19£¬Òò´ËϵͳÒԵȼ¶19Ö´ÐС£
nice -18 vi & ÓÅÏȵȼ¶18¡£
nice --50 vi & ÓÅÏȵȼ¶-20£¬Ñ¡ÏîֵΪ-50£¬³¬¹ý×î¸ßµÈ¼¶-20£¬Òò´ËϵͳÒԵȼ¶-20Ö´ÐС£
nice --18 vi & ÓÅÏȵȼ¶-18¡£
ͨ¹ýps -l¿É²é¿´ÒÔÉÏÃüÁîµÄÖ´ÐÐÇé¿ö£¨×¢Òâ²é¿´¸÷vi½ø³ÌNIÖµµÄ²»Í¬£©¡£
ÖØе÷ÕûÕýÔÚÖ´ÐеĽø³ÌµÄÓÅÏȼ¶£º
µ÷ÕûÖ¸¶¨PID½ø³ÌµÄµÈ¼¶
renice <µÈ¼¶> <PID>
×¢Ò⣺<µÈ¼¶>ÊDzÎÊý£¬²»ÊÇÑ¡ÏûÓÐǰ׺-ºÅ¡£
µ÷ÕûÖ¸¶¨Óû§µÄËùÓнø³ÌµÄµÈ¼¶
renice <µÈ¼¶> <Óû§Ãû1> <Óû§Ãû2> ...
µ÷ÕûÖ¸¶¨×éµÄËùÓÐÓû§µÄËùÓнø³ÌµÄµÈ¼¶
renice <µÈ¼¶> -g <×éÃû1>
4.ÈçºÎÈÃhistoryÃüÁîÏÔʾ¾ßÌåʱ¼ä
HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "
expect HISTTIMEFORMAT
ÖØпª»úºó»á»¹Ô£¬¿ÉÒÔд£¯etc£¯profile
5.²é¿´Linuxϵͳµ±Ç°Ö¸¶¨Óû§µÄÓʼþ¶ÓÁÐ
mailq ÃüÁî
´òÓ¡Á½ÖÖÀàÐ͵ÄÁÐ±í£º
mailq ÃüÁîÁгöÈçÏÂËùʾµÄÓʼþ¶ÓÁУº
Mail Queue(1 request)
---QID---- --Size-- -----Q-Time----- ------Sender/Recipient-----
AA02508 3 Thu Dec 17 10:01 root
(User unknown)
bad_user
mailq -v ÃüÁîÁгöÈçÏÂËùʾµÄÓʼþ¶ÓÁУº
Mail Queue (1 request)
---QID---- --Size-- -Priority- ---Q-Time--- --Sender/Recipient--
AA02508 3 1005 Dec 17 10:01 root
(User unknown)
bad_
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......
1¡¢°²×°°ü£º
ÏÂÔØÍøÖ·£ºhttp://dev.sun.com.cn/glassfish/index_zh.html
glassfish-installer-v2.1-b60e-linux-ml.jar£¨°æ±¾£º2.1£©
2¡¢½âѹGlassFishÈí¼þ°ü²¢×Ô¶¯´´½¨Ò»¸öеÄÎļþ¼Ð½Ð“glassfish”
java -Xmx256m -jar glassfish-installer-v2.1-b60e-linux-ml.jar
»Ø¸´A
mv glassfish /usr/local/
3¡¢É ......
ÎÒÃÇÔÚLinuxÏ°²×°ÏµÍ³Èí¼þµÄʱºò,¾³£Óöµ½Ò»Ð©ÏµÍ³»·¾³±äÁ¿ÅäÖõÄÎÊÌ⡣ʲôÊÇ»·¾³±äÁ¿£¿ÈçºÎ¶¨ÖÆ»·¾³±äÁ¿£¿ÎÒ½«ÔÚÏÂÃæ×öһЩ½éÉÜ¡£
Ò»¡¢ ʲôÊÇ»·¾³±äÁ¿£¿
LinuxÊÇÒ»¸ö¶àÓû§µÄ²Ù×÷ϵͳ¡£¶àÓû§Òâζ×Åÿ¸öÓû§µÇ¼ϵͳºó£¬¶¼ÓÐ×Ô¼º×¨ÓõÄÔËÐл·¾³¡£¶øÕâ¸ö»·¾³ÊÇÓÉÒ»×é±äÁ¿Ëù¶¨Òå, Õâ×é±äÁ¿±»³ÆΪ»·¾³±äÁ¿¡£Óû§ ......
LinuxÉ豸Çý¶¯ÖбØÐë½â¾öµÄÒ»¸öÎÊÌâÊǶà¸ö½ø³Ì¶Ô¹²Ïí×ÊÔ´µÄ²¢·¢·ÃÎÊ£¬²¢·¢·ÃÎʻᵼÖ¾ºÌ¬£¬linuxÌṩÁ˶àÖÖ½â¾ö¾ºÌ¬ÎÊÌâµÄ·½Ê½£¬ÕâЩ·½Ê½Êʺϲ»Í¬µÄÓ¦Óó¡¾°¡£
LinuxÄÚºËÊǶà½ø³Ì¡¢¶àÏ̵߳IJÙ×÷ϵͳ£¬ËüÌṩÁËÏ൱ÍêÕûµÄÄÚºËͬ²½·½·¨¡£ÄÚºËͬ²½·½·¨ÁбíÈçÏ£º
ÖжÏÆÁ±Î
Ô×Ó²Ù×÷
×ÔÐýËø
¶Áд×ÔÐýËø
˳ÐòËø
......
Ô´³ÌÐò±àÒë
MakefileµÄ±àд
³ÌÐò¿âµÄÁ´½Ó
³ÌÐòµÄµ÷ÊÔ
Í·ÎļþºÍϵͳÇóÖú
1.Ô´³ÌÐòµÄ±àÒë
ÔÚLinuxÏÂÃæ,Èç¹ûÒª±àÒëÒ»¸öCÓïÑÔÔ´³ÌÐò,ÎÒÃÇҪʹÓÃGNUµÄgcc±àÒëÆ÷. ÏÂÃæÎÒÃÇÒÔÒ»¸öʵÀýÀ´ËµÃ÷ÈçºÎʹÓÃgcc±àÒëÆ÷.
......