Linux4 Month 10th notes

Source: Internet
Author: User
Tags mysql in

11.6 MARIADB Installation
11.7/11.8/11.9 Apache Installation
Extended
Apache DSO https://yq.aliyun.com/articles/6298
Apache APXS http://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

11.6 MARIADB Installation

Go to Catalog
#cd/usr/local/src/

Download package source code Package
The address is abroad and it takes 30 minutes to complete the download.

Extract

Move

Initialization
See if it's a two ok.

To see if it is successful, you can also run the following command:

See if a command succeeds.

To see if a directory is generated in the directory, run the following command:

Similar to the MySQL directory.

There are several differences between the configuration template and MySQL.

Depending on the size of your memory, give you the cache, to your MySQL to achieve higher requirements.

Memory is small, use MY-SMALL.CNF, if memory is big with MY-HUGE.CNF

Adjust the memory parameters according to your memory situation.

The main change "mysqld", now do not change

The main change is the startup script.

To change the basedir,datadir,conf, change to the following:

Search start, add a line--defaults-file-= "conf" in safe and change to the following:

Before starting, see if there is a MySQL in the boot. Because they will clash. Run the following command:

To see if there are any successes, run the following command:

View ports

The installation steps, like MySQL, simply define the path to the configuration file and do not conflict with MySQL.

DataDir is not mariadb, because/ETC/MY.CNF is called. The configuration file defaults,defaults is specified and the DATADIR option is not defined.

No parameters are defined and will be found here.

Find DataDir and sockets

Edit the specified configuration file

Add a row of datadir=/data/mariadb, and change to the following:

In addition to starting the script definition, add a row inside

11.8Apache installation (UP)

Download these several packages.
In remote login software, copy and paste


Output, error message appears

Search for a package

After the package is installed, re-execute the command you just made.

11.9 Apache Installation (bottom)

is a core binary file

Htdocs is the directory where the homepage is stored

Moudules is the directory where the extension module is placed. Each module represents a function.

To see what modules Apache has loaded, run the following command:

Start the service

To view the process, run the following command:

To view the port, run the following command:
HTTPD Monitoring 80 ports

Linux4 Month 10th notes

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.