mysql+nginx+php

另参: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,centos,安装,yum)