博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
2018-04-10 Linux学习
阅读量:6001 次
发布时间:2019-06-20

本文共 3399 字,大约阅读时间需要 11 分钟。

11.6 MariaDB 安装

cd /usr/local/srcwget 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    wget https://mirrors.tuna.tsinghua.edu.cn/mariadb//mariadb-10.2.13/bintar-linux-glibc_214-x86_64/mariadb-10.2.13-linux-glibc_214-x86_64.tar.gztar zxvf mariadb-10.2.13-linux-glibc_214-x86_64.tar.gzmv mariadb-10.2.13-linux-glibc_214-x86_64 /usr/local/mariadbcd /usr/local/mariadb./scripts/mysql_install_db --user=mysql --basedir=/usr/local/mariadb/ --datadir=/data/mariadbcp support-files/my-small.cnf /usr/local/mariadb/my.cnfvi /usr/local/mariadb/my.cnf   //定义basedir 和 datadir        basedir = /usr/local/mariadb        datadir = /data/mariadbcp support-files/mysql.server /etc/init.d/mariadbvim /etc/init.d/mariadb    //定义basedir、datadir、conf 以及启动参数        basedir=/usr/local/mariadb        datadir=/data/mariadb        conf=/usr/local/mariadb/my.cnf        (start部分添加  --defaults-file="$conf")             $bindir/mysql_safe --defaults-file="$conf" --datadir="$datadir" --pid-file="$mysql_pid_file_path" "$@" & /etc/init.d/mariadb start

11.7-8-9 Apache 安装

Apache 是一个基金会的名字,httpd才是我们要安装的软件包,早期它的名字就叫Apache官网: www.apache.orgwget https://mirrors.tuna.tsinghua.edu.cn/apache/httpd/httpd-2.4.29.tar.gzwget https://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-1.6.3.tar.gzwget https://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-util-1.6.1.tar.gz备用下载地址wget http://archive.apache.org/dist/apr/apr-1.5.0.tar.gzwget http://archive.apache.org/dist/apr/apr-1.5.2.tar.gzwget http://archive.apache.org/dist/apr/apr-util-1.5.4.tar.gzapr 和 apr-util 是一个通用的函数库,它让httpd可以不关心底层的操作系统平台,可以很方便的移植(从Linux到Windows)tar zxvf httpd-2.4.29.tar.gztar zxvf apr-1.6.3.tar.gztar zxvf apr-util-1.6.1.tar.gzcd /usr/local/src/apr-1.6.3./configure --prefix=/usr/local/aprmake && make installyum install expat-devel -yyum install -y libxml2-develcd /usr/local/src/apr-util-1.6.1/./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/aprmakemake installyum install -y pcre-develcd /usr/local/src/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=mostmakemake install查看Apache加载了哪些模块/usr/local/apache2.4/bin/apachectl -M    //或者如下/usr/local/apache2.4/bin/httpd -M启动/usr/local/apache2.4/bin/apachectl start    [root@aming-01 apache2.4]# /usr/local/apache2.4/bin/httpd -M    AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::b869:44fc:d655:60b1. Set the 'ServerName' directive globally to suppress this message    Loaded 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)     php5_module (shared)

转载于:https://blog.51cto.com/9298822/2096657

你可能感兴趣的文章
Canvas中 drawImage绘制图片不显示
查看>>
MyEclipse新建Server项目
查看>>
Magento错误处理
查看>>
茵茵的第一课
查看>>
Linux实战教学笔记53:开源虚拟化KVM(一)搭建部署与概述
查看>>
PAT 1007
查看>>
USACO习题:Friday the Thirteenth
查看>>
C++ VS2012 内存泄露检测
查看>>
zabbix 批量添加聚合图形
查看>>
北京交通大学第六届新生程序设计竞赛题解
查看>>
求解点关于直线的距离、垂足、对称点公式
查看>>
洛谷 P1577 切绳子【二分答案】
查看>>
用 Google Map 的 Geocoder 接口来反向地址解析
查看>>
在中小型公司如何做好测试——论测试计划的重要性
查看>>
BSS段、数据段、代码段、堆与栈
查看>>
python调用c/c++写的dll
查看>>
r语言ggplot2误差棒图快速指南
查看>>
python之处理异常
查看>>
c++中的虚函数
查看>>
遍历form表单里面的表单元素,取其value
查看>>