lnmp怎样才能跳过安装mysql
不想要mysql删掉mysql包好像还会安装奇怪
除了mysql其它组件都 要的 以centos.sh为例,删除这部分代码就可以了:有开始和结束的注释。[*]echo "============================mysql install=================================="
[*]cd $cur_dir
[*]tar zxvf mysql-5.1.60.tar.gz
[*]cd mysql-5.1.60/
[*]if [ $installinnodb = "y" ]; then
[*]./configure --prefix=/usr/local/mysql --with-extra-charsets=complex --enable-thread-safe-client --enable-assembler --with-mysqld-ldflags=-all-static --with-charset=utf8 --enable-thread-safe-client --with-big-tables --with-readline --with-ssl --with-embedded-server --enable-local-infile --with-plugins=innobase
[*]else
[*]./configure --prefix=/usr/local/mysql --with-extra-charsets=complex --enable-thread-safe-client --enable-assembler --with-mysqld-ldflags=-all-static --with-charset=utf8 --enable-thread-safe-client --with-big-tables --with-readline --with-ssl --with-embedded-server --enable-local-infile
[*]fi
[*]make && make install
[*]cd ../
[*]
[*]groupadd mysql
[*]useradd -s /sbin/nologin -M -g mysql mysql
[*]
[*]cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf
[*]sed -i 's/skip-locking/skip-external-locking/g' /etc/my.cnf
[*]if [ $installinnodb = "y" ]; then
[*]sed -i 's:#innodb:innodb:g' /etc/my.cnf
[*]fi
[*]/usr/local/mysql/bin/mysql_install_db --user=mysql
[*]chown -R mysql /usr/local/mysql/var
[*]chgrp -R mysql /usr/local/mysql/.
[*]cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysql
[*]chmod 755 /etc/init.d/mysql
[*]
[*]cat > /etc/ld.so.conf.d/mysql.conf /tmp/mysql_sec_script复制代码
小夜 发表于 2013-3-28 17:14
back.gif
以centos.sh为例,删除这部分代码就可以了:有开始和结束的注释。
直接删除,后边配置php时候不会出错么?
chairo 发表于 2013-3-28 17:16
back.gif
直接删除,后边配置php时候不会出错么?
不会,只是跳过mysql而已。
小夜 发表于 2013-3-28 17:17
back.gif
不会,只是跳过mysql而已。
编译php的参数“--with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config”没问题么?
你自己试下 不就知道了 php在configure的时候会找mysql
去掉mysql的话php的configure参数要修改 直接自己组装吧
页:
[1]