摘要: 1.nat 2. only host auto lo iface lo inet loopback auto enp0s3 iface enp0s3 inet dhcp auto enp0s8 iface enp0s8 inet static address 192.168.56.12 netmas 阅读全文
posted @ 2018-01-21 09:21 anjunact 阅读(131) 评论(0) 推荐(0) 编辑
摘要: //不加--attachable 下一步会报错 docker network create --attachable cluster1_net docker run -d -p 3306 --net=cluster1_net -e MYSQL_ROOT_PASSWORD=123456 -e CLUS 阅读全文
posted @ 2018-01-18 21:12 anjunact 阅读(646) 评论(0) 推荐(0) 编辑
摘要: 备份 PlUSH TABLES WITH READ LOCK; mysqldump -u username -p --databases dbname2 dbname2 > weshop_test.sql mysqldump -uroot -p -h192.168.56.9 --set-gtid-p 阅读全文
posted @ 2018-01-16 16:49 anjunact 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 一 连接docker中jmx注意:ports中如果不一样,连接不上;com.sun.management.jmxremote.rmi.port =com.sun.management.jmxremote.portgoodsapi:image: javavolumes:- ./goods-api.jar:/goods-api.jarports:- 19090:19090- 18080:8080com... 阅读全文
posted @ 2018-01-12 14:33 anjunact 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 使用国内镜像,阿里云单个项目修改使用,build.gradle 中修改文件如下: buildscript { repositories { maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' } maven{ url 阅读全文
posted @ 2018-01-10 21:29 anjunact 阅读(116) 评论(0) 推荐(0) 编辑
摘要: go get -u -v github.com/ramya-rao-a/go-outlinego get -u -v github.com/acroca/go-symbolsgo get -u -v github.com/nsf/gocodego get -u -v github.com/rogpe 阅读全文
posted @ 2018-01-02 21:55 anjunact 阅读(112) 评论(0) 推荐(0) 编辑
摘要: create tablespace dbuser datafile '/u01/app/oracle/oradata/XE/dbuser.dbf' size 1024m autoextend on next 4m;create user dbuser identified by 123456grant connect,resource,dba to dbuser;sqlplus dbuser/12... 阅读全文
posted @ 2017-12-28 16:25 anjunact 阅读(91) 评论(0) 推荐(0) 编辑
摘要: godoc -http=:8080http://localhost:8080/pkg/ ##time//时间格式化2006-01-02 15:04:05 不要变 必须是这个时间点, 据说是go诞生之日, 记忆方法:6-1-2-3-4-5fmt.Println(time.Now().Format("2006-01-02 15:04:05"))str_time := time.Unix(1389058... 阅读全文
posted @ 2017-12-20 16:09 anjunact 阅读(93) 评论(0) 推荐(0) 编辑
摘要: /etc/docker/daemon.json{ "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"]}swarm 在每个节点发布服务—mode global –publish mode=host,target=80,published=8080 docker service create \ --mode global \ -... 阅读全文
posted @ 2017-12-06 17:48 anjunact 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 配置目录/var/lib/pgsql/10/datasudo passwd postgrespostgresql.conf将 #listen_addresses = 'localhost' 前的#号去掉,然后将后面的localhost改为*,然后将 #port = 5432 前的#去掉,最后再将 #password_encryption = on对pg_hba.conf内容进行配置,将上面红框内的... 阅读全文
posted @ 2017-12-01 09:07 anjunact 阅读(213) 评论(0) 推荐(0) 编辑