01 2018 档案

摘要:安装 https://wiki.postgresql.org/wiki/YUM_Installation 配置 https://wiki.postgresql.org/wiki/First_steps 查看服务状态 这里的数据是放在/var目录下的,建议换个地方存放,因为数据量大了很快就把/var空 阅读全文
posted @ 2018-01-29 13:18 uptothesky 阅读(241) 评论(0) 推荐(0) 编辑
摘要:服务端 import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import java.net.SocketException; public class SocketServer { pub 阅读全文
posted @ 2018-01-28 22:38 uptothesky 阅读(97) 评论(0) 推荐(0) 编辑
摘要:Hadoop安装 http://hadoop.apache.org/releases.html CentOS 下载 http://mirror.bit.edu.cn/apache/hadoop/common/hadoop-3.0.0/hadoop-3.0.0.tar.gz 下载后解压 把解压后的文件 阅读全文
posted @ 2018-01-27 21:47 uptothesky 阅读(281) 评论(0) 推荐(0) 编辑
摘要:nginx for Windows unzip nginx-1.21.4.zip cd nginx-1.21.4 start nginx nginx -s stop fast shutdown nginx -s quit graceful shutdown nginx -s reload chang 阅读全文
posted @ 2018-01-25 10:32 uptothesky 阅读(143) 评论(0) 推荐(0) 编辑
摘要:Java程序对内存分配方式 内存分区 又区分为线程共享和线程私有两大类。线程共享指的是可以允许被所有的线程共享访问的内存区,包括堆内存区、方法区、运行时常量池。 虚拟机栈 栈中的数据可以共享,虚拟机栈是线程私有的内存空间 测试栈的深度 public class TestJVMStack { priv 阅读全文
posted @ 2018-01-23 22:14 uptothesky 阅读(227) 评论(0) 推荐(0) 编辑
摘要:新建spring boot应用demo-docker,添加web依赖 入口类 使用maven打包 打开demo-docker\target 目录,找到jar文件 接下来使用Xshell连接到CentOS,cd 到目标目录,这里假如为/opt/demo 可以直接吧jar文件拖放到Xshell中,需要在 阅读全文
posted @ 2018-01-20 11:50 uptothesky 阅读(340) 评论(0) 推荐(0) 编辑
摘要:新建spring boot工程trace-1,添加pom依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-eureka</artifactId> </depend 阅读全文
posted @ 2018-01-18 14:15 uptothesky 阅读(274) 评论(0) 推荐(0) 编辑
摘要:spring 资源访问 配置管理 阅读全文
posted @ 2018-01-15 22:00 uptothesky 阅读(122) 评论(0) 推荐(0) 编辑
摘要:创建spring boot工程,添加pom依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-stream-rabbit</artifactId> </depend 阅读全文
posted @ 2018-01-15 17:19 uptothesky 阅读(311) 评论(0) 推荐(0) 编辑
摘要:RabbitMQ 在docker中运行rabbitmq 浏览器打开:http://10.202.203.29:8080/ 默认用户名/密码都是guest 在Admin页面添加用户 新添加的用户是没有权限的 点击用户名进去,按提示添加权限 这样就可以在程序中访问了。 创建spring boot 项目, 阅读全文
posted @ 2018-01-15 12:10 uptothesky 阅读(396) 评论(0) 推荐(0) 编辑
摘要:服务端 创建spring boot 工程,命名为config-server,在pom中添加引用 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactI 阅读全文
posted @ 2018-01-15 10:01 uptothesky 阅读(194) 评论(0) 推荐(0) 编辑
摘要:在虚拟机中使用ip addr 查看网卡 可以看到这个ens33,可能每台机器的名称不一样 然后找到/etc/sysconfig/network-scripts/ifcfg-eth33 编辑此文件 将 ONBOOT="no" 改为 ONBOOT="yes" 保存后: service network r 阅读全文
posted @ 2018-01-14 09:22 uptothesky 阅读(557) 评论(0) 推荐(0) 编辑
摘要:GitHub地址:https://github.com/happyfish100/fastdfs 安装步骤:https://github.com/happyfish100/fastdfs/blob/master/INSTALL 在/etc/fdfs/下没有tracker.conf文件,将tracke 阅读全文
posted @ 2018-01-13 10:42 uptothesky 阅读(208) 评论(0) 推荐(0) 编辑
摘要:接上篇,使用redis做缓存 新建spring boot 工程,添加pom引用 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactI 阅读全文
posted @ 2018-01-06 19:58 uptothesky 阅读(1154) 评论(0) 推荐(0) 编辑
摘要:Druid Spring Boot Starter mybatis-spring-boot-autoconfigure mybatis-spring-boot-samples 新建spring boot工程,添加pom依赖 <dependency> <groupId>org.mybatis.spri 阅读全文
posted @ 2018-01-06 10:33 uptothesky 阅读(326) 评论(0) 推荐(0) 编辑
摘要:下拉镜像 启动镜像 打开浏览器:http://192.168.31.146:7474/browser/ 用户名/密码初始值为:neo4j 首次登陆需要修改密码 登陆后界面 新建springboot项目,添加pom引用 <dependency> <groupId>org.springframework 阅读全文
posted @ 2018-01-04 23:25 uptothesky 阅读(1499) 评论(0) 推荐(0) 编辑
摘要:接上篇: Spring Cloud Eureka 使用命令开启两个服务提供者 运行ribbon-consumer,访问 http://localhost:9000/ribbon-consumer 停掉8081服务,刷新页面,会提示错误 改造ribbon-consumer项目 在pom中加入Hystr 阅读全文
posted @ 2018-01-04 15:35 uptothesky 阅读(347) 评论(0) 推荐(0) 编辑
摘要:启动mongo镜像 连接到容器内 输入:mongo 输入:show dbs 输入:db.stats() 下载mongo客户端:https://robomongo.org/download 按ctrl+c 和 exit 退出容器,输入:docker ps 这里自动映射的端口为32768,打开Robo 阅读全文
posted @ 2018-01-03 22:36 uptothesky 阅读(553) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示