这里只讲述http{}模块下的配置:
在ngx_http_block()函数内(这个函数别调用时在ngx_inti_cycle内的ngx_conf_parse函数,这个函数遇到http命令时 回调ngx_http_block,开启http{}配置块的解读工作),针对每一个http模块,调用init_conf之后,有调用了ngx_http_merge_servers()。这是为何!
...
分类:
其他好文 时间:
2014-06-22 20:34:44
阅读次数:
204
下载安装
下载地址
修改默认端口:
home\conf\nexus.properties
# Sonatype Nexus
# ==============
# This is the most basic configuration of Nexus.
# Jetty section
application-port=9080
applica...
分类:
其他好文 时间:
2014-06-22 19:28:44
阅读次数:
275
作为一个web服务器,那么肯定是有监听套接字的,这个监听套接字是用于接收HTTP请求的,这个监听套接字的创建是根据配置文件的内容来创建的,在nginx.conf文件中有多少个地址就需要创建多少个监听套接字。这里不说各个结构体的构造 只说大体情况!
1)、首先在main函数中调用了ngx_init_cycle()函数,在这个函数的最后调用了ngx_open_listening_sockets函...
分类:
其他好文 时间:
2014-06-22 16:45:32
阅读次数:
139
nginx作为web服务器,wordpress上传主题报错 413 Request Entity Too Large
解决:
vim /usr/local/nginx/conf/nginx.conf ’编辑nginx配置文件
client_max_body_size 20m; ‘在http段落里添加这一句后保存退出
/usr/local/nginx/sbin/nginx -s reload...
分类:
其他好文 时间:
2014-06-22 14:38:34
阅读次数:
203
en
conf t
vlan id
end
conf t
inter rang gi 0/0/1-x
switchport access vlan id
no shutdown
exit
(config)#interface range gigabitEthernet 1/0/23-24
(config-if-range)#switchport mode trunk
(con...
分类:
其他好文 时间:
2014-06-22 14:12:59
阅读次数:
421
本篇文章是通过最新发布的RedHatEnterpiseLinux7系统部署OpenStack,集成到RHEL系统的OpenStack简称为RDO。此篇是通过制作应答文件answer.conf自动化部署OpenStackIcehouse版本。由于采用RHEL7系统在部署中或多或少碰到不少报错的问题,这里只列出我的几张截图,在部署中还是需..
分类:
其他好文 时间:
2014-06-22 10:20:38
阅读次数:
1205
这个函数做了连部分工作:1)以端口为入口点 将有用的信息存放到hash表内 2)调用ngx_http_init_listening()函数 对端口进行监听
1、 在ngx_http_core_main_conf_t结构体中有一个字段为ports,是一个数组,数组内存放的全是ngx_http_conf_port_t;对于每一个端口信息(ngx_http_conf_port_t),调用
ngx_h...
分类:
其他好文 时间:
2014-06-21 21:16:25
阅读次数:
267
一、修改本地repositories里的gitosis.conf,添加mt6577.git标识(并提交):
X:\gitosis-admin\gitosis.conf
[group developers]
writable = provision mt6577 mt6582
git pull
gitadd gitosis.conf
gitcommit –m“”
gitpush or...
分类:
其他好文 时间:
2014-06-21 18:35:10
阅读次数:
279
在window下安装redis,首先下载redis,解压放到一个目录下,比如D:\redis\ 在控制台下切换到D:\redix 输入:redis-server.exe redis.conf 然后重新打开一个cmd控制台,仍然切换到D:\redis\下 输入:redis-cli...
root@OpenstackIcehouse2:~# cat /etc/nova/nova-compute.conf [DEFAULT] compute_driver=libvirt.LibvirtDriver [libvirt] virt_type=qemu libvirt_inject_part...
分类:
其他好文 时间:
2014-06-21 16:38:02
阅读次数:
580