Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux·þÎñÆ÷°²×°£¨centos5.3 apache php mysql£©

 ×î½ü×°Á˼¸´Îlinux£¬Ñ§Á˺ܶ࣬°Ñ¹ý³ÌдÏÂÀ´ÁË£¬Ï£Íû¸ø¿´µÄÈË°ïÖú£¬Ò²¶à¸øЩ½¨Òé¡£
Ò»¡¢Ñ¡Ôñ×îС»¯°²×°£¨Ê²Ã´Ò²²»Ñ¡£¬µ«ÊÇ»¹ÊÇÑ¡ÁËvim£©
¶þ¡¢Ê¹ÓùâÅÌ×÷ΪԴ°²×°£¨ÏêÇé²Î¼û/etc/yum.repos.d/CentOS-Media.repo£©ËùÓÃÌ×¼þ£¨Ê¹ÓÃyumµÄÇ¿´ó¹¦ÄÜ£©
####²¢²»ÊǼòµ¥µÄÓÃyumÃüÁÐèÒªÔÚyumºóÃæ¼ÓһЩ¶«Î÷£¬/etc/yum.repos.d/CentOS-Media.repoÀïÃæ˵Ã÷ÁË¡£
1.°²×°wget£¬man
yum install wget£¨±È½ÏÊìϤµÄ£©
2.°²×°cron
yum list | grep ''£¨²»Ì«ÊìϤ£©
yum install vixie-cron.i386
3.°²×°apache,php,mysql
£¨¿´ÁËÍøÉÏһЩ×ÊÁÏ£¬ÓеÄÊÇ×Ô¼º±àÒëµÄ£¬¿´ÁËcentosµÄÍøÕ¾£¬½¨ÒéʹÓÃyum°²×°£¬Õâ¸öÊǺÍredhatÒ»ÑùµÄ°æ±¾£¬Èç¹ûÒ»¶¨ÒªÊ¹ÓÃа汾£¬¿É²Î¿¼
http://wiki.centos.org/HowTos
/PHP_5.1_To_5.2?highlight=%28php%29|%28mcrypt%29£©
ÎÒÊÇÒÔ¹âÅÌ×÷ΪԴÓÃyum°²×°µÄ
1)
yum list | grep 'httpd'
yum install *****
2)
yum list | grep 'php' (ÓкܶàphpÀ©Õ¹)
yum install *****(Ñ¡Ôñ×Ô¼º°²×°µÄ£¬Ö§³ÖͨÅä·û)
3£©
yum list | grep 'mysql'
yum install *****
mysqladmin -u root -p 'yourpassword'£¨¸ømysqlÉèÃÜÂ룩
ÉèÖÿª»úÆô¶¯£º
chkconfig --level 35 httpd on
chkconfig --level 35 mysqld on
chkconfig --list | grep 'httpd'
chkconfig --list | grep 'mysqld'
Èý.¹Øµô²»ÐèÒªµÄ·þÎñ
netstat -tnlp
Èç¹ûÊÇ×îС»¯°²×°µÄ£¬³ýÁËssh,httpd,mysqldÖ®Íâ²»»áÓÐʲô¡£ssh²»ÐèÒª¹Øµô¡£
ËÄ.ÅäÖÃÍøÂç
ÒòΪÊDzâÊÔ£¬°²×°¹ý³ÌÖÐÑ¡Ôñdhcp£¬ÏÖÔÚÅäÖÃһϣ¬»¹¿ÉÒÔ¸ü¼ÓÊìϤ¡£
Hostname  *****.3322.org £¨ÔÚÏ£ÍøÉêÇëµÄ¶¯Ì¬ÓòÃû£¬ÈÔȻʹÓÃĬÈÏÖ÷»úÃûÒ²¿ÉÒÔ¡££©
IP:       192.168.0.153
Netmask   255.255.255.0
Network   192.168.0.0
Broadcast 192.168.0.255
Gateway   192.168.0.1
ÁªÍ¨dns 202.106.46.151, 202.106.195.68
1.ÐÞ¸ÄÖ÷»úÃû
vim /etc/sysconfig/network
2.ÐÞ¸ÄÍøÂç²ÎÊý
1£©
vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0               
BOOTPROTO=static          
BROADCAST=192.168.0.255   
HWADDR=************       


Ïà¹ØÎĵµ£º

Linux Çý¶¯¿ª·¢âÒ¶¡½âÅ£Ö®¶þ —— Ä£¿é±à³Ì


±¾ÎÄÊǽ¨Á¢ÔÚÇ°ÃæµÄ¿ª·¢»·¾³ÒѾ­³É¹¦½¨Á¢µÄ»ù´¡Ö®Éϵġ£Èç¹ûûÓн¨Á¢ºÃ£¬Çë²ÎÕÕ¡¶ Linux Çý¶¯¿ª·¢âÒ¶¡½âÅ£Ö®Ò» —— ¿ª·¢»·¾³µÄ½¨Á¢¡·¡£
ÒѾ­ÓкܶàÎĵµ½²ÊöÄ£¿é±à³Ì£¬¸öÈ˾õµÃ¡¶ The Linux kernel module programming guide ¡·ÊÇ×îÏ꾡µÄ¡£±¾ÎIJ»ÔÙÁ¢×ãÓÚ´ÓÀíÂÛÉÏÈ¥²ûÊöÄ£¿é±à³ÌµÄÏà¹Ø֪ʶ£¬¶ø×ÅÖØ´Óʵ¼ùµÄ» ......

LINUX SOCKET AIO ÎÊÌâ

дÁË´úÂ룬ʹÓÃace_proactor, Ô­À´windowsÅܵ÷dz£Æ¯ÁÁ£¬À´µ½linux¾Íʱ²»Ê±²»¹¤×÷£¬È»ºó¼Óasynce_connectorºó£¬·¢ÏÖÍê³É²»Äܹ¤×÷£¬async_stream_writeºó£¬·¢ÏÖ¿¨ÔÚÄÇÀ¸ù±¾·¢²»³öÈ¥£¬¶à´Î·ÖÎöºó£¬·¢ÏÖ£¬Ô­À´Ö®Ç°ÓÐaio_readûÓÐÍê³É£¬aio_writeµÄÇëÇó¾ÍblockÄÇÀïÁË£¬writeÕâ¸ö²Ù×÷¾¹È»Ò»¶¨ÒªµÈÇ°µÄaio_readÍê³ÉÖ®ºó£¬²Å¿ÉÒ ......

Linux ÃüÁî

++²é¿´Ó²ÅÌʹÓÃÇé¿ö
df –m
++²é¿´Ä¿Â¼µÄ´óС
du –sh dirname
++ÏÔʾÄÚ´æʹÓÃÇé¿ö
free –m
++¶Ë¿ÚµÄÏêϸÁбí
/etc/services
++ÏÔʾ×îºóÒ»¸öµÇ¼µ½ÏµÍ³µÄÓû§
last
++²é¿´Ó²Å̵ÄʹÓÃÇé¿ö
df -k ÒÔKΪµ¥Î»ÏÔʾ
df -h ÒÔÈËÐÔ»¯µ¥Î»ÏÔʾ£¬¿ÉÒÔÊÇb,k,m,g,t.. ......

LinuxºÚ¿Í´óÆعâÍƼö¹¤¾ß

Ò».Ô¤·À
1.sXid  http://os.51cto.com/art/200907/134874.htm
ÏÂÔصØÖ·:http://freshmeat.net/projects/sxid/
2. LSAT
ÏÂÔصØÖ·:http://usat.sourceforge.net/
3.portsentry
ÏÂÔصØÖ·:http://sourceforge.net/projects/sentrytools/
4. fail2ban
http://www.fail2ban.org/
5.lids
http://www.lids.org/
¶þ ......

Ò»¸ö¼òµ¥µÄlinuxÏÂÍøÂç³ÌÐòʵÀý£­ÍøÂç±à³ÌÈëÃÅ ÊÕ²Ø


http://blog.csdn.net/manio/archive/2006/10/13/1333202.aspx
/*
 server 
*/
#include 
<
stdio.h
>
#include 
<
sys
/
types.h
>
#include 
<
netinet
/
in
.h
>
#include 
<
sys
/
socket.h
>
#include 
<
netdb.h
> ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ