linux下安装HP模块.docVIP

  • 4
  • 0
  • 约11.72万字
  • 约 21页
  • 2016-12-03 发布于河南
  • 举报
linux下安装HP模块

linux下安装PHP模块 ●安装mysql5 ./configure \ --prefix=/usr/local/mysql \ --without-debug \ --with-extra-charsets=utf8 \ --with-extra-charsets=all \ --enable-assembler \ --enable-local-infile \ --with-pthread \ --enable-thread-safe-client \ --with-client-ldflags=-all-static \ --with-mysqld-ldflags=-all-static \ --with-unix-socket-path=/usr/local/tmp/mysql.sock # make make install # groupadd mysql # useradd -g mysql mysql cp support-files/f /etc/f cd /usr/local/mysql5 chown -R mysql:mysql . bin/mysql_install_db --user=mysql chown -R root . chown -R mysql var bin/mysqld_safe --user=mysql # netstat -tnl|grep 3306 //查看3306端口是否开启 #./configure --prefix=/opt/mysql5 \ --without-debug \ --with-extra-charsets=gbk,utf8 \ --with-extra-charsets=all \ --enable-assembler \ --enable-local-infile \ --with-pthread \ --enable-thread-safe-client \ --with-client-ldflags=-all-static \ --with-mysqld-ldflags=-all-static \ --with-unix-socket-path=/opt/mysql5/tmp/mysql.sock \ 让MySQL随系统启动而自动启动: 1、修改mysql.server,把它复制到/etc/rc.d/init.d目录里面: # cd /etc/rc.d/init.d # cp /usr/local/mysql/support-files/mysql.server mysql 2、接着把它的属性改为“x”(executable,可执行) # chmod +x mysql 3、最后,运行chkconfig把MySQL添加到你系统的启动服务组里面去。 # /sbin/chkconfig --add mysql 重要:生产环境中,装好mysql好要立刻更改root密码,并删除空密码 Mysqldelete from user where password=’’ and user=’’ ; Mysqlupdate user set password=password(trfqq) where user=root; 给root账号加上密码 Mysqlflush privileges; grant all on *.* to amed@localhost identified by amed with grant option; 修改环境变量文件/etc/profile,添加mysql的PATH变量. [root@mail mysql]#vi /etc/profile 在以下字段添加添加pathmunge /usr/local/mysql/bin # Path manipulation if [ $EUID = 0 ]; then pathmunge /sbin pathmunge /usr/sbin pathmunge /usr/local/sbin pathmunge /usr/local/mysql/bin 这样既可以在任何目录路径下,都可以在shell提示符下直接执行/usr/local/mysql/bin下的管理程序. ●安装Apache #cd http-2.2.6 # ./configure --prefix=/usr/local/httpd --enable-so --enable-rewrite --enable-expires --enable-cache --enable-

文档评论(0)

1亿VIP精品文档

相关文档