2018年9月3日

centos7 设置静态IP

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

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

U盘制作centos7系统并安装

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

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

docker设置固定ip地址

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

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

redis 设置认证密码

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

posted @ 2018-09-03 15:12 化为雪 阅读(679) 评论(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 化为雪 阅读(155) 评论(0) 推荐(0)

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

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

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

supervisor配置文件详解

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

posted @ 2018-09-03 15:09 化为雪 阅读(4698) 评论(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 化为雪 阅读(116) 评论(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 化为雪 阅读(1324) 评论(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 化为雪 阅读(113) 评论(0) 推荐(0)

配置python虚拟环境Virtualenv及pyenv

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

posted @ 2018-09-03 15:04 化为雪 阅读(92) 评论(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 化为雪 阅读(152) 评论(0) 推荐(0)

bower使用入门

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

posted @ 2018-09-03 15:02 化为雪 阅读(109) 评论(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 化为雪 阅读(335) 评论(0) 推荐(0)

centos7设置静态ip

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

posted @ 2018-09-03 15:00 化为雪 阅读(138) 评论(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 化为雪 阅读(68) 评论(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 化为雪 阅读(350) 评论(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 化为雪 阅读(137) 评论(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 化为雪 阅读(112) 评论(0) 推荐(0)

导航