一.CentOS7镜像制作 1.1创建CentOS7虚拟机 #选择英文语言,下一步 #选择时区:亚洲上海 #选择最小化安装包组 #自定义磁盘分区 #不使用LVM,单机 "+" 添加分区 #只分配一个 “/” 分区,不创建 swap分区,本身就是虚拟机,更影响性能。 #创建完,单机左上角“done” ...
分类:
其他好文 时间:
2017-03-01 15:53:30
阅读次数:
385
1.安装centos6.5 http://jingyan.baidu.com/article/25648fc1a235c99191fd0008.html 2.配置网络ip http://jingyan.baidu.com/article/455a99508be7cda167277865.html 3 ...
分类:
其他好文 时间:
2017-03-01 15:52:28
阅读次数:
132
关于Spring中的<context:annotation-config/>配置 当我们需要使用BeanPostProcessor时,直接在Spring配置文件中定义这些Bean显得比较笨拙,例如: 使用@Autowired注解,必须事先在Spring容器中声明AutowiredAnnotation ...
分类:
编程语言 时间:
2017-03-01 15:50:06
阅读次数:
235
java中非静态的使用: logback.xml典型配置: ...
分类:
其他好文 时间:
2017-03-01 15:48:39
阅读次数:
226
这是OpenStack实施经验分享系列的第7篇。传统运维中为服务器配置静态IP是再常见不过的了。但在OpenStack环境下只能指定network,IP都是Neutron从subnetIP池中自动分配的。有同学就会想办法了:等instance起来后手工把IP改掉行不行?非常遗憾,不行!instance网卡的IP和Mac地址..
分类:
其他好文 时间:
2017-03-01 14:58:59
阅读次数:
209
在Springremoting中包含三种实现方式:http-invoker,hessian,burlap。具体的配置如下:一、服务器端配置(applicationContext.xml):<prename="code"><?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:..
分类:
编程语言 时间:
2017-03-01 14:58:15
阅读次数:
165
通过zabbix自定义Items来监控服务器半年内的登录次数信息。开始配置之前,需要编写脚本,用于获取服务器的登录情况,脚本如下:[root@hm09:14AM~1119]#catlogon_count.sh
#!/bin/bash
#author:hmemail:mail@huangming.org
#systemlogincount
option=$1
count1=0
count3=0
count..
分类:
系统相关 时间:
2017-03-01 14:54:24
阅读次数:
316
openstack计算(nova)服务篇一、安装并配置控制节点1.先决条件1)完成下面的步骤以创建数据库:mysql-uroot-p123123createdatabasenove;createdatabasenova_api;grantallprivilegesonnove.*to‘nove‘@‘localhost‘identifiedby‘123123‘;grantallprivilegesonnove.*to‘nove‘@‘%‘i..
分类:
其他好文 时间:
2017-03-01 14:43:52
阅读次数:
1300
Druid内置提供一个StatFilter,用于统计监控信息。 1. 别名配置 StatFilter的别名是stat,这个别名映射配置信息保存在druid-xxx.jar!/META-INF/druid-filter.properties。 在spring中使用别名配置方式如下: 2. 组合配置 S ...
分类:
其他好文 时间:
2017-03-01 14:38:03
阅读次数:
532
目录MyDjangoProject下表示工程的全局配置,分别为setttings.py、urls.py和wsgi.py,1、其中setttings.py包括了系统的数据库配置、应用配置和其他配置,2、urls.py则表示web工程Url映射的配置。3、子目录student则是在该工程下创建的app, ...
分类:
编程语言 时间:
2017-03-01 14:24:32
阅读次数:
165