Docker machine 使用

安装 linux 1 2 3 $ base=https://github.com/docker/machine/releases/download/v0.16.0 && curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine && sudo install /tmp/docker-machine /usr/local/bin/docker-machine 可以直接把url打印出来,下载再安装 1 2 3 4 $ echo https://github.com/docker/machine/releases/download/v0.16.0/docker-machine-$(uname -s)-$(uname -m) https://github.com/docker/machine/releases/download/v0.16.0/docker-machine-Linux-x86_64 $ sudo install docker-machine-Linux-x86_64 /usr/local/bin/docker-machine 创建机器 1 2 3 4 5 6 7 8 $ docker-machine create -d virtualbox

ubuntu18.04安装deepin微信,并更新到最新

ubuntu18.04 1.deepin-wine-for-ubuntu 1 2 git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu sh ./install.sh 2.下载deepin-wechat http://mirrors.aliyun.com/deepin/pool/non-free/d/deepin.com.wechat/ 安装 deepin.com.wechat_2.6.2.31deepin0_i386.deb 不能安装 deepin.com.wechat_2.6.8.65deepin0_i386.deb 1 sudo dpkg -i package.deb 3.更新到最新版 1 2 3 把另一台windows中WeChat文

用Docker快速搭建在线Eclipse

Che 1 2 3 4 5 6 docker run -p:8080:8080 \ --name che \ -e CHE_HOST=0.0.0.0 \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /opt/docker/che:/data \ eclipse/che-server:6.0.0 参考 https://www.eclipse.org/che/docs/quick-start.html orion 镜像备份下载地址 https://pan.baidu.com/s/1seuGfBQixf8sro8Ru2OBrw 在装有Docker的机器上执行 1 2 docker load < yinshuwei_orion_1_0.tar docker run --name orion -p 8080:8080 -d yinshuwei/orion:1.0 /root/run.sh 打开 http://ip:8080/

购物车开发思路分享

去年下半年的主要工作是在购物车与结算两个模块,完成了从magento向微服务迁移,重新实现了票据,加价购,促销规则,限时特价,优惠券(红包)

常用软件docker安装命令

自动重启 1 --restart=always 关闭 docker 的防火墙 1 DOCKER_OPTS="--iptables=false" Elasticsearch 1 2 3 4 5 docker run --name=es \ -v "/opt/docker/elasticsearch/config":/usr/share/elasticsearch/config \ -v "/opt/docker/elasticsearch/data":/usr/share/elasticsearch/data \ -p 9200:9200 -p 9300:9300 \ -d elasticsearch -Des.node.name="FFGoNode" Grafana 1 2 3 4 5 6 7 docker run \ -d \ -p 3000:3000 \ --name=grafana \ -e "GF_SECURITY_ADMIN_PASSWORD=123456" \ -v /opt/docker/grafana:/var/lib/grafana \ grafana/grafana influxdb 1 2 3 4 5

搭建图片压缩服务器(imaginary )

搭建过程 1 docker run --name tinypng -d -p 9000:9000 h2non/imaginary -enable-url-source -cors 使用方法 原始图片 1 http://media.freshfresh.com/media/catalog/product/1/_/1_44_61.jpg 小图 1 http://server.host.com:9000/crop?width=100000000&url=http://media.freshfresh.com/media/catalog/product/1/_/1_44_61.jpg 关于imaginary Supported image operations Resize Enlarge Crop Rotate (with auto-rotate based on EXIF orientation) Flip (with auto-flip based on EXIF metadata) Flop Zoom Thumbnail Configurable image area extraction Embed/Extend image, supporting