MARIADB installation, Apache installation

Source: Internet
Author: User
Tags fully qualified domain name

MARIADB Installation


1. Download the source package

[[email protected] src]# 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--2018-02-27 21:09:40--  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正在解析主机 downloads.mariadb.com (downloads.mariadb.com)... 51.255.94.155, 2001:41d0:1004:249b::正在连接 downloads.mariadb.com (downloads.mariadb.com)|51.255.94.155|:443... 已连接。已发出 HTTP 请求,正在等待回应... 200 OK长度:541295045 (516M) [application/octet-stream]正在保存至: “mariadb-10.2.6-linux-glibc_214-x86_64.tar.gz”

2. Unzip

3. Move files

[[email protected] src]# mv mariadb-10.2.6-linux-glibc_214-x86_64 /usr/local/mariadb[[email protected] src]# cd !$cd /usr/local/mariadb

4. Create user, Initialize

[[email protected] mariadb]#./scripts/mysql_install_db--user=mysql--datadir=/data/mariadbinstalling mariadb /mysql system tables in '/data/mariadb ' ... OKto start mysqld at boot time has to copysupport-files/mysql.server to the right place for your systemplease Remembe R to SET A PASSWORD for the MariaDB root USER! To does, start the server, then issue the following commands: './bin/mysqladmin '-u root password ' new-password './bin/mys Qladmin '-u root-h weixing01 password ' new-password ' Alternatively you can run: './bin/mysql_secure_installation ' which  Would also give you the option of removing the testdatabases and anonymous user created by default. This isstrongly recommended for production servers. See the MariaDB knowledgebase at http://mariadb.com/kb or Themysql manual for more instructions. You can start the MariaDB daemon with:cd './bin/mysqld_safe--datadir= '/data/mariadb ' can test the MariaDB daemon With Mysql-test-run.plcd './mysql-test '; Perl mysql-test-run.plProblems at Http://mariadb.org/jiraThe latest information about MARIADB are available at HTTP://MARIADB.O rg/. You can find additional information about the MySQL part At:http://dev.mysql.comconsider joining MariaDB ' s strong and VIBR Ant community:https://mariadb.org/get-involved/

5. Copying configuration files and startup scripts

[[email protected] mariadb]# cp support-files/my-small.cnf /usr/local/mariadb/my.cnf[[email protected] mariadb]# cp support-files/mysql.server /etc/init.d/mariadb

6. Edit the configuration file and startup script

Configuration files are not modified at the moment, modify the startup script


7. Start mariadb, make sure MySQL is non-operational before starting

[[email protected] mariadb]# /etc/init.d/mariadb startReloading systemd:                                         [  确定  ]Starting mariadb (via systemctl):                          [  确定  ]

8. Detect if the startup is successful:

[[email protected] mariadb]# ps aux |grep mariadbroot       2068  0.0  0.1 115388  1752 ?        S    22:32   0:00 /bin/sh /usr/local/mariadb/bin/mysqld_safe --defaults-file=/usr/local/mariadb/my.cnf  --datadir=/data/mysql --pid-file=/data/mysql/weixing01.pidmysql      2184  4.6  5.6 1125124 56564 ?       Sl   22:32   0:01 /usr/local/mariadb/bin/mysqld --defaults-file=/usr/local/mariadb/my.cnf --basedir=/usr/local/mariadb --datadir=/data/mysql --plugin-dir=/usr/local/mariadb/lib/plugin --user=mysql --log-error=/data/mysql/weixing01.err --pid-file=/data/mysql/weixing01.pid --socket=/tmp/mysql.sock --port=3306root       2231  0.0  0.0 112676   980 pts/0    R+   22:32   0:00 grep --color=auto mariadb
Apache Installation


1. Download three packages:

[[email protected] mariadb]# cd /usr/local/src[[email protected] src]# lsapr-1.6.3.tar.gz        mariadb-10.2.6-linux-glibc_214-x86_64.tar.gzapr-util-1.6.1.tar.bz2  mysql-5.6.36-linux-glibc2.5-x86_64.tar.gzhttpd-2.4.29.tar.gz

2. Unzip three packages
3. First install Apr

[[email protected] src]# cd apr-1.6.3/[[email protected] apr-1.6.3]# ./configure --prefix=/usr/local/apr

First error during installation, GCC package installation required

make && make install

4. Installing Apr-util

[[email protected] apr-1.6.3]# cd ../apr-util-1.6.1/[[email protected] apr-util-1.6.1]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr

First error during installation, need to install Expat-devel package

make && make install

5. Installing httpd

[[email protected] src]# cd httpd-2.4.29/[[email protected] httpd-2.4.29]# ./configure --prefix=/usr/local/apache2.4 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-so --enable-mods-shared=most

First installation error, need to install Pcre-devel package

makemake install

6. After compiling, go to directory to view

[[email protected] httpd-2.4.29]# cd /usr/local/apache2.4/[[email protected] apache2.4]# lsbin    cgi-bin  error   icons    logs  manualbuild  conf     htdocs  include  man   modules

7. View the loaded module

[[email protected] apache2.4]# /usr/local/apache2.4/bin/httpd -MAH00558: httpd: Could not reliably determine the server‘s fully qualified domain name, using 111.63.112.254. Set the ‘ServerName‘ directive globally to suppress this messageLoaded Modules: core_module (static) so_module (static) http_module (static) mpm_event_module (static) authn_file_module (shared) authn_core_module (shared) authz_host_module (shared) authz_groupfile_module (shared) authz_user_module (shared) authz_core_module (shared) access_compat_module (shared) auth_basic_module (shared) reqtimeout_module (shared) filter_module (shared) mime_module (shared) log_config_module (shared) env_module (shared) headers_module (shared) setenvif_module (shared) version_module (shared) unixd_module (shared) status_module (shared) autoindex_module (shared) dir_module (shared) alias_module (shared)

8. Start the service

[[email protected] apache2.4]#/usr/local/apache2.4/bin/apachectl startAH00558:httpd:Could not reliably Determine the server ' s fully qualified domain name, using FE80::9835:40A7:677A:8A07.       Set the ' ServerName ' directive globally to suppress this message[[email protected] apache2.4]# PS aux |grep httpdroot        39609 0.0 0.2 95528 2524?        Ss 00:01 0:00/usr/local/apache2.4/bin/httpd-k startdaemon 39610 0.0 0.4 382356 4432?        Sl 00:01 0:00/usr/local/apache2.4/bin/httpd-k startdaemon 39611 0.0 0.4 382356 4432?        Sl 00:01 0:00/usr/local/apache2.4/bin/httpd-k startdaemon 39612 0.0 0.4 382356 4432?  Sl 00:01 0:00/usr/local/apache2.4/bin/httpd-k startroot 39695 0.0 0.0 112676 980 pts/0 r+ 00:01 0:00 grep--color=auto httpd[[email protected] apache2.4]# netstat-lntpactive Internet connections (only servers) Proto Recv-q send-q Local Address Foreign address State PID/PROgram name TCP 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 931/sshd TCP                   0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1163/master tcp6 0 0::: 80                    :::* LISTEN 39609/httpd tcp6 0 0::: +:::*       LISTEN 931/sshd tcp6 0 0:: 1:25:::* LISTEN          1163/master TCP6 0 0::: 3306:::* LISTEN 2702/mysqld

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.