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