mysql+nginx+php
2015-07-08 20:15
537 查看
另参:http://www.cnblogs.com/xiaoluo501395377/archive/2013/04/07/3003278.html
预备:
查看mysql版本:mysql --version
查看nginx版本:
linux下mysql安装:
1、源代码安装包下载:http://dev.mysql.com/downloads/mysql/5.1.html#current-tab
2、ln -s mysql-5.1.73-linux-x86_64-glibc23 mysql//软连接
3、cd mysql
4、groupadd mysql
5、
chown -R mysql:mysql ./
6.
./mysqladmin -u root password wjjcsb //修改root密码
insert into mysql.user(Host,User,Password) values('%','sujian',password('sj123'));//命令行创建用户
./php-fpm
[09-Jul-2015 11:06:40] ERROR: failed to open configuration file '/usr/local/php/etc/php-fpm.conf': No such file or directory (2)
[09-Jul-2015 11:06:40] ERROR: failed to load configuration file '/usr/local/php/etc/php-fpm.conf'
[09-Jul-2015 11:06:40] ERROR: FPM initialization failed
[root@iZ25jw3825lZ sbin]#
[root@iZ25jw3825lZ sbin]#
[root@iZ25jw3825lZ sbin]# pwd
/usr/local/php/sbin
[root@iZ25jw3825lZ sbin]#
[root@iZ25jw3825lZ sbin]#
[root@iZ25jw3825lZ sbin]#
[root@iZ25jw3825lZ sbin]# cd ../etc/
[root@iZ25jw3825lZ etc]# ls
pear.conf php-fpm.conf.default
[root@iZ25jw3825lZ etc]# cp php-fpm.conf.default php-fpm.conf
[root@iZ25jw3825lZ etc]#
[root@iZ25jw3825lZ etc]#
[root@iZ25jw3825lZ etc]#
[root@iZ25jw3825lZ etc]# ../sbin/php-fpm
预备:
查看mysql版本:mysql --version
查看nginx版本:
linux下mysql安装:
1、源代码安装包下载:http://dev.mysql.com/downloads/mysql/5.1.html#current-tab
2、ln -s mysql-5.1.73-linux-x86_64-glibc23 mysql//软连接
3、cd mysql
4、groupadd mysql
5、
chown -R mysql:mysql ./
6.
./mysqladmin -u root password wjjcsb //修改root密码
insert into mysql.user(Host,User,Password) values('%','sujian',password('sj123'));//命令行创建用户
./php-fpm
[09-Jul-2015 11:06:40] ERROR: failed to open configuration file '/usr/local/php/etc/php-fpm.conf': No such file or directory (2)
[09-Jul-2015 11:06:40] ERROR: failed to load configuration file '/usr/local/php/etc/php-fpm.conf'
[09-Jul-2015 11:06:40] ERROR: FPM initialization failed
[root@iZ25jw3825lZ sbin]#
[root@iZ25jw3825lZ sbin]#
[root@iZ25jw3825lZ sbin]# pwd
/usr/local/php/sbin
[root@iZ25jw3825lZ sbin]#
[root@iZ25jw3825lZ sbin]#
[root@iZ25jw3825lZ sbin]#
[root@iZ25jw3825lZ sbin]# cd ../etc/
[root@iZ25jw3825lZ etc]# ls
pear.conf php-fpm.conf.default
[root@iZ25jw3825lZ etc]# cp php-fpm.conf.default php-fpm.conf
[root@iZ25jw3825lZ etc]#
[root@iZ25jw3825lZ etc]#
[root@iZ25jw3825lZ etc]#
[root@iZ25jw3825lZ etc]# ../sbin/php-fpm
相关文章推荐
- MySQL中的integer 数据类型
- 从源码安装Mysql/Percona 5.5
- mysql中int、bigint、smallint 和 tinyint的区别与长度
- mysql load data 导出、导入 csv
- source命令执行SQL脚本文件
- Centos6 编译安装Python
- linux下mysql添加用户
- mysql procedure
- mysql触发器
- 硬盘安装CentOS 6.2以及添加GRUB启动菜单
- MySQL 备份和恢复策略
- CentOS 6.2实战部署Nginx+MySQL+PHP
- mac下安装mysql(转载)
- mysql 修改编码 Linux/Mac/Unix/通用(杜绝修改后无法启动的情况!)
- MySQL数据的导出、导入(mysql内部命令:mysqldump、mysql)
- mysql数据行转列