ubuntu下安装nginx php mysql
2015-10-28 12:00
585 查看
以下操作是在root下进行(为了方便自己使用)
1、安装nginx
a)下载nginx、pcre、openssl、zlib库后,直接解压到/usr/local目录下。
b)进入zlib目录后,执行chmod +x ./configure
./configure;
make;make install
c)进入nginx目录
第一步:./configure --prefix=/usr/local/nginx --with-openssl=/usr/local/openssl --with-pcre=/usr/local/pcre --with-zlib=/usr/local/zlib-1.2.8 --user=www --group=www --with-http_ssl_module
第二步:make ;make install
2、安装mysql
安装文件为:mysql-server_5.6.27-1ubuntu15.04_amd64.deb-bundle.tar,解压文件到Downloads目录下的mysql目录
a)apt-get install libaio1 libaio1-dev
b)dpkg -i mysql-common_5.6.27-1ubuntu15.04_amd64.deb mysql-community-server_5.6.27-1ubuntu15.04_amd64.deb mysql-community-client_5.6.27-1ubuntu15.04_amd64.deb
3、安装php
'./configure' '--prefix=/usr/local/php' '--enable-fpm' '--enable-mysqlnd' '--with-mysql=/usr' '--with-pcre-dir=/usr/local/pcre' '--with-pdo-mysql=/usr' '--with-zlib-dir=/usr/local/zlib-1.2.8/'
1、安装nginx
a)下载nginx、pcre、openssl、zlib库后,直接解压到/usr/local目录下。
b)进入zlib目录后,执行chmod +x ./configure
./configure;
make;make install
c)进入nginx目录
第一步:./configure --prefix=/usr/local/nginx --with-openssl=/usr/local/openssl --with-pcre=/usr/local/pcre --with-zlib=/usr/local/zlib-1.2.8 --user=www --group=www --with-http_ssl_module
第二步:make ;make install
2、安装mysql
安装文件为:mysql-server_5.6.27-1ubuntu15.04_amd64.deb-bundle.tar,解压文件到Downloads目录下的mysql目录
a)apt-get install libaio1 libaio1-dev
b)dpkg -i mysql-common_5.6.27-1ubuntu15.04_amd64.deb mysql-community-server_5.6.27-1ubuntu15.04_amd64.deb mysql-community-client_5.6.27-1ubuntu15.04_amd64.deb
3、安装php
'./configure' '--prefix=/usr/local/php' '--enable-fpm' '--enable-mysqlnd' '--with-mysql=/usr' '--with-pcre-dir=/usr/local/pcre' '--with-pdo-mysql=/usr' '--with-zlib-dir=/usr/local/zlib-1.2.8/'
相关文章推荐
- 一个关于if else容易迷惑的问题
- MySQL中的integer 数据类型
- MySQL存储过程
- nginx代理指定目录
- PHP5.2.*防止Hash冲突拒绝服务攻击的Patch
- 深入理解PHP之匿名函数
- 访问Nginx发生SSL connection error的一种情况
- mysql中int、bigint、smallint 和 tinyint的区别与长度
- mysql load data 导出、导入 csv
- source命令执行SQL脚本文件
- JSP/PHP基于Ajax的分页功能实现
- MySQL创建用户及权限控制
- MySQL管理数据表
- linux下mysql添加用户
- mysql procedure
- mysql触发器
- 关于PHP通过PDO用中文条件查询MySQL的问题。
- Nginx+Naxsi部署专业级Web应用防火墙