| 订阅 | 在线投稿
分享
 
 
当前位置: 王朝网络 >> mysql >> lighttpd+PHP(FAST-CGI)+MySQL de xue xi bi ji

lighttpd+PHP(FAST-CGI)+MySQL de xue xi bi ji

2008-07-10 05:54:12 编辑來源:互联网 评论
 
 
 
本文为【lighttpd+PHP(FAST-CGI)+MySQL的学习笔记】的拼音翻译版
  zao jiu ting shuo lighttpd jia PHP de FAST-CGI fang shi xing neng bu cuo , chou shi jian zhuang le xia . zhi shi wan cheng le huan jing de an zhuang , huan mei ju ti kan xing neng shen me de !
  yi xia shi wo zhuang lighttpd+PHP(FAST-CGI)+mysql de , ru you wen ti , qing gei wo ping lun .
  yi 、 xian an zhuang MySQL
  an zhuang mysql, ni ke yi an zhuang yuan ma bao , ye ke yi yong bian yi hao de ! zhi jie jie ya kao bei ye xing . wo yong de shi zhi jie kao bei bian yi hao de !
  1. bian yi yuan ma bao
  ./configure --prefix=/data2/ali --enable-assembler --enable-thread-safe-client --without-debug
  make
  make install
  2. yong bian yi hao de ya suo bao ! zhi jie jie ya kao bei
  tar zxf mysql-standard-5.0.27-linux-i686-glibc23.tar.gz
  cd mysql-standard-5.0.27-linux-i686-glibc23
  cp -rf mysql-standard-5.0.27-linux-i686-glibc23 /usr/local/mysql
  // yi xia shi wei le qi dong duo ge duan kou
  mkdir -p /data2/ali/mysql3308
  mkdir -p /data2/ali/mysql3309
  ./scripts/mysql_install_db --ldata=/data2/ali/mysql3308
  cp support-files/my-medium.cnf /data2/ali/mysql3308/my.cnf
  vi /data2/ali/mysql3308/my.cnf
  xiu gai nei rong ru xia :
  #
  [mysqld]
  datadir = /data2/ali/mysql3308/
  port = 3308
  socket = /tmp/mysql-3308.sock
  #
  cp /data2/ali/mysql3308/ /data2/ali/mysql3309/
  vi /data2/ali/mysql3309/my.cnf
  xiu gai nei rong ru xia :
  #
  [mysqld]
  datadir = /data2/ali/mysql3309/
  port = 3309
  socket = /tmp/mysql-3309.sock
  #
  qi dong mysql
  /usr/local/mysql/bin/mysqld_safe --defaults-file=/data2/ali/mysql3308/my.cnf --user=root &
  /usr/local/mysql/bin/mysqld_safe --defaults-file=/data2/ali/mysql3309/my.cnf --user=root &
  jian cha mysql shi fou qi dong cheng gong 。
  ps -ax|grep mysql
  20835 pts/3 S 0:00 /bin/sh ./mysqld_safe --defaults-file=/data2/ali/mysql3308/my.cnf --user=root
  20862 pts/3 Sl 0:00 /usr/local/mysql/bin/mysqld --defaults-file=/data2/ali/mysql3308/my.cnf --basedir=/usr/local/mysql --datadir=/data2/ali/mysql3308/ --user=root --pid-file=/data2/ali/mysql3308//XD_Blog_Web_132_42.pid --skip-external-locking --port=3308 --socket=/tmp/mysql-3308.sock
  20872 pts/3 S 0:00 /bin/sh ./mysqld_safe --defaults-file=/data2/ali/mysql3309/my.cnf --user=root
  20903 pts/3 Sl 0:00 /usr/local/mysql/bin/mysqld --defaults-file=/data2/ali/mysql3309/my.cnf --basedir=/usr/local/mysql --datadir=/data2/ali/mysql3309/ --user=root --pid-file=/data2/ali/mysql3309//XD_Blog_Web_132_42.pid --skip-external-locking --port=3309 --socket=/tmp/mysql-3309.sock
  lian jie mysql
  mysql -S /tmp/mysql-3108.sock
  er 、 jie zhe an zhuang php
  tar zxf php-5.2.4.tar.gz
  cd php-5.2.4
  ./configure \
  --prefix=/usr/local/php-fcgi \
  --enable-fastcgi \
  --enable-force-cgi-redirect \
  --without-iconv \
  --enable-mbstring \
  --with-mysql=/usr/local/mysql
  make
  make install
  fu zhi shen shu wen jian dao mu biao mu lu :
  cp php.ini-dist /usr/local/php-fcgi/lib/php.ini
  jian cha fast-cgi shi fou an zhuang cheng gong ke yi yun xing ru xia ming ling
  /usr/local/php-fcgi/bin/php-cgi -v
  xian shi ru xia xin xi , nei rong li bao han “PHP 5.2.4 (cgi-fcgi)" biao shi zhi chi fast-cgi le
  PHP 5.2.4 (cgi-fcgi) (built: Oct 28 2007 20:08:41)
  Copyright (c) 1997-2007 The PHP Group
  Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
  san 、 zui hou an zhuang lighttpd
  1. an zhuang pei zhi lighttpd
  1.1 shou xian chuang jian yun xing lighttpd de yong hu he zu
  # groupadd lighttpd
  # useradd -g lighttpd -s /sbin/nologin -d /dev/null lighttpd
  1.2 kai shi an zhuang lighttpd
  # wget http://www.lighttpd.net/download/lighttpd-1.4.8.tar.gz
  # tar -zxvf lighttpd-1.4.8.tar.gz
  # cd lighttpd-1.4.8
  # ./configure --prefix=/usr/local/lighttpd
  # make
  # make install
  # mkdir /usr/local/lighttpd/conf
  # mkdir /usr/local/lighttpd/log
  # mv ./doc/lighttpd.conf /usr/local/lighttpd/conf/
  # cp ./doc/rc.lighttpd.redhat /etc/init.d/lighttpd
  vi conf/lighttpd.conf
  jiang #”mod_fastcgi”, de # qu diao
  server.modules = (
  "mod_rewrite",
  "mod_redirect",
  # "mod_alias",
  "mod_access",
  # "mod_cml",
  # "mod_trigger_b4_dl",
  # "mod_auth",
  # "mod_status",
  # "mod_setenv",
  "mod_fastcgi",
  zhao dao fastcgi de ding yi
  #### fastcgi module
  ## read fastcgi.txt for more info
  ## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
  fastcgi.server = ( ".php" =>
  ( "localhost" =>
  (
  "socket" => "/var/run/lighttpd/php-fastcgi.socket",
  "bin-path" => "/usr/local/php-fcgi/bin/php-cgi"
  )
  )
  )
  yi kai shi wo ba pei zhi xie "bin-path" => "/usr/local/php-fcgi/bin/php" zhe yang , fa xian bao cuo , hou lai gai le xia yi shang de pei zhi , fa xian OK le !
  qi dong lighttpd ming ling shi zhe yang de :
  /usr/local/lighttpd/sbin/lighttpd -f conf/lighttpd.conf
  zui hou ke yi zai cheng xu mu lu xia jian ge test.php, jian cha yi xia shi fou zheng chang !【原文】【汉音对照
 
 
 
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

日版宠物情人2017的插曲,很带节奏感,日语的,女生唱的。 最后听见是在第8集的时候女主手割伤了,然后男主用嘴帮她吸了一下,插曲就出来了。 歌手:Def...

兄弟共妻,我成了他们夜里的美食

老钟家的两个儿子很特别,就是跟其他的人不太一样,魔一般的执着。兄弟俩都到了要结婚的年龄了,不管自家老爹怎么磨破嘴皮子,兄弟俩说不娶就不娶,老父母为兄弟两操碎了心...

如何磨出破洞牛仔裤?牛仔裤怎么剪破洞?

把牛仔裤磨出有线的破洞 1、具体工具就是磨脚石,下面垫一个硬物,然后用磨脚石一直磨一直磨,到把那块磨薄了,用手撕开就好了。出来的洞啊很自然的。需要猫须的话调几...

我就是扫描下图得到了敬业福和爱国福

先来看下敬业福和爱国福 今年春节,支付宝再次推出了“五福红包”活动,表示要“把欠大家的敬业福都还给大家”。 今天该活动正式启动,和去年一样,需要收集“五福”...

冰箱异味产生的原因和臭味去除的方法

有时候我们打开冰箱就会闻到一股异味,冰箱里的这种异味是因为一些物质发出的气味的混合体,闻起来让人恶心。 产生这些异味的主要原因有以下几点。 1、很多人有这种习...

 
 
zao jiu ting shuo lighttpd jia PHP de FAST-CGI fang shi xing neng bu cuo , chou shi jian zhuang le xia . zhi shi wan cheng le huan jing de an zhuang , huan mei ju ti kan xing neng shen me de ! yi xia shi wo zhuang lighttpd+PHP(FAST-CGI)+mysql de , ru you wen ti , qing gei wo ping lun . yi 、 xian an zhuang MySQL an zhuang mysql, ni ke yi an zhuang yuan ma bao , ye ke yi yong bian yi hao de ! zhi jie jie ya kao bei ye xing . wo yong de shi zhi jie kao bei bian yi hao de ! 1. bian yi yuan ma bao ./configure --prefix=/data2/ali --enable-assembler --enable-thread-safe-client --without-debug make make install 2. yong bian yi hao de ya suo bao ! zhi jie jie ya kao bei tar zxf mysql-standard-5.0.27-linux-i686-glibc23.tar.gz cd mysql-standard-5.0.27-linux-i686-glibc23 cp -rf mysql-standard-5.0.27-linux-i686-glibc23 /usr/local/mysql // yi xia shi wei le qi dong duo ge duan kou mkdir -p /data2/ali/mysql3308 mkdir -p /data2/ali/mysql3309 ./scripts/mysql_install_db --ldata=/data2/ali/mysql3308 cp support-files/my-medium.cnf /data2/ali/mysql3308/my.cnf vi /data2/ali/mysql3308/my.cnf xiu gai nei rong ru xia : # [mysqld] datadir = /data2/ali/mysql3308/ port = 3308 socket = /tmp/mysql-3308.sock # cp /data2/ali/mysql3308/ /data2/ali/mysql3309/ vi /data2/ali/mysql3309/my.cnf xiu gai nei rong ru xia : # [mysqld] datadir = /data2/ali/mysql3309/ port = 3309 socket = /tmp/mysql-3309.sock # qi dong mysql /usr/local/mysql/bin/mysqld_safe --defaults-file=/data2/ali/mysql3308/my.cnf --user=root & /usr/local/mysql/bin/mysqld_safe --defaults-file=/data2/ali/mysql3309/my.cnf --user=root & jian cha mysql shi fou qi dong cheng gong 。 ps -ax|grep mysql 20835 pts/3 S 0:00 /bin/sh ./mysqld_safe --defaults-file=/data2/ali/mysql3308/my.cnf --user=root 20862 pts/3 Sl 0:00 /usr/local/mysql/bin/mysqld --defaults-file=/data2/ali/mysql3308/my.cnf --basedir=/usr/local/mysql --datadir=/data2/ali/mysql3308/ --user=root --pid-file=/data2/ali/mysql3308//XD_Blog_Web_132_42.pid --skip-external-locking --port=3308 --socket=/tmp/mysql-3308.sock 20872 pts/3 S 0:00 /bin/sh ./mysqld_safe --defaults-file=/data2/ali/mysql3309/my.cnf --user=root 20903 pts/3 Sl 0:00 /usr/local/mysql/bin/mysqld --defaults-file=/data2/ali/mysql3309/my.cnf --basedir=/usr/local/mysql --datadir=/data2/ali/mysql3309/ --user=root --pid-file=/data2/ali/mysql3309//XD_Blog_Web_132_42.pid --skip-external-locking --port=3309 --socket=/tmp/mysql-3309.sock lian jie mysql mysql -S /tmp/mysql-3108.sock er 、 jie zhe an zhuang php tar zxf php-5.2.4.tar.gz cd php-5.2.4 ./configure \ --prefix=/usr/local/php-fcgi \ --enable-fastcgi \ --enable-force-cgi-redirect \ --without-iconv \ --enable-mbstring \ --with-mysql=/usr/local/mysql make make install fu zhi shen shu wen jian dao mu biao mu lu : cp php.ini-dist /usr/local/php-fcgi/lib/php.ini jian cha fast-cgi shi fou an zhuang cheng gong ke yi yun xing ru xia ming ling /usr/local/php-fcgi/bin/php-cgi -v xian shi ru xia xin xi , nei rong li bao han “PHP 5.2.4 (cgi-fcgi)" biao shi zhi chi fast-cgi le PHP 5.2.4 (cgi-fcgi) (built: Oct 28 2007 20:08:41) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies san 、 zui hou an zhuang lighttpd 1. an zhuang pei zhi lighttpd 1.1 shou xian chuang jian yun xing lighttpd de yong hu he zu # groupadd lighttpd # useradd -g lighttpd -s /sbin/nologin -d /dev/null lighttpd 1.2 kai shi an zhuang lighttpd # wget http://www.lighttpd.net/download/lighttpd-1.4.8.tar.gz # tar -zxvf lighttpd-1.4.8.tar.gz # cd lighttpd-1.4.8 # ./configure --prefix=/usr/local/lighttpd # make # make install # mkdir /usr/local/lighttpd/conf # mkdir /usr/local/lighttpd/log # mv ./doc/lighttpd.conf /usr/local/lighttpd/conf/ # cp ./doc/rc.lighttpd.redhat /etc/init.d/lighttpd vi conf/lighttpd.conf jiang #”mod_fastcgi”, de # qu diao server.modules = ( "mod_rewrite", "mod_redirect", # "mod_alias", "mod_access", # "mod_cml", # "mod_trigger_b4_dl", # "mod_auth", # "mod_status", # "mod_setenv", "mod_fastcgi", zhao dao fastcgi de ding yi #### fastcgi module ## read fastcgi.txt for more info ## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini fastcgi.server = ( ".php" => ( "localhost" => ( "socket" => "/var/run/lighttpd/php-fastcgi.socket", "bin-path" => "/usr/local/php-fcgi/bin/php-cgi" ) ) ) yi kai shi wo ba pei zhi xie "bin-path" => "/usr/local/php-fcgi/bin/php" zhe yang , fa xian bao cuo , hou lai gai le xia yi shang de pei zhi , fa xian OK le ! qi dong lighttpd ming ling shi zhe yang de : /usr/local/lighttpd/sbin/lighttpd -f conf/lighttpd.conf zui hou ke yi zai cheng xu mu lu xia jian ge test.php, jian cha yi xia shi fou zheng chang !
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
时尚秀气模特裴裴(8)
时尚秀气模特裴裴(7)
时尚秀气模特裴裴(6)
时尚秀气模特裴裴(5)
白墙黑瓦
广州东郊[原创]
八美至丹巴的东谷天然盆景
不一样的
 
>>返回首页<<
 
 
 为你推荐
 
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
 
©2005- 王朝网络 版权所有