ubuntuÏÂÅäÖÃApache+Mysql+PHP
½ñÌì¿´µ½Ò»Æª¹ØÓÚubuntuÏÂÅäÖÃApache+Mysql+PHPµÄÎÄÕ£¬¾õµÃºÜÓÐÓ㬼ÓÒÔ×Ô¼ºµÄÀí½âºÍ±àд£¬¼Ç¼ÏÂÀ´¡£
Ò»¡¢ApacheµÄ°²×°
Apache×÷Ϊһ¸ö¹¦ÄÜÇ¿´óµÄWeb³ÌÐò£¬×ÔÈ»ÊǼܽ¨Web·þÎñÆ÷µÄÊ×Ñ¡£¬ºÃÁË£¬ÏÂÃæÎÒÃǾÍÀ´°²×°Apache¡£ÔÚÖÕ¶ËÏÂÊäÈëÏÂÔÚÃæÃüÁ
sudo apt-get install apache2
°²×°Íê±Ïºó£¬½ÓÏÂÀ´¾ÍÒªÆô¶¯ApacheÁË
sudo /etc/init.d/apache2 restart
ÔÚä¯ÀÀÆ÷ÀïÊäÈëhttp://localhost»òÕßÊÇhttp://127.0.0.1£¬Èç¹û¿´µ½ÁË“It works!“£¬ÄǾÍ˵Ã÷Apache¾Í³É¹¦µÄ°²×°ÁË£¬ApacheµÄĬÈÏ°²×°£¬»áÔÚ/varϽ¨Á¢Ò»¸öÃûΪwwwµÄĿ¼£¬Õâ¸ö¾ÍÊÇWebĿ¼ÁË£¬ËùÓÐÒªÄܹýä¯ÀÀÆ÷·ÃÎʵÄWebÎļþ¶¼Òª·Åµ½Õâ¸öĿ¼Àï¡£
¶þ¡¢PHPµÄ°²×°
ÔÚUbuntuÏ°²×°Èí¼þÊÇÒ»¼þ·Ç³£¼òµ¥µÄÊ£¬Ö»ÐèÒªÒ»¸öÃüÁî¾Í¿ÉÒÔÁË£¬ÔÚÖÕ¶ËÏÂÖ´ÐÐÏÂÃæµÄÃüÁ
sudo apt-get install libapache2-mod-php5 php5
°²×°Íêºó£¬ÎÒÃÇÒªÖØÐÂÆô¶¯Apache£¬ÈÃËü¼ÓÔØPHPÄ£¿é£º
sudo /etc/init.d/apache2 restart
½ÓÏÂÀ´£¬ÎÒÃǾÍÔÚWebĿ¼ÏÂÃæн¨Ò»¸öPHPÎļþÀ´²âÊÔPHPÊÇ·ñÄÜÕý³£µÄÔËÐУ¬ÃüÁ
sudo gedit /var/www/phpinfo.php
È»ºóÊäÈë: <?php echo "test"; ?>
½Ó×ű£´æÎļþ,ÔÚä¯ÀÀÆ÷ÀïÊäÈë http://127.0.0.1/phpinfo.php £¬Èç¹û³öÏÖÁËÒ»¸öÏÔʾtestµÄÒ³Ã棬ÄǾÍ˵Ã÷ PHPÒѾÕý³£ÔËÐÐÁË¡£µ«ÊÇÈç¹ûûÓÐÏÔʾ³öÒ³Ã棬¶øÊÇÌáʾÄãÏÂÔØÎļþ£¬Õâ¾Í˵Ã÷ApacehûÓÐÕýÈ·¼ÓÔØPHPÄ£¿é£¬Õâʱ½â¾öµÄ·½·¨ÊÇ£¬ÔÚ/etc /apache2/apache2.conf »ò /etc/apache2/mods-enabled/php5.confÎļþÀï¼ÓÈëÏÂÃæµÄÒ»ÐÐÃüÁ
AddType application/x-httpd-php .php .phtml .php3
ÔÚ¼ÓÈëÉÏÃæµÄÃüÁîºó£¬ÔÙͨ¹ýÏÂÃæµÄÃüÁîÓ¦ÖØÆôApaceh¸Ã¾ÍÄܽâ¾öÎÊÌâÁË:
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 restart
Èý¡¢MySQLµÄ°²×°
sudo apt-get install mysql-server my
Ïà¹ØÎĵµ£º
ASPÁ¬½ÓMySQLÊý¾Ý¿âµÄ·½·¨
ASPµÈÓïÑÔÁ¬½ÓmysqlÊý¾Ý¿â£¬¿ÉÒÔͨ¹ý°²×°mysqlµÄODBCÇý¶¯£¬Í¨¹ýÅäÖÃODBCÊý¾ÝÔ´£¬Á¬½Ó²¢²Ù×÷Êý¾Ý¿â¡£
mysql odbc 3.51°æ
ÏÂÔصØÖ·:
http://dev.mysql.com/downloads/connector/odbc/3.51.html
£¼%
'²âÊÔ¶ÁÈ¡MySqlÊý¾Ý¿âµÄÄÚÈÝ
strconnection="driver={mysql odb ......
MySQLÓÐÒ»¸ö¹¦ÄܾÍÊÇ¿ÉÒÔlogÏÂÀ´ÔËÐеıȽÏÂýµÄsqlÓï¾ä£¬Ä¬ÈÏÊÇûÓÐÕâ¸ölogµÄ£¬ÎªÁË¿ªÆôÕâ¸ö¹¦ÄÜ£¬ÒªÐÞ¸Ämy.cnf»òÕßÔÚMySQLÆô¶¯µÄʱºò¼ÓÈëһЩ²ÎÊý¡£
Èç¹ûÔÚmy.cnfÀïÃæÐ޸ģ¬ÐèÔö¼ÓÈçϼ¸ÐÐ
long_query_time = 1
log-slow-queries =
log-queries-not-using-indexes
long_query_time ÊÇÖ¸Ö´Ðг¬¹ý¶à¾ÃµÄsql»á±»logÏÂÀ´£ ......
£¨1£©ÒÔubuntuµÄrootÓû§µÇ½
£¨2£©Í£Ö¹MYSQL·þÎñÆ÷£º
/etc/init.d/mysql stop
£¨3£©Ìø¹ýÊÚȨ±íÖ´ÐÐMYSQL·þÎñÆ÷£º
mysqld_safe --skip-grant-tables --skip-networking &
(×¢£º²ÎÊý--skip-grant-tablesΪÌø¹ýÊÚȨ±í£»--sk ......
##/etc/my.cnf:
# [mysql]
# default-character-set=utf8
# [mysqld]
# character-set-server=utf8
# collation-server=utf8_general_ci
# [client]
# default-character-set=utf8
/etc/init.d/mysqld stop
/etc/init.d/mysqld start
# dump db
mysqldump -u dbuser -pdbpass --opt --skip-set-charset --defaul ......
1.ÔÚORACLEÖÐÓÃselect * from all_usersÏÔʾËùÓеÄÓû§£¬¶øÔÚMYSQLÖÐÏÔʾËùÓÐÊý¾Ý¿âµÄÃüÁîÊÇshow databases¡£¶ÔÓÚÎÒµÄÀí½â£¬ORACLEÏîÄ¿À´ËµÒ»¸öÏîÄ¿¾ÍÓ¦¸ÃÓÐÒ»¸öÓû§ºÍÆä¶ÔÓ¦µÄ±í¿Õ¼ä£¬¶øMYSQLÏîÄ¿ÖÐÒ²Ó¦¸ÃÓиöÓû§ºÍÒ»¸ö¿â¡£ÔÚORACLE(db2Ò²Ò»Ñù)Öбí¿Õ¼äÊÇÎļþϵͳÖеÄÎïÀíÈÝÆ÷µÄÂß¼±íʾ£¬ÊÓͼ¡¢´¥·¢Æ÷ºÍ´æ´¢¹ý³ÌÒ² ......