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
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
Place the file under/USR/LOCAL/MARIADB and then use the user to place the MySQL database address in/data/mariadb
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
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.
Copy startup script CP Support-files/mysql.server/etc/init.d/mariadb
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.
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.
Download three packages. and unzip.
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
Install Apr-util Ibid. after entering the directory./configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr finish make && make Install
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