- 博客(9)
- 收藏
- 关注
原创 Ubuntu16.04系统下FastDFS+Nginx安装配置
一、FastDFS的安装(安装FastDFS前需要安装libevent和libfastcommon):1、安装libevent:下载libevent-2.0.22-stable.tar.gz下载地址:https://pan.baidu.com/s/1O6imihg2tE8D7zoMi8jlWw 提取码: 7e95下载后解压缩 tar -zxvflibeven...
2019-03-14 18:44:46
999
原创 python操作redis-sentinel集群
1.安装Python-Redis客户端: pip install redis2. API操作: import redisfrom redis.sentinel import Sentinel# 连接哨兵服务器(主机名也可以用域名)sentinel = Sentinel([('192.168.31.87', 26379),('192.168.31.88', 2637...
2018-11-30 16:36:05
1620
原创 Ubuntu16.04 安装Redis哨兵模式
一.安装redis(主从服务一致):sudo apt-get install redis-server 二.redis配置:1.主服务(192.168.31.87)配置:sudo vim /etc/redis/redis.conf 2. 从服务器(192.168.31...
2018-11-30 16:24:59
2467
原创 Ubuntu16.04安装Keepalived
1.安装依赖包(主从服务器一致)a) sudo apt-get install libssl-dev b) sudo apt-get install openssl c) sudo apt-get install libpopt-dev 2.安装keepalived(主从服务器一致...
2018-11-28 18:04:33
3936
2
原创 node.js mysql的Connection lost The server closed the connection问题
一、问题(错误日志)Sep 27 11:22:29 ubuntu node[66931]: events.js:183Sep 27 11:22:29 ubuntu node[66931]: throw er; // Unhandled 'error' eventSep 27 11:22:29 ubuntu node[66931]: ^Sep 27 11:22:2...
2018-09-27 17:15:47
835
原创 Ubuntu16.04安装Django环境
一、环境:系统Ubuntu16.04,系统自带2个版本的python,一个是python2.7,一个是python3.5,我想直接使用Python3.5二、安装pip工具sudo apt-get install python3-pip三、安装本地虚拟环境管理工具sudo apt-get install python3-virtualenv四、创建虚拟环境1.创建Djan...
2018-08-11 18:37:47
3680
4
原创 Ubuntu16.04 搭建svn服务器
一、安装SVN服务器sudo apt-get updatesudo apt-get install subversion二、创建版本库 1、创建svn文件夹sudo mkdir /home/svnsudo mkdir /home/svn/wmecssudo chmod -R 777 /home/svn/wmecs 2、创建版本库sudo svnadmin create /home/...
2018-07-07 17:14:32
1901
原创 MySQL主主同步
一、环境 机器A:192.168.31.152 机器B:192.168.31.140 系统:Ubuntu 16.04 数据库:MySQL 5.7.22二、Master配置 1、机器A-Master配置 1.1、修改配置文件sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf[mysqld]#服务器的ID,必须唯一,一般...
2018-06-07 14:55:45
716
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人