Nginx源码编译安装环境Centos7Nginx1.8.1下载地址:http://nginx.org/download/选择自己想要的版本我这边使用1.8.1,下载地址:http://nginx.org/download/nginx-1.8.1.tar.gz1、编译前安装环境[root@CentOS7_30~]#yumgroupinstall"DevelopmentTools"-y#安装开发工具包
[root@C..
分类:
其他好文 时间:
2016-10-12 23:20:19
阅读次数:
234
环境:物理环境windows7虚拟环境centos7.0设备:workstation(workstation.example.com)server1(server1.example.com)server2(server2.example.com)database(database.example.com)一、NTP网络时间协议(保证相同时间戳)1、workstation跟互联网的时间同步2、database,server1..
分类:
其他好文 时间:
2016-10-12 23:19:27
阅读次数:
400
早就听说过zabbix的discovery功能,最近终于有机会用了一下。首先建一个自动发现的规则(discoveryrule),一般选取check方式为icmpping和zabbixagent"system.uname"。然后建立discoveryaction,配置发现条件如下:然后配置发现目标主机后的操作,一般是加入某个主机组,然后关..
分类:
其他好文 时间:
2016-10-12 23:16:32
阅读次数:
229
<!DOCTYPEhtml><html><head> <metacharset="utf-8"> <title>网页布局</title> <style> body{ margin:0px; padding:0px; } </style></head><body> <divstyle="width:1422px;height:34px;background:gold;..
分类:
其他好文 时间:
2016-10-12 23:17:29
阅读次数:
223
实验环境:workstation机器作为服务端,实现ntp服务server1、server2、database作为客户端实验要求:完成时间的同步服务端访问客户端时,不需要密码,且不准root用户登陆利用iPA服务实现用户管理开始配置:一:configurentpservice1.使workstation机器作为服务端。获取asia的同..
分类:
其他好文 时间:
2016-10-12 23:15:22
阅读次数:
227
1.ntp时间同步协议●workstation与互联网时间同步●server1server2database与workstation同步在所有机器上安装ntp#yum-yinstallntpworkstation机器配置#vim/etc/ntp.confrestrict192.168.83.0mask255.255.255.0nomodifynotrap(允许特定网段同步时间)#server0.centos.pool.ntp..
分类:
其他好文 时间:
2016-10-12 23:16:55
阅读次数:
246
配置workstation机器,实现自动化部署(首先在本地VMware中创建一个虚拟机workstation.example.com)环境:物理环境windows7虚拟环境centos7设备:workstation(workstation.example.com-----使用centos7.1orcentos7.2进行最小化安装)server1(server1.example.com)server2(ser..
分类:
其他好文 时间:
2016-10-12 23:14:09
阅读次数:
167
docker私有仓库v2版本中的镜像,官方不建议删除,但是也提供了删除接口:DELETE/v2/<name>/manifests/<reference>
Host:<registryhost>
Authorization:<scheme><token>删除的原理就是把索引删掉,但磁盘上的数据是删不掉的。这是由于各个镜像之..
分类:
其他好文 时间:
2016-10-12 23:13:55
阅读次数:
2313
1.安装ntp并配置ntp服务器来完成时间同步安装:yum-yinstallntp配置:vim/etc/ntp.conf将文件的21-24行注释掉,并在25行添加serverasia.pool.ntp.org启动并设置开机自启动:systemctlstartntpdsystemctlenablentpd查看当前时间;date(与网络时间相同即可)在客户机端同样安装ntp..
分类:
其他好文 时间:
2016-10-12 23:14:06
阅读次数:
296
packageutil;
importjava.text.ParseException;
importjava.text.SimpleDateFormat;
importjava.util.Date;
/**
*日期工具类
* 这是日期和字符串相互转换的工具类
*/
publicclassDateUtil{
//构造方法私有化
privateDateUtil(){}
/**
*将日期转换为字符串
*@paramdate
..
分类:
其他好文 时间:
2016-10-12 23:12:33
阅读次数:
168
packagecom;
importjava.text.ParseException;
importjava.text.SimpleDateFormat;
importjava.util.BitSet;
importjava.util.Date;
importjava.util.Scanner;
/**
*算一下你来到这个世界有多少天?
* 分析:
* 1.键盘录入出生年月日
* 2.把该字符串转换为一个日期
*3.通过..
分类:
其他好文 时间:
2016-10-12 23:12:56
阅读次数:
229
2016年大数据Spark“蘑菇云”行动代码学习之AdClickedStreamingStats模块分析系统背景:用户使用终端设备(IPAD、手机、浏览器)等登录系统,系统采用js脚本发送用户信息和广告点击信息到后台日志,进入flume监控,通过kafka消息中间件传输数据,由SparkStreaming消费后将信息..
分类:
其他好文 时间:
2016-10-12 23:09:37
阅读次数:
162
packagecom;
importjava.text.SimpleDateFormat;
importjava.util.Calendar;
importjava.util.Date;
importjava.util.Scanner;
/**
*算一下你来到这个世界有多少天?
* 分析:
* 1.键盘录入出生年月日
* 2.把该字符串转换为一个日期
*3.通过该日期得到一个毫秒值
*4.获得当..
分类:
其他好文 时间:
2016-10-12 23:10:53
阅读次数:
231
Onper-vm#systemctlstopdhcpd#systemctldisabledhcpd#tzselect//timezoneselection[root@workstation~]#yum-yinstallntp#vim/etc/ntp.conf//#server0,1,2,3,restrict192.168.85.0mask255.255.255.0nomodifynotrapserverasia.pool.ntp.orgiburst#systemctlrestartntpd#systemctl..
分类:
其他好文 时间:
2016-10-12 23:09:32
阅读次数:
172
Onper-vm#systemctlstopdhcpd#systemctldisabledhcpd#tzselect//timezoneselection[root@workstation~]#yum-yinstallntp#vim/etc/ntp.conf//#server0,1,2,3,restrict192.168.85.0mask255.255.255.0nomodifynotrapserverasia.pool.ntp.orgiburst#systemctlrestartntpd#systemctl..
分类:
其他好文 时间:
2016-10-12 23:10:43
阅读次数:
143
Onper-vm#systemctlstopdhcpd#systemctldisabledhcpd#tzselect//timezoneselection[root@workstation~]#yum-yinstallntp#vim/etc/ntp.conf//#server0,1,2,3,restrict192.168.85.0mask255.255.255.0nomodifynotrapserverasia.pool.ntp.orgiburst#systemctlrestartntpd#systemctl..
分类:
其他好文 时间:
2016-10-12 23:09:25
阅读次数:
123
Onper-vm#systemctlstopdhcpd#systemctldisabledhcpd#tzselect//timezoneselection[root@workstation~]#yum-yinstallntp#vim/etc/ntp.conf//#server0,1,2,3,restrict192.168.85.0mask255.255.255.0nomodifynotrapserverasia.pool.ntp.orgiburst#systemctlrestartntpd#systemctl..
分类:
其他好文 时间:
2016-10-12 23:07:51
阅读次数:
138