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

ÁªÏëR520 °²×° AS4.4 +apache+mysql+php

 Õ⼸Ìì°²×°ÁËһ̨linux·þÎñÆ÷¡£±¾À´Ò»Î»Í¦¼òµ¥¸öÊ£¬Ã»Ïëµ½ÕÛÌÚÁ˺ü¸Ìì¡£
Ê×ÏÈÊÇ °²×° AS4.4
·þÎñÆ÷ÊÇÁªÏë R520 G6£¬±¾ÒÔΪŪ¸öаæµÄunbuntu¾ÍÄÜÇý¶¯ÆðÀ´£¬Ã»Ïëµ½ÉÏÀ´¾ÍÓöµ½ÁËÂé·³¡£Ð°æµÄlinux»¹ÊÇû°ì·¨Çý¶¯ÆðÀ´£¬ÁªÏëËæ»ú¸øµÄÇý¶¯×î¸ß¾Íµ½AS4.4£¬Ã»°ì·¨Ö»ºÃÕÒÕÒAS4.4 °²×°ÁË¡£
Ê×ÏȹâÅÌÆô¶¯ ÊäÈë linux dd  ¼ÓÔØÈíÅ̵ÄÇý¶¯¡£
ÔÚÉèÖ÷ÖÇøÄÇÒ»²½£¬ÒªÑ¡ÊÖ¶¯ÉèÖ÷ÖÇø¡£
È»ºó£¬Õý³£°²×°¾Í¿ÉÒÔ¡£
µÚÒ»´ÎµÇ½ ÔÚͼÐνçÃæÏ ҪʹÓà ctrl+ alt +f1 Çл»µ½ Îı¾Ä£Ê½Ï ²ÅÄÜ rootµÇ½¡£
µÇ½ºó Ð޸ġ¢/etc/inittab  ÐÞ¸ÄÆô¶¯Ä£Ê½
´´½¨Ò»¸ö ·Ç root Óû§ 
 Çý¶¯HBA¿¨
½âѹ->°²×°
lsmod  ¿´ÊÇ·ñ¼ÓÔØÁËÇý¶¯
fdisk -l Äܹ»¿´µ½´æ´¢
¸ñʽ»¯´ÅÅÌ    mkfs.ext3 /dev/sda1
´´½¨Ò»¸ö¹ÒÔÚµÄĿ¼ mkdir /data
È»ºó¾ÍÊÇ          mount /dev/sda1 /data
ÿ´ÎÆô¶¯×Ô¶¯¹ÒÔØ  vi  /etc/rc.local
           ¼ÓÉÏ               mount /dev/sda1 /data
ÖÁ´Ë Linux°²×°Íê±Ï¡£
°²×° apche2.2
Ê×ÏÈ ÏÂÔØÒ»¸öаæµÄapache
tar -zxvf ......
# ./configure --prefix=/usr/local/apache --enable-so
# make & make install
# cp /usr/local/apache/bin/*  /usr/bin/
# cp /usr/local/apache/bin/apachectl /etc/init.d/httpd
Æô¶¯ apache 
/etc/init.d/httpd -k start
ͬÑù ±à¼­ /etc/rc.local
¼ÓÈë /etc/init.d/httpd -k start
°²×° mysql
ÏÂÔØ  ½âѹ ¶¼²î²»¶à
È»ºó
     shell> groupadd mysql
     shell> useradd -g mysql mysql
     shell> cd /usr/local
     shell> gunzip < /PATH/TO/MYSQL-VERSION-OS.tar.gz | tar xvf -
     shell> ln -s FULL-PATH-TO-MYSQL-VERSION-OS mysql
     shell> cd mysql
     shell> scripts/mysql_install_db --user=mysql
     shell> chown -R root  .
     shell> chown -R mysql


Ïà¹ØÎĵµ£º

ÕÒ»ØmysqlÃÜÂë

 
ÐÞÕýһϣºÎÒÔÚWindowsϵÄʵ¼Ê²Ù×÷ÈçÏÂ
1.¹Ø±ÕÕýÔÚÔËÐеÄMySQL¡£
2.´ò¿ªDOS´°¿Ú£¬×ªµ½mysql\binĿ¼¡£
3.ÊäÈëmysqld½â --skip-grant-tables»Ø³µ¡£Èç¹ûûÓгöÏÖÌáʾÐÅÏ¢£¬ÄǾͶÔÁË¡£
4.ÔÙ¿ªÒ»¸öDOS´°¿Ú£¨ÒòΪ¸Õ²ÅÄǸöDOS´°¿ÚÒѾ­²»Äܶ¯ÁË£©£¬×ªµ½mysql\binĿ¼¡£
5.ÊäÈëmysql»Ø³µ£¬Èç¹û³É¹¦£¬½«³öÏÖMySQL ......

MySQLΪʲô»áÓÐÒ»´ó¶ÑÔÚSleepµÄ½ø³Ì£¿

¹ØÓÚphpÓ¦¸ÃÔÚºÎʱµ÷ÓÃmysql_close()ÒÔ¼°pconnect·½Ê½ºÍ´«Í³·½Ê½ÓкÎÖÖÇø±ðÊÕ²Ø
ÒÔÇ°ÎÒÒ»Ö±ÈÏΪ£¬µ±phpµÄÒ³ÃæÖ´ÐнáÊøʱ£¬»á×Ô¶¯ÊͷŵôÒ»ÇС£ÏàÐźܶàÈ˶¼¸úÎÒÏëµÄÒ»Ñù¡£µ«ÊÂʵ֤Ã÷²¢²»ÊÇÕâÑù¡£±ÈÈçsession¾Í²»»áËæ×ÅÒ³ÃæÖ´ÐÐÍê±Ï¶øÊÍ·Å¡£
phpµÄÀ¬»ø»ØÊÕ»úÖÆ£¬ÆäʵֻÕë¶ÔÓÚphp±¾Éí¡£¶ÔÓÚmysql£¬phpûȨÀûÈ¥×Ô¶¯È¥ÊÍ·ÅËüµÄ ......

mysqlÖ÷´ÓÊý¾Ý¸´ÖÆ

Ò»¡¢Îª´ÓÊý¾Ý¿âÉèÖø´ÖÆÕ˺Å
grant REPLICATION SLAVE on *.* To 'backup'@'%' identified by 'backuppwd'
flush privileges
 
¶þ¡¢µ¼³öÊý¾Ý
(1)Ö±½Ó¸´ÖÆÊý¾ÝÎļþĿ¼·½·¨
a. Í£Ö¹Êý¾Ý¿âдÊý¾Ý
flush tables with read lock
b.ÏÔʾ´ËʱmasterµÄ״̬
show master status
¼ÆÏ´ËʱÖ÷Êý¾Ý¿âµÄbinlogµ ......

PHP mysqlÊÂÎñ´¦Àí »Ø¹ö²Ù×÷

MYSQLÖÐÖ»ÓÐINNODBºÍBDBÀàÐ͵ÄÊý¾Ý±í²ÅÄÜÖ§³ÖÊÂÎñ´¦Àí£¡ÆäËûµÄÀàÐÍÊDz»Ö§³ÖµÄ£¡
$lnk = mysql_connect("localhost", "root", "");
mysql_select_db("test");
mysql_query("BEGIN");
$query = mysql_query("INSERT INTO test VALUES(1, 'yangjun')&quo ......

linuxÏÂÆô¶¯mysqlµÄÃüÁî

 
Ò»¡¢×ܽáһϣº
1.linuxÏÂÆô¶¯mysqlµÄÃüÁ
   mysqladmin start
/ect/init.d/mysql start (Ç°ÃæΪmysqlµÄ°²×°Â·¾¶)
2.linuxÏÂÖØÆômysqlµÄÃüÁ
   mysqladmin restart
/ect/init.d/mysql restart (Ç°ÃæΪmysqlµÄ°²×°Â·¾¶)
3.linuxϹرÕmysqlµÄÃüÁ
   mysqladmin shut ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ