Dev Skills
posse_w
记录自己成长
展开
-
docker容器的时区(timezone)及mvn启动应用程序的时区(timezone)设置
在docker部署程序时,发现应用程序的时间也会发生时区(timezone)的问题,所以以mvn启动jetty为例记录一下心得.一般遇到的问题是会发现少了八个小时,原因可能是jdk使用的时区有差别,所以在mvn启动时添加启动参数,调用jetty插件时会使用配置参数启动,和跳过测试的参数一致.原创 2016-11-02 11:54:38 · 2603 阅读 · 0 评论 -
Flume-kafka-Storm
http://www.aboutyun.com/thread-6855-1-1.html Flume 简介 这是一个关于池子的故事。有一个池子,它一头进水,另一头出水,进水口可以配置各种管子,出水口也可以配置各种管子,可以有多个进水口、多个出水口。水术语称为Event,进水口术语称为Source、 出水口术语成为Sink、池子术语成为Channel,S原创 2017-12-28 14:42:57 · 235 阅读 · 0 评论 -
MySQL
1.MySQL 升级包 sudo apt-get update安装mysql-client-5.6 sudo apt-get install mysql-client-core-5.6 sudo apt-get install mysql-client-5.6安装 mysql-server-5.6 sudo apt-get install my原创 2017-12-28 14:42:31 · 205 阅读 · 0 评论 -
elasticsearch
下载 https://www.elastic.co/downloads/past-releases/elasticsearch-2-4-4 启动 cd ES_HOME/bin ./elasticsearch验证 localhost:9200plugin cd $ES_HOME ./plugin -install mobz/原创 2017-12-28 14:32:38 · 247 阅读 · 0 评论 -
linux
查看端口号使用情况 lsof -i lsof -i:端口号 netstat -tunlp netstat -tunlp|grep 端口号netstat -anp netstat -anp|grep 端口号http://blog.csdn.net/lifetragedy/article/details/7205832find / -name ‘redis-server’ps auxf|gr原创 2017-12-28 14:32:04 · 125 阅读 · 0 评论 -
nginx
http://nginx.org/en/download.html http://nginx.org/download/sudo apt-get install build-essential sudo apt-get install libtoolsudo apt-get install libpcre3 libpcre3-dev sudo apt-get install zlib1g-de原创 2017-12-28 14:31:33 · 140 阅读 · 0 评论 -
postgres
安装 Ubuntu Xenial (16.04) sudo add-apt-repository “deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main” wget –quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sud原创 2017-12-28 14:31:05 · 156 阅读 · 0 评论 -
scp
from local to remote 文件 1.scp local_file remote_username@remote_ip:remote_folder 2.scp local_file remote_username@remote_ip:remote_file 3.scp local_file remote_ip:remote原创 2017-12-28 14:30:43 · 308 阅读 · 0 评论 -
zookeeper
单IP多节点(伪集群)copy 奇数份安转文件, zookeeper1/, zookeeper2/, zookeeper3/, 要求ZK集群的机制是只要超过半数的节点OK,集群就能正常提供服务.tickTime:这个时间是作为 Zookeeper 服务器之间或客户端与服务器之间维持心跳的时间间隔,也就是每个 tickTime 时间就会发送一个心跳 dataDir:顾名思义就是 Zookeeper原创 2017-12-28 14:25:48 · 112 阅读 · 0 评论 -
cassandra
1、application/locationService/pom.xml 如果报log4j错误,直接注释掉 */log4j.*2、application/locationService/war/pom.xml 取消忽略position.properties,加载position.properties文件。 position.properties3、application/l原创 2017-12-28 14:43:24 · 238 阅读 · 0 评论