1000字范文,内容丰富有趣,学习的好帮手!
1000字范文 > yum安装Apache2.4

yum安装Apache2.4

时间:2021-06-23 02:57:33

相关推荐

yum安装Apache2.4

一、系统环境

系统版本为centos6.5最小化安装# cat /etc/centos-release CentOS release 6.5 (Final)查看系统自带yum库Apache版本# yum list httpdhttpd.x86_64 2.2.15-69.el6.centos

二、下载安装Apache2.4 yum源

# cd /etc/yum.repos.d/# wget /repos/jkaluza/httpd24/epel-httpd24.repo查看Apache2.4软件包# yum list httpd24httpd24.x86_64 1-6.el6 epel-httpd24

三、安装Apache2.4

# yum install httpd24 httpd24-httpd-devel -y查看安装文件# rpm -ql httpd24-httpd默认安装路径为/opt/rh/httpd24/root添加配置文件链接# ln -s /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf /etc/httpd.conf添加二进制命令链接# ln -s /opt/rh/httpd24/root/usr/bin/* /usr/local/bin# ln -s /opt/rh/httpd24/root/usr/sbin/* /usr/local/sbin添加开机启动脚本# cp /etc/init.d/httpd24-httpd /etc/init.d/httpd# chkconfig httpd --level 35 on查看Apache版本# httpd -vServer version: Apache/2.4.6 (Red Hat)Server built: Sep 25 05:25:46查看安装详细信息# httpd -VAH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this messageServer version: Apache/2.4.6 (Red Hat)Server built: Sep 25 05:25:46Server's Module Magic Number: 0211:23Server loaded: APR 1.4.8, APR-UTIL 1.5.2Compiled using: APR 1.4.8, APR-UTIL 1.5.2Architecture: 64-bitServer MPM: preforkthreaded: noforked: yes (variable process count)Server compiled with....-D APR_HAS_SENDFILE-D APR_HAS_MMAP-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)-D APR_USE_SYSVSEM_SERIALIZE-D APR_USE_PTHREAD_SERIALIZE-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT-D APR_HAS_OTHER_CHILD-D AP_HAVE_RELIABLE_PIPED_LOGS-D DYNAMIC_MODULE_LIMIT=256-D HTTPD_ROOT="/opt/rh/httpd24/root/etc/httpd"-D SUEXEC_BIN="/opt/rh/httpd24/root/usr/sbin/suexec"-D DEFAULT_PIDLOG="/opt/rh/httpd24/root/var/run/httpd/httpd.pid"-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"-D DEFAULT_ERRORLOG="logs/error_log"-D AP_TYPES_CONFIG_FILE="conf/mime.types"-D SERVER_CONFIG_FILE="conf/httpd.conf"

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。