本文主要描述了Linux下httpd(2.2版本)的相关基本配置。 1、配置文件概述 代码语言:javascript 复制 配置文件,主要分为3个部分: # grep"Section"/etc/httpd/conf/httpd.conf ### Section1:Global Environment(全局环境配置) ### Section2:'Main'server configuration (核心服务器配置) ### Section3:Virtual Hosts...
###Section1: Global Environment(全局环境配置) ###Section2:'Main'server configuration (核心服务器配置) ###Section3: Virtual Hosts(虚拟主机配置,即建多个站点) 注意:Main Server和Virtual Hosts不同时使用;默认启用的是Main Server; 配置文件的语法 指令 值 指令:不区分字符大小写 值:区分字符大小写 校验...
#在named.vhost.zones创建对应的zone定义3个zone(badu.com meng.com goole.com) [root@root ~]# cat /etc/named.vhost.zoneszone"baidu.com"IN{typemaster;file"baidu.com.zone";};zone"meng.com"IN{typemaster;file"meng.com.zone";};zone"google.com"IN{typemaster;file"google.com.zone";}; 1. 2....
/var/www/html[root@VM ~]# chkconfig --add httpd[root@VM ~]# chkconfig httpd on[root@VM ~]# service httpd start # 启动httpd服务Starting httpd:[OK][root@VM ~]# ss -tunl | grep 80 # 验证服务启动正常与否tcp LISTEN0128:::80 :::*[root@VM ~]# httpd -v # 查看httpd 版本Server ...
Check what users and group set in httpd.conf User apache Group apache Disable SELinux if its enabled. 用以下命令: useradd apache 新创建一个 Apache 用户,然后再启动 httpd。 主机Apache 启动告警:Could not reliably... qualified domain name ...
# This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See <URL:http://httpd.apache.org/docs/2.2/> for detailed information. # In particular, see # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html...
worker:三级进程模型,父进程管理子进程,子进程通过线程响应用户请求,每个线程处理一个用户请求 代码语言:javascript 复制 # 工作模型 一个主进程: 负责生成子进程、创建套接字、接受请求,并将其派发给某子进程进行处理 多个子进程: 每个子进程负责生成多个线程 ...
[root@node2 CA]# openssl ca -in/tmp/httpd_csr.pem -out /etc/pki/CA/certs/httpd_crt.pem Using configuration from/etc/pki/tls/openssl.cnf Check that the request matches the signature Signature ok Certificate Details: Serial Number:1(0x1) ...
修改selinux的配置文件,关闭selinux后重启电脑 [root@wlm yum.repos.d]# /etc/init.d/iptables stopiptables: Setting chains to policy ACCEPT: filter[OK]iptables: Flushing firewall rules:[OK]iptables: Unloading modules:[OK][root@wlm yum.repos.d]# setenforce=0 # 不重启关闭selinux,这个设置只对当...
failure $"not reloading $httpd due to configuration syntax error" else kellproc -p ${pidfile} $httpd -HUP RETVAL=$? fi echo } # See how we were called. case "$1" in start) start ;; stop) stop ;; status) status -p ${pidfile} $httpd ...