20180510|MySQL主从同步故障的排除

【注意】最后更新于 May 10, 2018,文中内容可能已过时,请谨慎使用。

Master库短暂离线后Slave库报出如下错误: Slave I/O: Got fatal error 1236 from master when reading data from binary log: ‘Client requested master to start replication from position > file size; the first event ‘mysql-bin.000001’ at 473132093, the last event read from ‘./mysql-bin.000001’ at 4, the last byte read from ‘./mysql-bin.000001’ [阅读全文]

20180415|实战MySQL主从同步搭建

【注意】最后更新于 April 15, 2018,文中内容可能已过时,请谨慎使用。

配置过程参考了:https://www.cnblogs.com/gl-developer/p/6170423.html 实现MySQL主从复制 [阅读全文]

20170626|创建自定义Docker镜像(Apache+PHP)

【注意】最后更新于 June 26, 2017,文中内容可能已过时,请谨慎使用。

下载Centos镜像作为基础模板 docker pull centos 生成临时容器,镜像安装 docker run -i -t centos /bin/bash 安装apache+php 由于docker启动时需要指定脚本运行,脚本 [阅读全文]

20170626|Centos中安装配置Docker

【注意】最后更新于 June 26, 2017,文中内容可能已过时,请谨慎使用。

安装VMware Tools 首先启动CentOS 7,在VMware中点击上方“VM”,点击“Install VMware Tools…”(如已安装则显 [阅读全文]

20170524|开源|使用Python批量生成用稿通知PDF(数据来自MySQL)

【注意】最后更新于 May 24, 2017,文中内容可能已过时,请谨慎使用。

源码: #!/usr/bin/env python #-*-coding:utf-8-*- # 20170524 Rebeta F. import os import sys import time import json #json库 import urllib #网页库 import base64 #Base64加密库 import qrcode #二维码库 import ctypes #printGreen所需库文件 from reportlab.lib.pagesizes import [阅读全文]

20170510|CentOS7中Python连接ORACLE数据库的配置

【注意】最后更新于 May 10, 2017,文中内容可能已过时,请谨慎使用。

安装Python yum install -y python 安装Oracle Client 前往ORACLE官网下载rpm安装包并上传至服务器 rpm -ivh oracle-instantclient-basic-10.2.0.5-1.x86_64.rpm rpm -ivh oracle-instantclient-devel-10.2.0.5-1.x86_64.rpm 测试 python import cx_Oracle conn=cx_Oracle.connect(‘zfxfzb/[email protected]/zfxfzb’) print conn.version 10.2.0.1.0 conn.close() 如果import [阅读全文]

20170506|CentOS7中安装Nginx并配置为负载均衡和反向代理模式

【注意】最后更新于 May 6, 2017,文中内容可能已过时,请谨慎使用。

安装 yum install nginx 配置 反向代理示例(HTTPS) server { listen 443; server_name api.rebeta.cn; ssl on; ssl_certificate 1_api.rebeta.cn_bundle.crt; ssl_certificate_key 2_api.rebeta.cn.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; ssl_prefer_server_ciphers on; location / { proxy_next_upstream http_502 http_504 error timeout invalid_header; proxy_pass http://***/api/; proxy_redirect off; proxy_set_header Host api.rebeta.cn; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-proto https; index index.htm index.html [阅读全文]

20170506|CentOS7中PHP连接ORACLE数据库的配置

【注意】最后更新于 May 6, 2017,文中内容可能已过时,请谨慎使用。

本次安装所需文件下载: https://pan.baidu.com/s/1gfeg2bx 密码: kdna 前期准备工作 yum -y install gcc #安装编译器 yum install php-devel #解决打开phpize时提示不存在的错误 前往ORACLE官网下载对应的 [阅读全文]

20170506|CentOS7中PHP环境的搭建

【注意】最后更新于 May 6, 2017,文中内容可能已过时,请谨慎使用。

安装Apache 首先对系统进行升级 yum update 然后安装Apache yum install httpd 安装PHP 安装PHP yum install php 安装PHP所需的各种拓展及插件 yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc [阅读全文]

20170506|配置DELL R720的远程控制卡(iDRAC)

【注意】最后更新于 May 6, 2017,文中内容可能已过时,请谨慎使用。

开机时按F2或者F11,进入BIOS设置界面。 选择iDRAC Setting。 在Enable NC选项中选择Enable 选择默认的网卡为与网络连 [阅读全文]