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

Nginx + PHP + Mysql (php frm 방식)


Nginx + PHP + Mysql (php-frm 방식)

 글쓴이 :
최고관리자


조회 : 2,884  




테스트환경
CentOS 4.7, 5.3
(CentOS 5.3의 경우 pear에러가 났습니다. 해결방법도 첨부합니다.)

준비파일
* http://kr.php.net/get/php-5.2.10.tar.gz/from/this/mirror
* http://php-fpm.org/downloads/php-5.2.10-fpm-0.5.13.diff.gz
* http://www.nginx.eu/download/sources/nginx-0.7.61.tar.gz
* http://meteor.kr/linux/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz

1. MySQL 설치
# yum install -y mysql mysql-server mysql-connector-odbc mysql-devel

서버의 상태에 따라 아래의 설정파일을 이용합니다

[MySQL 환경 설정]
my-huge.cnf
1G 이상 (시스템 메모리)
my-large.cnf
512M ~ 1G
my-medium.cnf
128M ~ 256M
my-small.cnf
64M 이하
# cp /usr/share/mysql/my-huge.cnf /etc/my.cnf
# mysql_install_db
# chown -R mysql:mysql /var/lib/mysql/
# /etc/rc.d/init.d/mysqld start
# mysqladmin -u root password "비밀번호"

2. 필요한 라이브러리 설치
# yum install -y libtool-ltdl-devel curl curl-devel libxml2
libxml2-devel libjpeg-devel libpng-devel libmcrypt libmcrypt-devel pcre
pcre-devel openssl openssl-devel
3. PHP & FPM 설치
# tar xvzf php-5.2.10.tar.gz
# gzip -cd php-5.2.10-fpm-0.5.13.diff.gz | patch -d php-5.2.10 -p1
# cd php-5.2.10
# CFLAGS=


Ïà¹ØÎĵµ£º

MySQL¼à¿Ø

Ô­ÎÄÍøÖ·£ºhttp://knowhow.innovatedigital.com/mysql-monitoring.html
MySQLÊÇ×îÁ÷ÐеĿª·ÅÔ´´úÂë¹ØϵÊý¾Ý¿âϵͳ¡£ÆäÐÔÄܺÍÒ×ÓÃÐÔ£¬Ê¹Æä³ÉΪLAMP¼Ü¹¹µÄÖÐÐÄÖ§ÖùÖ®Ò»¡£
       MySQL¼à¿ØÒ»Ö±ÊǹØ×¢MySQLÊý¾Ý¿âÐÔÄܺÍMySQLÊý¾Ý¿âÔËά¹ÜÀí¼¼ÊõÈËÔ±µÄ·Ç³£¸ÐÐËȤ»°Ìâ¡£ÈçºÎÈÃÄúµÄMySQLÊý¾Ý¿â° ......

¸ü¶àMySQLÃüÁÍü

Ò» . °²×°ÓëÅäÖÃMYSQL 
¡¡¡¡¶þ . ³£ÓÃmysqlÃüÁîÐÐÃüÁî 
¡¡¡¡1 .mysqlµÄÆô¶¯ÓëÍ£Ö¹ 
¡¡¡¡Æô¶¯MYSQL·þÎñ net start mysql 
¡¡¡¡Í£Ö¹MYSQL·þÎñ net stop mysql 
¡¡¡¡2 . netstat –na | findstr 3306 ²é¿´±»¼àÌýµÄ¶Ë¿Ú , findstrÓÃÓÚ²éÕÒºóÃæµÄ¶Ë¿ÚÊÇ·ñ´æÔÚ 
¡¡¡¡3 . ÔÚÃüÁîÐÐÖеǽ ......

Linux°²×°apache¡¢phpºÍmysql·½·¨

apacheµÄÔ´Âë°²×° 
½«Ñ¹Ëõ°ü½âѹ֮ºó½øÈëÏàÓ¦µÄĿ¼
./configure \   #--------------------Ô¤±àÒëÃüÁî
"--prefix=/usr/local/apache" \  #--------------------°²×°Â·¾¶Îª“/usr/local/apache”
"--with-included-apr" \
"--enable-so" \ #--------------------¿ªÆôÏàÓ¦µÄÀ©Õ¹Ä£¿é ......

ÐÞ¸ÄmysqlÊý¾Ý¿âµÄĬÈϱàÂ뷽ʽ


< type="text/javascript">
document.body.oncopy = function() {
if (window.clipboardData) {
setTimeout(function() {
var text = clipboardData.getData("text");
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ