- 博客(23)
- 收藏
- 关注
原创 Dockerfile Centos 7 修改时间和字符集
Dockerfile Centos 7 修改时间和字符集 # modify timezoneRUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime#modify Character setENV LANG en_US.UTF-8ENV LANGUAGE en_US.UTF-8ENV LC_ALL en_...
2016-11-30 18:08:42 993
原创 Intellij IDEA remote tomcat debug with jrebel on linux
Intellij IDEA remote tomcat debug with jrebel on linux Github:https://github.com/crabdave/Docker-jrebel-debug.git 1、准备jrebel.jar文件 ,生产jrebel服务端密码java -jar /opt/jrebel.jar -set-remote-pas...
2016-11-30 18:07:59 404 1
原创 CentOS用dd命令制作U盘启动盘
CentOS用dd命令制作U盘启动盘 下载ISO文件wget http://mirrors.163.com/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Everything-1511.iso dd if=/ntfs/linux_all/sys/CentOS-7.0-1406-x86_64-DVD.iso of=/dev/sdb ...
2016-11-25 10:40:39 1891 1
原创 Centos6 没有eth0 其他网口(p4p1)转eth0
Centos6 没有eth0 其他网口(p4p1)转eth0 vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 NAME="System eth0" vi /etc/udev/rules.d/70-persistent-net.rulesKERNEL=="eth*", NAME="eth0" ...
2016-11-24 16:58:22 570
原创 Shell 向文件中添加一行
Shell 向文件中添加一行 参考:http://www.111cn.net/sys/linux/77821.htm 在explicit之后添加一行 sed -i '/explicit/a max_allowed_packet = 32M' /etc/mysql/my.cnf
2016-11-24 14:14:21 9190
原创 Mysql blob Data truncation: Data too long for column
Mysql blob Data truncation: Data too long for column Use following data types as per your need TINYBLOB : maximum length of 255 bytes BLOB : maximum length of 65,535 bytes ...
2016-11-24 14:10:13 357
原创 SELinux的模式
SELinux的模式 参考:http://blog.sina.com.cn/s/blog_5aee9eaf0100y44q.html
2016-11-21 18:15:18 328
原创 Docker ENTRYPOINT和CMD
Docker ENTRYPOINT和CMD 参考:https://zhidao.baidu.com/question/1112099415768483819.html
2016-11-21 18:01:01 367
原创 Docker Centos SSHD服务 Dockerfile
Docker Centos SSHD服务 Dockerfile # Pull base image FROM centos:latest MAINTAINER crabdave "calorie.david@gmail.com" # Usage: USER [UID]USER root# modify timezoneRUN cp /usr/sh...
2016-11-21 17:50:35 116
原创 Docker Centos7.2 docker Failed to get D-Bus connection
Docker Centos7.2 docker Failed to get D-Bus connection 原因是因为dbus-daemon没能启动。其实systemctl并不是不可以使用。将你的CMD或者entrypoint设置为/usr/sbin/init即可。会自动将dbus等服务启动起来。 参考:http://welcomeweb.blog.51cto.com/1...
2016-11-21 17:31:58 231
原创 Docker Centos7 Container 容器中运行 crontab 定时任务 Dockerfile
Docker Centos7 Container 容器中运行 crontab 定时任务 Dockerfile # Pull base image FROM centos:latest MAINTAINER crabdave "calorie.david@gmail.com" # Usage: USER [UID]USER root# modify t...
2016-11-21 17:21:46 5975
原创 Docker修改容器内的时间
Docker修改容器内的时间 docker run --name 《name》 -v /etc/localtime:/etc/localtime:ro ... 把时区设置加入到Dockerfile中 # Ubuntu RUN echo “Asia/shanghai” 》 /etc/timezone; # CentOS RUN cp /usr/share...
2016-11-18 12:54:27 1825
原创 Docker 挂载权限 chcon: can't apply partial context to unlabeled file
Docker 挂载权限 chcon: can't apply partial context to unlabeled file 参考:http://www.linuxidc.com/Linux/2012-09/70199.htm # chcon -t samba_share_t /software chcon: can't apply partial context to ...
2016-11-18 09:58:50 2458 2
原创 Maven pom.xlm中添加jar到bootclasspath
Maven pom.xlm中添加jar到bootclasspath 例如:添加jra中的jar包(jre/lib/rt.jar)到 JAVA_HOME <properties> <maven-compiler.version>3.1</maven-compiler.version> <java.version>1.8...
2016-11-17 11:31:57 1326
原创 Base64字符解码保存文件
Base64字符解码保存文件 /** * 将base64字符解码保存文件 * @param base64Code * @param targetPath * @throws Exception */ public void decoderBase64File(String base64Code, String ...
2016-11-16 15:21:14 1535
原创 使用Java将PDF文件转成图片
使用Java将PDF文件转成图片import com.sun.pdfview.PDFFile;import com.sun.pdfview.PDFPage;import javax.imageio.ImageIO;import javax.swing.*;import java.awt.*;import java.awt.image.BufferedImage;...
2016-11-16 11:13:25 1232 1
原创 Nexus can't find artifact that is in Maven Central(SNAPSHOT)
Nexus can't find artifact that is in Maven Central(SNAPSHOT) 因为使用的是SNAPSHOT 所以需要将打开自动下载profile,这样对于新产生的SNAPSHOT版本,maven会自动下载,就不会出现SNAPSHOT不能自动下载的问题了。 <snapshots><...
2016-11-15 19:48:53 187
原创 Maven Profile 多环境构建
Maven Profile 多环境构建 配置文件目录结构 |-- resources| |-- dev| |-- production| |-- qa 编辑pom.xml<build> <resources> <resource> <directory>src/...
2016-11-14 20:05:06 127
原创 web.xml 配置 contextConfigLocation(多个Spring配置文件)
web.xml 配置 contextConfigLocation(多个Spring配置文件) <context-param> <param-name>contextConfigLocation</param-name> <param-value>WEB-INF/applicationContext*.xml</param-...
2016-11-14 19:43:23 5238
原创 jQuery 跑马灯效果
jQuery 跑马灯效果 http://www.jqueryscript.net/demo/Simple-Seamless-Carousel-Scroller-Plugin-with-jQuery-cxScroll/ swiperhttp://www.swiper.com.cn/ demohttp://www.swiper.com.cn/demo/inde...
2016-11-12 16:36:42 1004
原创 Docker 创建Mysql、Redis、Mongodb容器 on Centos7
Docker 创建Mysql、Redis、Mongodb容器 on Centos7 创建Mysql容器docker run -p 3306:3306 --name mysql-5.6 -e MYSQL_ROOT_PASSWORD=yourpassword -d mysql:5.6进入容器 修改配置文件 sed -i '/explicit/a max_allowed_packet...
2016-11-11 10:40:27 255
原创 MySql 授权登录
MySql 授权登录 mysql -u rootuse mysql;update user set password=PASSWORD("123456") where user='root';grant all on *.* to root@"%" identified by "123456";
2016-11-11 10:38:47 99
原创 shell 删除文件的一行
shell 删除文件的一行 1. 删除文件指定的第三行。sed -i '3d' file.txt 2. 删除文件中包含"NewBalance"的那行。sed -i '/NewBalance/d' file.txt
2016-11-11 09:33:57 2245
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人