Home > Database > Mysql Tutorial > lighttpd+PHP(FAST-CGI)++MySQL的具体步骤_MySQL

lighttpd+PHP(FAST-CGI)++MySQL的具体步骤_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:54:49
Original
903 people have browsed it

  早就听说lighttpd加PHP的FAST-CGI方式性能不错,抽时间装了下,只是完成了环境的安装,还没具体看性能什么的!

  以下是我装lighttpd+PHP(FAST-CGI)+mysql的,如有问题,请给我评论.

  一、先安装MySQL

  安装mysql,你可以安装源码包,也可以用编译好的!直接解压拷贝也行.我用的是直接拷贝编译好的!

  1.编译源码包

  ./configure --prefix=/data2/ali --enable-assembler --enable-thread-safe-client --without-debug
  make
  make install

  2.用编译好的压缩包!直接解压拷贝

  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

  //以下是为了启动多个端口

  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

  修改内容如下:

  #
  [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

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template