Linux20180524 MariaDB Apache Installation

Source: Internet
Author: User

May 24 Task

11.6 MARIADB Installation
11.7/11.8/11.9 Apache Installation
Extended
Apache DSO https://yq.aliyun.com/articles/6298
Apache apxshttp://man.chinaunix.net/newsoft/apachemenual_cn_2.2new/programs/apxs.html
Apache working mode http://www.cnblogs.com/fnng/archive/2012/11/20/2779977.html



Installing MARIADB

and MySQL installation is basically similar


  1. Download the binary package and unzip wget wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.6/bintar-linux-glibc_214-x86_64/ Mariadb-10.2.6-linux-glibc_214-x86_64.tar.gz then unzip the tar zxvf wget https://downloads.mariadb.com/MariaDB/ Mariadb-10.2.6/bintar-linux-glibc_214-x86_64/mariadb-10.2.6-linux-glibc_214-x86_64.tar.gz

  2. Place the file under/USR/LOCAL/MARIADB and then use the user to place the MySQL database address in/data/mariadb

  3. Initialize,./scripts/mysql_install_db--user=mysql --basedir=/usr/local/mariadb --datadir=/data/mariadb different from MySQL Here is a basedir setting. If you don't define BASEDIR, you might have problems with MySQL. mix

  4. Copy profile CP support-files/my-small.cnf /usr/local/mariadb/my.cnf There are several configuration files, large huge medium small, the difference is that the cache size is different. and to differentiate MySQL from/USR/LOCAL/MARIADB.

  5. Copy startup script CP Support-files/mysql.server/etc/init.d/mariadb

  6. The configuration file my.cnf basically do not need to change (wipe the final surface or to change datadir), to change the startup script Basedir DataDir to modify, and add the path of the conf configuration file. It is also defined on the starting position.

  7. Then you can start the service. Before starting to see if there are no mysqld services in the boot, PS aux |grep MySQL because they are using the same port. After you have no problem, you can start the MARIADB service and then view the process.

And the difference between installing MySQL is the Basedir settings and the Conf settings in the script file, because it is the fear of conflict with MySQL.


One problem is that when you start mariadb, you'll find DataDir or MySQL.

This time needs to be

VIM/USR/LOCAL/MARIADB/MY.CNF plus DataDir's path

Then Killall mysqld and start the Maria Service.

It's going to change back.

Compared to the previous

Perfect ending.



Apache Installation


HTTPD, why not call Apache?

HTTPDS is the flagship of the Apache Foundation. The earlier version was called Apache.

The presence of APR and Apr-util can be ported across platforms.

So will download Apache,apr,apr-util this package.

This will install the httpd using a compile-and-install approach.


    1. Download three packages. and unzip.

    2. Install Apr first. is to enter the APR directory and then config to make the install./configure--prefix=/usr/local/apr Check after a pile of things with the echo $? Then make && make install

    3. Install Apr-util Ibid. after entering the directory./configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr finish make && make Install

    4. Compile the httpd. The first step is to enter the path c/usr/local/src/httpd-2.4.33 and then the following, not only to define prefix corresponding URL url-util to be defined.

./configure--prefix=/usr/local/apache2--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util--enable-so- -enable-mods-shared=most

Make && make install

--enable-so means that the extension module is supported, and the Dynamic Expansion module module is the. so suffix file. --enable-mods-shared=most says it supports most


You can look at the directories and files under the Apache directory.


How do I see which modules are loaded?

/usr/local/apache2/bin/httpd-m

/usr/local/apache2/bin/apachectl-m both of these can be

static/shared difference?

Static means that the module is Httpds, and GKFX represents the extended file, under the modules directory.


Launch Apache

/usr/local/apache2/bin/apachectl start


Check the next process

Success.

Linux20180524 MariaDB Apache Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.