0℃
2022年09月02日
⁄ MySQL
⁄ 被围观 5,640次+
操作系统:CentOS 7.x
MySQL二进制版本:5.7.x 小版本升级
现有版本:MySQL 5.7.38
升级后版本:MySQL 5.7.39
下载地址:https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.39-linux-glibc2.12-x86_64.tar.gz
上传mysql-5.7.39-linux-glibc2.12-x86_64.tar.gz到/usr/local/src
升级前先查看MySQL 5.7.x 中添加、弃用或删除的变量和选项
https://dev.mysql.com/doc/refman/5.7/en/added-deprecated-removed.html
############################################
MySQL 8.0.x版本可以使用mysql-shell进行升级前...
linux, mysql阅读全文
0℃
2022年08月04日
⁄ Redis
⁄ 被围观 5,670次+
准备篇
一、防火墙配置
CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
systemctl mask firewalld
systemctl stop firewalld
yum remove firewalld
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防火墙配置文件
# sample configuration for iptables service
# you can edit this manually or use system-c...
linux, redis阅读全文
0℃
2022年08月04日
⁄ Redis
⁄ 被围观 5,273次+
Redis安装目录:/usr/local/redis-5.0.14/
#创建日志切割脚本
vi /usr/local/redis-5.0.14/cut-redis-log.sh
#!/bin/bash
#获取昨天的日期
file_date=$(date -d"1 day ago" +"%Y%m%d")
#redis日志文件
log_path_redis=/usr/local/redis-5.0.14/log/redis.log
#日志切割后的存放目录
back_base=/usr/local/redis-5.0.14/log/
#设置删除多少天之前的日志文件
days=180
#切割日志
#redis的日志文件可以直接mv,不需要重新加载服务就能生成新的日志文件
mv $log_path_redis $back_base/redis_$file_date.log
#删除日...
linux, redis阅读全文
0℃
2022年08月03日
⁄ Nginx
⁄ 被围观 5,618次+
操作系统:CentOS 7.x
准备篇
一、防火墙配置
CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
systemctl mask firewalld
systemctl stop firewalld
yum remove firewalld
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防火墙配置文件
# sample configuration for iptables service
# you can edit this man...
CentOS, linux, nginx阅读全文
0℃
2022年07月26日
⁄ Redis
⁄ 被围观 4,678次+
准备篇
一、防火墙配置
CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
systemctl mask firewalld
systemctl stop firewalld
yum remove firewalld
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防火墙配置文件
# sample configuration for iptables service
# you can edit this manually or use system-c...
redis阅读全文
0℃
2022年07月25日
⁄ Redis
⁄ 被围观 5,246次+
准备篇
一、防火墙配置
CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
systemctl mask firewalld
systemctl stop firewalld
yum remove firewalld
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防火墙配置文件
# sample configuration for iptables service
# you can edit this manually or use system-c...
redis阅读全文
0℃
2022年06月28日
⁄ PostgreSQL
⁄ 被围观 10,296次+
说明:
1、PostgreSQL 使用 pg_dump 和 pg_dumpall 进行数据库的逻辑备份,使用 psql 和 pg_restore 导入数据;
2、pg_dump 可以选择一个数据库或者部分表进行备份,pg_dumpall是对整个数据库集群进行备份;
3、psql恢复SQL文本格式的数据备份,pg_restore恢复自定义格式的数据备份。
数据库用户:dbuser
数据库:testdb
数据表:new_test,tb_test,testdb
数据库安装路径:/usr/local/pgsql/bin/
mkdir -p /data/backup #创建备份文件存放目录
chown postgres.postgres -R /data/backup
su - postgres
一、Post...
PostgreSQL阅读全文
0℃
2022年06月26日
⁄ PostgreSQL
⁄ 被围观 6,323次+
操作系统:CentOS-7.6
主节点:192.168.21.100
从节点:192.168.21.101
PostgreSQL版本:postgresql-11.13.tar.gz
下载地址:https://ftp.postgresql.org/pub/source/v11.13/postgresql-11.13.tar.gz
PostgreSQL数据库的主从同步是一种高可用解决方案,可以实现读写分离。
一、基础配置
在主从服务器上都进行操作
1、防火墙配置
CentOS 7.x 8.x 默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1.1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.serv...
PostgreSQL, 主从同步阅读全文
0℃
2022年06月08日
⁄ OpenResty
⁄ 被围观 6,946次+
OpenResty® 是一款基于 NGINX 和 LuaJIT 的 Web 平台。
官方网站:https://openresty.org/cn/
准备篇
一、防火墙配置
CentOS 8.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
systemctl mask firewalld
systemctl stop firewalld
yum remove firewalld
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防火墙配置文件
...
nginx, OpenResty, Web阅读全文
0℃
2022年06月04日
⁄ PostgreSQL
⁄ 被围观 5,490次+
PostgreSQL是一个功能非常强大的、源代码开放的关系型数据库,PostgreSQL被业界誉为“最先进的开源数据库”,主要面向企业复杂查询SQL的OLTP业务场景, 支持NoSQL数据类型(hstore/JSON/XML)
一、防火墙配置
CentOS 7.x 8.x 默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
systemctl mask firewalld
systemctl stop firewalld
yum remove firewalld
2、安装iptables防...
PostgreSQL, 数据库阅读全文
0℃
2021年11月09日
⁄ MySQL
⁄ 被围观 6,593次+
准备篇
一、防火墙配置
#防火墙请根据个人需求进行选择和设置,下面以iptables防火墙为例
CentOS 8.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
systemctl mask firewalld
systemctl stop firewalld
yum remove firewalld
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防火墙配置文件
# sample configuration for...
CentOS, mysql阅读全文
0℃
2021年10月28日
⁄ NFS
⁄ 被围观 8,055次+
一、防火墙配置
CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
systemctl mask firewalld
systemctl stop firewalld
yum remove firewalld
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防火墙配置文件
# sample configuration for iptables service
# you can edit this manually or use system-config-f...
CentOS, nfs阅读全文
0℃
2021年10月07日
⁄ IIS
⁄ 被围观 13,376次+
准备篇
一、环境说明:
操作系统:Windows Server 2022
PHP版本:php 8.0.11
MySQL版本:MySQL 8.0.18.0
二、相关软件下载:
1、PHP下载地址:
https://windows.php.net/downloads/releases/php-8.0.11-nts-Win32-vs16-x64.zip
2、MySQL下载地址:
https://cdn.mysql.com//Downloads/MySQLInstaller/mysql-installer-community-8.0.26.0.msi
3、Visual C++ Redistributable for Visual Studio 2015-2022(安装PHP、MySQL需要此插件)
https://aka.ms/vs/16/release/vc_redist.x86.exe
https://aka.ms/vs/16/releas...
iis, Windows阅读全文
0℃
2021年06月30日
⁄ FTP
⁄ 被围观 7,369次+
说明:
Pure-FTPd是一款开源的FTP服务器软件,配置简单,安全高效,下面我们在CentOS 8.x/Rocky Linux 8.x系统下部署Pure-FTPd
一、配置防火墙,开启Pure-FTPd需要的端口
1.1安装iptables防火墙
Ubuntu Server默认没有开启任何防火墙的,但是默认安装了ufw防火墙,我们这里推荐使用iptables防火墙。
ufw status #查看系统自带的ufw防火墙状态
Status: inactive #表示关闭
ufw disable #关闭ufw防火墙,参数enable是开启,我们这里关闭
apt-get remove ufw #卸载ufw
apt-get purge ufw #清除ufw依赖包
whereis ipt...
FTP, Pure-FTPd阅读全文
0℃
2021年06月28日
⁄ FTP
⁄ 被围观 8,168次+
说明:
Pure-FTPd是一款开源的FTP服务器软件,配置简单,安全高效,下面我们在CentOS 8.x/Rocky Linux 8.x系统下部署Pure-FTPd
一、配置防火墙,开启FTP服务器需要的端口
CentOS 8.x/Rocky Linux 8.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防火墙配置文件
# Fire...
CentOS, FTP, Rocky阅读全文
0℃
2021年06月13日
⁄ LNMP
⁄ 被围观 16,468次+
基础教程:
Debian 10.9.x安装配置图解教程
https://www.osyunwei.com/archives/11103.html
准备篇:
一、配置防火墙,开启80端口、3306端口
Debian默认没有安装任何防火墙的,我们这里推荐使用iptables防火墙。
1.1安装iptables防火墙
whereis iptables #查看系统是否安装防火墙
apt-get install iptables #运行此命令安装防火墙
mkdir /etc/sysconfig #创建防火墙配置文件存放目录
touch /etc/sysconfig/iptables #创建防火墙配置文件
nano /etc/sysconfig/iptables #编辑添加防火墙规则
# sample configuratio...
Debian, lnmp, mysql, nginx, php阅读全文
0℃
2021年06月02日
⁄ LNMP
⁄ 被围观 9,197次+
基础教程:
Ubuntu Server 20.04.1 LTS安装配置图解教程
https://www.osyunwei.com/archives/10727.html
准备篇:
一、配置防火墙,开启80端口、3306端口
1.1安装iptables防火墙
Ubuntu Server默认没有开启任何防火墙的,但是默认安装了ufw防火墙,我们这里推荐使用iptables防火墙。
ufw status #查看系统自带的ufw防火墙状态
Status: inactive #表示关闭
ufw disable #关闭ufw防火墙,参数enable是开启,我们这里关闭
apt-get remove ufw #卸载ufw
apt-get purge ufw #清除ufw依赖包
whereis iptables #查看系统...
lnmp, mysql, nginx, php阅读全文