2018.5.24 mariadb installation, Apache installation

Source: Internet
Author: User

Maria DB installation goes to directory, download package (default installation path/USR/LOCAL/SRC)
    [[email protected] mysql]# cd /usr/local/src
Install the code-free binary source package, probably need to install forty or fifty minutes, early installation.
    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
Extract
    [[email protected] mysql]#tar zxvf mariadb-10.2.6-linux-glibc_214-x86_64.tar.gz
Move the place and change the name to MARIADB
    [[email protected] mysql]#mv mariadb-10.2.6-linux-glibc_214-x86_64 /usr/local/mariadb
Go to this directory
    [[email protected] mysql]#cd /usr/local/mariadb
Change permissions
    [[email protected] mysql]#./scripts/mysql_install_db --user=mysql --basedir=/usr/local/mariadb/ --datadir=/data/mariadb
Copy configuration file
    [[email protected] mysql]#cp support-files/my-small.cnf /usr/local/mariadb/my.cnf     [[email protected] mysql]#cp support-files/mysql.server /etc/init.d/mariadb #启动脚本
Define Basedir and DataDir
    [[email protected] mysql]#vi /usr/local/mariadb/my.cnf #在这个配置文件中,不需要改

Modify the configuration file for the startup script

Start the service
    /etc/init.d/mariadb start


Failed to start again ...

Installing Apache

2018.5.24 mariadb installation, 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.