码迷,mamicode.com
首页 > 数据库 > 详细

安装mysql5.6+apache2.4

时间:2018-05-09 23:19:33      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:mysql5.6+apache2.4

一、安装MYSQL

   64  yum install wget

   65  wget http://mirrors.sohu.com/mysql/MySQL-5.6/mysql-5.6.35-linux-glibc2.5-


x86_64.tar.gz

   66  tar zxvf mysql-5.6.35-linux-glibc2.5-x86_64.tar.gz 

   67  mv mysql-5.6.35-linux-glibc2.5-x86_64 /usr/local/mysql

   68  cd /usr/local/mysql/

   70  mkdir /data/mysql

   71  mkdir -p /data/mysql

   72  useradd mysql

   73  ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql

   75  yum install -y perl*

   76  ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql

   78  cp support-files/my-default.cnf /etc/my.cnf

   79  vi /etc/my.cnf

   80  cp support-files/mysql.server /etc/init.d/mysqld

   81  vi /etc/init.d/mysqld 

   82  chmod 755 /etc/init.d/mysqld 

   83  chkconfig --add mysqld

   84  chkconfig --list

   85  /etc/init.d/mysqld start

   86  service mysqld start

   87  netstat -lnp

   88  ps aux |grep mysqld

二、安装HTTP

   96  cd /usr/local/src

   98  wget http://mirrors.sohu.com/apache/httpd-2.4.33.tar.gz

   99  tar zxvf httpd-2.4.33.tar.gz 

  149  wget http://mirrors.cnnic.cn/apache/apr/apr-1.6.3.tar.gz

  150  tar zxvf apr-1.6.3.tar.gz 

  151  cd apr-1.6.3

  154  ./configure --prefix=/usr/local/apr

  156  yum install libtool* -y

  157  ./configure --prefix=/usr/local/apr

  159  make

  160  make install

  162  cd ..

  166  yum install bzip2*

  169  tar jxvf apr-util-1.6.1.tar.bz2 

  170  cd apr-util-1.6.1

  172  ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr

  174  make 

  175  yum install -y expat*

  176  ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr

  177  make

  179  make install

  185  cd ..

  186  wget https://jaist.dl.sourceforge.net/project/pcre/pcre/8.41/pcre-8.41.tar.gz

  188  tar zxvf pcre-8.41.tar.gz 

  190  cd pcre-8.41

  192  ./configure --prefix=/usr/local/pcre

  193  make

  195  make install

  197  cd ..

  198  cd httpd-2.4.33

  201  ./configure  --prefix=/usr/local/apache2.4 --with-apr=/usr/local/apr --with-apr-


util=/usr/local/apr-util --enable-so --enable-mods-shared=most --with-pcre=/usr/local/pcre

  202  make

  204  make install

  208  cd /usr/local/apache2.4/conf

  210  vi httpd.conf 

  211  /usr/local/apache2.4/bin/apachectl start

  212  netstat -lnp

  213  systemctl status firewalld

  214  systemctl stop firewalld

  215  systemctl disable firewalld

  216  systemctl status firewalld


安装mysql5.6+apache2.4

标签:mysql5.6+apache2.4

原文地址:http://blog.51cto.com/goldstar52/2114619

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!