linux下安装apahce+php+mysql的视频

来源:百度知道 编辑:UC知道 时间:2024/06/04 17:15:24
如题
那位大侠 有啊
或者 有比较详细的文档 也行啊
编译

是以什么方式安装的,rpm 还是编译?

1:mysql setup
./configure --prefix=/usr/local/mysql --with-mysqld-ldflags=-all-static --with-embedded-server --with-plugins=innobase -enable-assembler
make && make install
groupadd mysql #设置mysql用户无home,shell
useradd mysql -c "start mysqlds account" -d /dev/null -g mysql -s /sbin/nologin
****** ./scripts/mysql_install_db --basedir=/usr/local/mysql --datadir=/usr/local/mysql/var --user=mysql #初始化数据库
cd /usr/local/mysql
chmod -R 700 ./var
chown -R mysql:mysql var
****** cp support-files/my-medium.cnf /etc/my.cnf #cp模板为配置文件,模板位于源目录
chown root:sys /etc/my.cnf
chmod 644 /etc/my.cnf #若单机用,去掉"#"为"--skip-networking";可添加log-slow-queries[=file] #命令执行时间超过long_query_time的写入file文件;skip-show-database一般用户不能浏览数据库

cp /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysqld
chmod 700 /etc/rc.d