摘要: docker exec -ti {容器ID} /bin/bash 进入容器 apt-get install vim 安装vim 找到 vim /etc/mysql/my.cnf 在 [mysqld] 下添加 sql_mode={你想要的sql_mode,可以先用 select @@sql_mode 阅读全文
posted @ 2018-06-11 11:23 每天多帅一点点 阅读(3405) 评论(0) 推荐(0) 编辑
摘要: 将jar包上传到 你想要的目录下 如 /java/service/demo.jar 进入 /etc/systemd/system 目录下 新建 demo.service 内容如下 [Unit]Description=wechatAfter=syslog.target network.target [ 阅读全文
posted @ 2018-05-06 15:19 每天多帅一点点 阅读(717) 评论(0) 推荐(0) 编辑
摘要: centos 7 下载解压 wget http://download.redis.io/releases/redis-3.2.11.tar.gz tar xzf redis-3.2.11.tar.gz 进入解压目录make 修改redis.conf 远程访问 注释掉 bind 127.0.0.0 修 阅读全文
posted @ 2018-05-04 20:12 每天多帅一点点 阅读(370) 评论(0) 推荐(0) 编辑
摘要: SELECT id,lat,lng, ( 6371 * acos( cos( radians( 37 ) ) * cos( radians( lat ) ) * cos( radians( lng ) - radians( 121 ) ) + sin( radians( 37 ) ) * sin(& 阅读全文
posted @ 2017-11-29 17:02 每天多帅一点点 阅读(670) 评论(0) 推荐(0) 编辑
摘要: 我在我的服务器上面跑了两个node应用程序,分别一个端口2368跑的是ghost博客,一个端口8000跑的是我的demo程序。想要一级域名zhangruojun.com用来访问博客,二级域名demo.zhangruojun.com用来访问demo程序。 首先,在你的域名供应商那里添加一条二级域名记录 阅读全文
posted @ 2017-11-16 10:46 每天多帅一点点 阅读(18737) 评论(3) 推荐(0) 编辑
摘要: 启动类中加入 解决Spring Data JPA延迟加载no session错误 http://blog.csdn.net/chrislyl/article/details/54630413 阅读全文
posted @ 2017-11-07 11:15 每天多帅一点点 阅读(2031) 评论(0) 推荐(0) 编辑
摘要: 使用Feign的时候,如果参数中带有 阅读全文
posted @ 2017-11-07 10:38 每天多帅一点点 阅读(20854) 评论(0) 推荐(10) 编辑
摘要: select sum(1) as col_0_0_, sum(case vciinfo.useable when -1 then 1 else 0 end) as col_1_0_, sum(case when vciinfo.activatetime is null then 0 else 1 e 阅读全文
posted @ 2017-11-02 16:27 每天多帅一点点 阅读(3082) 评论(0) 推荐(0) 编辑
摘要: 使用Top命令查看内存及缓冲区使用情况 当磁盘频繁产生IO时会导致buff/cache占用很高的内存,导致可用物理内存很少 但是当真正需要内存时,缓冲区内存会自动释放. 如果需要清理可以用 cache清理 sync;echo 3 > /proc/sys/vm/drop_caches 前面加sync 阅读全文
posted @ 2017-10-27 10:07 每天多帅一点点 阅读(8033) 评论(0) 推荐(0) 编辑
摘要: 使用的系统版本 ubuntu 16.04 lsb_release -a 查看系统版本 查看cron 运行状态 阅读全文
posted @ 2017-10-26 14:55 每天多帅一点点 阅读(871) 评论(0) 推荐(0) 编辑