linux°²×°mysql
1¡¢°²×°°ü
ÏÂÔØÍøÖ·£ºhttp://dev.mysql.com/downloads/mysql/
mysql-5.1.38.tar.gz£¨°æ±¾£º5.1.38£©
2¡¢Ìí¼ÓmysqlÓû§ÓëȺ
groupadd mysql
useradd -g mysql -s /sbin/nologin mysql
3¡¢½âѹÓë±àÒë
tar zxvf mysql-5.1.38.tar.gz
cd mysql-5.1.38/
./configure --prefix=/usr/local/mysql/ --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-big-tables --with-readline --with-ssl --with-embedded-server --enable-local-infile --with-plugins=all
make && make install
chmod +w /usr/local/mysql
chown -R mysql:mysql /usr/local/mysql
4¡¢´´½¨MySQLÊý¾Ý¿â´æ·ÅĿ¼¡¢ÒÔmysqlÓû§ÕʺŵÄÉí·Ý½¨Á¢Êý¾Ý±í
mkdir -p /usr/local/mysql/data/
chown -R mysql:mysql /usr/local/mysql
/usr/local/mysql/bin/mysql_install_db --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql
5¡¢my.cnfÅäÖÃÎļþ£¨mysqlÏà¹ØÎĵµ¾ù·ÅÔÚ/usr/local/mysql/share/mysql/£©
cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf
vi /etc/my.cnf
ÔÚ[client]ÏÂÃæÔö¼ÓÒ»ÐÐ:
[client]
default-character-set = utf8
ÔÚ[mysqld]ÏÂÃæÔö¼ÓÈýÐÐ:
[mysqld]
default-character-set = utf8
6¡¢´´½¨¹ÜÀíMySQLÊý¾Ý¿âµÄshell½Å±¾
cp /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysql
chown root:root /etc/rc.d/init.d/mysql
vi /etc/rc.d/init.d/mysql
# If you change base dir, you must also change datadir. These may get
# overwritten by settings in the MySQL configuration files.
basedir=/usr/local/mysql
datadir=/usr/local/mysql/data
7¡¢Æô¶¯MySQL
service mysql start
8¡¢ÐÞ¸Ä mysql µÄ root ÃÜÂ룺
/usr/local/mysql/bin/mysqladmin -u root password 'password'
9¡¢Í¨¹ýÃüÁîÐеǼ¹ÜÀíMySQL·þÎñÆ÷£¨ÌáʾÊäÈëÃÜÂë²¢»Ø³µ£©£º
/usr/local/mysql/bin/mysql -u root -p
10¡¢ÊäÈëÒÔÏÂSQLÓï¾ä£¬´´½¨Ò»¸öÏòÌض¨ip¿ª·ÅµÄÓû§ºÍÃÜÂë
GRANT ALL PRIVILEGES ON *.* TO 'root'@remote-ip IDENTIFIED BY 'password';
11¡¢²âÊÔnavicat:test connection
12¡¢ÐÞ¸ÄmysqlÖеÄuser±íroot@remote-ipµÄGrand-prvΪY
13¡¢ÖØÆômysql
service mysql restart
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃ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 ......
aep1000
Ö§³Ö¿ìËÙ¼ÓÃÜ´¦Àí¿¨ÒÔ¼ÓËÙ°²È«Ì×½Ó×ֲ㣨SSL£©¼ÓÃÜ£¬ÔÚ±¾ÊéÖв»ÓÃÓÚ½¨Á¢¼¯Èº¡£
anacron
ÓëcronºÍatÀàËÆ£¬¶¼ÊÇÔÚÌض¨Ê±¼ä¡¢ÉõÖÁÔÚϵͳûÓÐÁ¬ÐøÔËÐÐʱÆô¶¯ÃüÁîµÄ£¬ÔÚRed HatÉÏ£¬/etc/anacrontabÎļþÁгöÁËÿÌìÖ´ÐеÄcron×÷ÒµµÄÑ»·³£¹æÈÕÖ¾£¬Èç¹ûÄã½ûÓÃÁËËü£¬Ä㽫²»ÄÜÔÙÖ´ÐÐÈÕ־ѻ·£¬ÄãµÄϵͳ´ÅÅÌ×îºó½«±»ÌîÂú£¬Ô ......
ÕâÕó×ÓÔÚlinuxϵÄÒ»¸öÏîÄ¿ÐèÒªÓõ½epollÀ´³ÐÊÜÍøÂçµÄ¸ß¸ºÔØ£¬µ«ÊÇÔÚʹÓõĹý³ÌÖоÍÓöµ½ÁËһЩÎÊÌâ¡£
ÔÚÕû¸ö¹ý³ÌÖУ¬ÎÒÊÇÓÃEPOLL µÄ±ßÔµ´¥·¢Ä£Ê½À´ÊµÏÖÎÒÏëÒªµÄ¹¦ÄÜ¡£
ÎÒÊÇÕâÑùʵÏֵģºÔÚEPOLLÀïÃæ°Ñ¼àÌýµÄÃèÊö·û¸ø¼ÓÁ˽øÈ¥£¬È»ºóµ÷ÓÃepoll_waitÀ´¶Ô¿Í»§¶ ......
ǰЩÌìÔÚ×Ô¼ºµÄ±¾±¾ÉÏ×°ÁËÐéÄâ»ú£¬²¢°²×°ÁËredhat5£¬Ò»Çи㶨֮ºó·¢ÏÖ´ò¿ªÖÐÎÄÍøÒ³²»ÄÜÕý³£ÏÔʾ¡£Æô³õÒÔΪÊÇϵͳ±àÂëÎÊÌ⣬¿É¸ü¸ÄÁËϵͳ±àÂëºóÎÊÌâÒÀÈ»´æÔÚ£¬¶øÇÒϵͳµÄÎÄ×ÖÒ²±ä³ÉÂÒÂë¡£¿´À´²»ÊǼòµ¥µÄȱʡ±àÂëÎÊÌ⣬һ¶¨ÊÇϵͳûÓÐÖÐÎÄ°üµÄÔÒò¡£ÓÚÊǺõÅܵ½ÍøÉÏËÑÑ°ÖÐÎÄ°üµØÖ·£¬·¢ÏÖredhat5¹âÅÌÖдøÓÐÕâЩ°ü¡£ºÃÁË£¬·Ï»°²» ......