lnmp配置

1 yum源
2
service mysqld stop
chkconfig mysqld off
chkconfig --list mysqld

3
tar -zxvf mysql-5.5.30-linux2.6-i686.tar.gz -C /usr/local/
切换到/usr/local/目录下:
为了操作的方便,这里为其做一个软连接:

ln -s mysql-5.5.30-linux2.6-i686/ mysql

cd mysql 进入mysql-5.5.30-linux2.6-i686
4、

mysql不安装了 已存在
编译安装libevent之后
[root@localhost ~]# ln -s /usr/local/libevent/include/ /usr/include/libevent
[root@localhost ~]# tar -zxvf nginx-1.5.1.tar.gz  -C /usr/local/src/

[root@localhost nginx-1.5.1]# groupadd -r nginx
[root@localhost nginx-1.5.1]# useradd -r -g nginx nginx
[root@localhost nginx-1.5.1]# yum -y install openssl-devel
pcre  要的源码包 而不是安装包

[root@localhost nginx-1.5.1]# ./configure --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx/nginx.pid --lock-path=/var/lock/nginx.lock --user=nginx --group=nginx --with-http_ssl_module --with-http_flv_module --with-http_stub_status_module --with-http_gzip_static_module --http-client-body-temp-path=/var/tmp/nginx/client/ --http-proxy-temp-path=/var/tmp/nginx/proxy/ --http-fastcgi-temp-path=/var/tmp/nginx/fcg/ --with-pcre=/usr/src/pcre 



mysql安装:

1:安装的时候提示[ERROR] Incorrect definition of table mysql.proc: expected column 'comment' at position 15 to have 

     解决方案:删除原有的所有/var/lib/mysql 



linux下编译mysql后启动出错。
Starting MySQL….. ERROR! The server quit without updating PID file
解决办法:
上网查,说原因是没有初始化权限表。
根据网上我解决的方法:
cd /usr/local/webserver/
chown -R mysql.mysql . //最后这个点前面有空格
su - mysql //以mysql身份执行,因为默认mysql用户是不能登录的,所以转入mysql用户后,是bash提示符
cd /usr/local/webserver/mysql  //进入mysql目录
scripts/mysql_install_db  
再启动成功了。

装php:

./configure --prefix=/usr/local/php --enable-fpm  --enable-sockets --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-mbstring --enable-xml --with-png-dir --with-png --with-jpeg-dir --with-zlib --with-freetype-dir --with-config-file-path=/etc/php --with-config-file-scan-dir=/etc/php5.d









  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值