2018年9月3日

centos7 设置静态IP

摘要: centos7 设置静态IP 一、查找配置文件(/etc/sysconfig/network-scripts) 阅读全文

posted @ 2018-09-03 15:13 化为雪 阅读(363) 评论(0) 推荐(0)

redis 设置认证密码

摘要: 通过修改redis配置文件(redis.conf)修改验证密码。(重启生效) 客户端通过密码登录redis并进行操作 阅读全文

posted @ 2018-09-03 15:12 化为雪 阅读(681) 评论(0) 推荐(0)

docker设置固定ip地址

摘要: Docker安装后,默认会创建下面三种网络类型 启动 Docker的时候,用 --network 参数,可以指定网络类型 bridge:桥接网络 none:无指定网络 host: 主机网络 创建自定义网络:(设置固定IP) 步骤1: 创建自定义网络 步骤2: 创建Docker容器 阅读全文

posted @ 2018-09-03 15:12 化为雪 阅读(4363) 评论(0) 推荐(0)

U盘制作centos7系统并安装

摘要: U盘刻录步骤 安装时报如下错误 安装过程 阅读全文

posted @ 2018-09-03 15:12 化为雪 阅读(1485) 评论(0) 推荐(0)

php分布式redis实现session共享

摘要: 方法一:找到配置文件php.ini,修改为下面内容,保存并重启服务 session.save_handler = redis session.save_path = "tcp://127.0.0.1:6379" 方法二:直接在代码中加入以下内容 ini_set("session.save_handl 阅读全文

posted @ 2018-09-03 15:11 化为雪 阅读(157) 评论(0) 推荐(0)

MySQL开启binlog并且保存7天有效数据

摘要: 开启binlog日志(在[mysqld]下修改或添加如下配置): binlog日志模式 查看默认的日志保存天数 设置为7天有效期(修改配置文件) binlog使用 阅读全文

posted @ 2018-09-03 15:10 化为雪 阅读(399) 评论(0) 推荐(0)

supervisor配置文件详解

摘要: 介绍 安装 生成配置文件 启动(以下启动顺序由上到下优先级,依次递减) supervisor组件 配置文件详解 阅读全文

posted @ 2018-09-03 15:09 化为雪 阅读(4700) 评论(0) 推荐(0)

zabbix 3.4.1 解决中文乱码

摘要: docker zabbix中文乱码 基础镜像为:zabbix/zabbix-web-nginx-mysql 1.首先下载msyh.ttf 2.docker cp msyh.ttf 容器:/usr/share/fonts/ttf-dejavu/ 3.docker exec -it 容器 /bin/ba 阅读全文

posted @ 2018-09-03 15:09 化为雪 阅读(117) 评论(0) 推荐(0)

MySQL5.7 group by新特性,报错1055

摘要: 项目中本来使用的是mysql5.6进行开发,切换到5.7之后,突然发现原来的一些sql运行都报错,错误编码1055,错误信息和sql_mode中的“only_full_group_by“关,到网上看了原因,说是mysql5.7中only_full_group_by这个模式是默认开启的 解决办法大致有 阅读全文

posted @ 2018-09-03 15:08 化为雪 阅读(1326) 评论(0) 推荐(0)

mac使用ngrok将本地Web服务映射到外网

摘要: ngrok是什么? mac上使用ngrok mac查看ngrok帮助信息 mac运行ngrok示例 阅读全文

posted @ 2018-09-03 15:05 化为雪 阅读(0) 评论(0) 推荐(0)

composer引用本地git做为源库

摘要: PHP使用者大多对composer是又爱又恨,爱的是composer require后,很多类库不用去下载了,恨的是网速卡成翔,虽然国内有很多道友做了镜象,但对于bower库这些都还是整体更新。 那么,如何只利用composer的基本功能来为自己服务呢?composer的官网有介绍,只要在compo 阅读全文

posted @ 2018-09-03 15:04 化为雪 阅读(117) 评论(0) 推荐(0)

配置python虚拟环境Virtualenv及pyenv

摘要: pyenv virtualenv创建独立的Python环境 阅读全文

posted @ 2018-09-03 15:04 化为雪 阅读(97) 评论(0) 推荐(0)

Docker命令行安装Shipyard

摘要: 1.下载自动部署Shell脚本 1 curl -sSL https://shipyard-project.com/deploy | bash -s 1 curl -sSL https://shipyard-project.com/deploy | bash -s 1 curl -sSL https: 阅读全文

posted @ 2018-09-03 15:03 化为雪 阅读(156) 评论(0) 推荐(0)

Docker可视化管理工具Shipyard安装与配置

摘要: Shipyard简介 1 2 3 4 Shipyard是一个集成管理docker容器、镜像、Registries的系统,它具有以下特点: 1.支持多节点的集成管理 2.可动态加载节点 3.可托管node下的容器 1 2 3 4 Shipyard是一个集成管理docker容器、镜像、Registrie 阅读全文

posted @ 2018-09-03 15:02 化为雪 阅读(341) 评论(0) 推荐(0)

bower使用入门

摘要: 1.什么是bower 1 Bower是一个客户端技术的软件包管理器,它可用于搜索、安装和卸载如JavaScript、HTML、CSS之类的网络资源。其他一些建立在Bower基础之上的开发工具,如YeoMan和Grunt。 1 Bower是一个客户端技术的软件包管理器,它可用于搜索、安装和卸载如Jav 阅读全文

posted @ 2018-09-03 15:02 化为雪 阅读(111) 评论(0) 推荐(0)

centos7设置静态ip

摘要: 动态ip可以上网。静态ip设置成功后,发现不能上网。 1.首先查看动态ip的默认网关 2.设置配置文件 在 /etc/sysconfig/network-scripts 路径下找到 ifcfg-* ,* 代表具体网卡,本文修改的网卡是 ifcfg-enp0s3 ,你的有可能是 ifcfg-eth0 阅读全文

posted @ 2018-09-03 15:00 化为雪 阅读(141) 评论(0) 推荐(0)

CentOS7使用firewalld打开关闭防火墙与端口

摘要: 1、firewalld的基本使用 1 2 3 4 启动: systemctl start firewalld 查看状态: systemctl status firewalld 停止: systemctl disable firewalld 禁用: systemctl stop firewalld 1 阅读全文

posted @ 2018-09-03 15:00 化为雪 阅读(71) 评论(0) 推荐(0)

基于Docker构建带有Rsync的Jenkins

摘要: 1.编辑Dockerfile文件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 FROM jenkins USER root ADD sources.list /etc/apt/sources.list RUN apt-get update && apt-get 阅读全文

posted @ 2018-09-03 15:00 化为雪 阅读(354) 评论(0) 推荐(0)

MySQL创建带有编码的数据库

摘要: 1 mysql> create database chao default character set utf8 collate utf8_general_ci; mysql> create database chao default character set utf8 collate utf8_ 阅读全文

posted @ 2018-09-03 14:59 化为雪 阅读(138) 评论(0) 推荐(0)

MySQL修改密码

摘要: 1.设置root密码(root密码为空时) 1 mysqladmin -uroot password "new123"; 1 mysqladmin -uroot password "new123"; 1 mysqladmin -uroot password "new123"; 1 mysqladmi 阅读全文

posted @ 2018-09-03 14:58 化为雪 阅读(113) 评论(0) 推荐(0)

CentOS7中关闭firewall,并使用iptables管理防火墙

摘要: 背景描述 1 在使用Docker时,启用centos7默认的firewall,启动端口映射时,防火墙规则不生效。docker默认使用了iptables防火墙机制。所以需要关闭firewall使用iptables解决。 1 在使用Docker时,启用centos7默认的firewall,启动端口映射时 阅读全文

posted @ 2018-09-03 14:57 化为雪 阅读(174) 评论(0) 推荐(0)

MySQL备份常用命令总结

摘要: MySQL备份常用命令总结 1.数据库和数据全部备份 1 mysqldump -uroot -pPassword -hlocalhost databasename > test.sql<br>mysqldump -uroot -pPassword -hlocalhost databasename|g 阅读全文

posted @ 2018-09-03 14:57 化为雪 阅读(198) 评论(0) 推荐(0)

centos7时间同步

摘要: 用ntpdate从时间服务器更新时间 1.如果你的linux系统根本没有ntpdate这个命令 1 yum install -y ntp 1 yum install -y ntp 1 yum install -y ntp 1 yum install -y ntp yum install -y ntp 阅读全文

posted @ 2018-09-03 14:56 化为雪 阅读(80) 评论(0) 推荐(0)

Docker MySQL备份

摘要: 建立备份的MySQL容器 1 docker run --name mysql-back -e MYSQL_ROOT_PASSWORD=root -v /srv/mysql/backup:/mysql/backup -d mysql:5.7.17 1 docker run --name mysql-b 阅读全文

posted @ 2018-09-03 14:56 化为雪 阅读(847) 评论(0) 推荐(0)

Docker安装Nginx1.11.10+php7+MySQL

摘要: Docker安装php-fpm 1.编辑Dockerfile 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 FROM php:7.1.3-fpm ADD sources.list /etc/apt/sources.list RUN cp /usr/share/zoneinf 阅读全文

posted @ 2018-09-03 14:55 化为雪 阅读(196) 评论(0) 推荐(0)

Docker安装Jenkins

摘要: 1.下载镜像 1 docker pull jenkins 1 docker pull jenkins 1 docker pull jenkins 1 docker pull jenkins docker pull jenkins 2.生成一个容器 1 docker run -d --name myj 阅读全文

posted @ 2018-09-03 14:53 化为雪 阅读(134) 评论(0) 推荐(0)

Jenkins实现PHP的自动部署

摘要: 1.汉化jenkins 1).安装汉化包 1 系统管理 -> 插件管理 -> 安装插件 ->选择插件(Locale plugin) 1 系统管理 -> 插件管理 -> 安装插件 ->选择插件(Locale plugin) 1 系统管理 -> 插件管理 -> 安装插件 ->选择插件(Locale pl 阅读全文

posted @ 2018-09-03 14:53 化为雪 阅读(178) 评论(0) 推荐(0)

centos7使用docker部署gitlab-ce-zh应用

摘要: 1.国内拉取镜像比较慢,所以这里采用DaoCloud源。 1 # curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://43049fd0.m.daocloud.io 1 # curl -sSL https:// 阅读全文

posted @ 2018-09-03 14:52 化为雪 阅读(130) 评论(0) 推荐(0)

CentOS7上Docker安装与卸载

摘要: 安装 1、安装Docker 参见:https://docs.docker.com/engine/installation/linux/centos/ 2、直接使用root安装(更新系统) yum update 3.配置docker镜像源 tee /etc/yum.repos.d/docker.rep 阅读全文

posted @ 2018-09-03 14:50 化为雪 阅读(82) 评论(0) 推荐(0)

导航