简单显示天气预报js代码测试访问manager/html目录仅仅需设置修改的是conf/server.conf文件内容如截图若想修改tomcat默认的80端口,且同时在一台服务器上跑多个请修改8009 (停止进程端口)和8080(连接监听端口)具体操作部署想把Tomcat的默认网站根目录修改成自己指...
分类:
其他好文 时间:
2014-06-23 07:38:57
阅读次数:
357
1.从pfx格式的证书提取出密钥和证书set OPENSSL_CONF=openssl.cnfopenssl pkcs12 -in my.pfx -nodes -out server.pemopenssl rsa -in server.pem -out server.keyopenssl x509 ...
分类:
其他好文 时间:
2014-06-23 06:45:18
阅读次数:
211
修改rsyslog文件,将/etc/rsyslog.d/50-default.conf 文件中的#cron.*前的#删掉重启rsyslog服务service rsyslog restart重启cron服务service cron restartsudo tail -f /var/log/cron.l...
分类:
其他好文 时间:
2014-06-22 23:23:28
阅读次数:
216
这里只讲述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
作为一个web服务器,那么肯定是有监听套接字的,这个监听套接字是用于接收HTTP请求的,这个监听套接字的创建是根据配置文件的内容来创建的,在nginx.conf文件中有多少个地址就需要创建多少个监听套接字。这里不说各个结构体的构造 只说大体情况!
1)、首先在main函数中调用了ngx_init_cycle()函数,在这个函数的最后调用了ngx_open_listening_sockets函...
分类:
其他好文 时间:
2014-06-22 16:45:32
阅读次数:
139
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
这个函数做了连部分工作: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