linuxÏÂapche+php+mysqlµÄ±àÒë°²×°(6)
name=CentOS-$releasever - Addons
baseurl=http://mirror.vmmatrix.net/CentOS/$releasever/os/$basearch/
http://mirror.be10.com/centos/$releasever/os/$basearch/
http://centos.hostlink.com.hk/$releasever/os/$basearch/
http://ftp.hostrino.com/pub/centos/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirror.vmmatrix.net/CentOS/$releasever/os/$basearch/
http://mirror.be10.com/centos/$releasever/os/$basearch/
http://centos.hostlink.com.hk/$releasever/os/$basearch/
http://ftp.hostrino.com/pub/centos/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
±£´æ¡£
È»ºóµ¼ÈëkeyÉý¼¶ÏàÓ¦yumÊý¾Ý
# rpm --imp
# yum list | tee /etc/yum.list //¶ÁÈ¡yum list Êý¾Ý£¬½«ÆäÊä³öµ½ /etc/yum.list¡£
£¨4£©¡¢¶¨Ê±Ð£Õý·þÎñÆ÷ʱ¼ä
# yum install ntp
# crontab -e
0 23 * * * root /usr/sbin/ntpdate 210.72.145.44 > /dev/null 2>&1
ÒÔÉÏÃüÁîÉèÖúúó´æÅÌ¡£ÄúµÄ»úÆ÷½«ÔÚÿÌìµÄ23:00¸ù¾ÝÖйú¹ú¼ÒÊÚʱÖÐÐĵÄNTP·þÎñÆ÷ʱ¼ä×Ô¶¯Ð£×¼Ê±¼ä¡£
(5). ¶ÔTCP/IPÍøÂç²ÎÊý½øÐе÷Õû£¬¼ÓÇ¿¿¹SYN FloodÄÜÁ¦
# echo 'net.ipv4.tcp_syncookies = 1' >> /etc/sysctl.conf //½«net.ipv4.tcp_syncookies = 1дÈësysctl.conf Îļþ
# sysctl -p //²é¿´
£¨6£©¡¢FTP·þÎñÆ÷µÄÅäÖÃ
vi /etc/vsftpd/vsftpd.conf
°Ñanonymous_enable=YES×¢Ê͵ô²»ÔÊÐíÄäÃûµÇ¼¡£
°Ñchroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
Ç°µÄ×¢ÊÍÈ¥µô¡£
°Ñftpd_banner=*Ç°µÄ×¢ÊÍÈ¥µô¡£ºóÃæ¸Ä³ÉÄãµÄ»¶ÓÐÅÏ¢(ÕâÑùÉèÖÿÉÒÔ±ÜÃâÏÔʾftp·þÎñÆ÷µÄ°æ±¾ÐÅÏ¢)
È»ºó±£´æ£¬service vsftpd start¾Í¿ÉÒÔÁË¡£
ÕâʱӦµ±Ìí¼ÓÓû§£¬ÒòΪrootĬÈϲ»ÄÜͨ¹ýFTP·½Ê½µÇ¼¡£
# adduser username
# passwd userpassword
ÕâÑù¶ÔÓÚÎÒÃÇÉÏ´«Ò»Ð©Îļþµ½ÏµÍ³Öкܷ½±ã¡£
4. ÖØÐÂÆô¶¯ÏµÍ³
# init 6
5. ʹÓà yum ³ÌÐò°²×°ËùÐ迪·¢°ü£¨ÒÔÏÂΪ±ê×¼µÄ RPM °üÃû³Æ£©
# yum install gcc gcc-c++ gcc-g77 flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ