随笔分类 - 实战笔记
摘要:单域名实现HTTPS: #创建自签名证书[root@centos8-1 ~]$cd /apps/nginx/[root@centos8-1 nginx]$mkdir certs[root@centos8-1 nginx]$cd certs/[root@centos8-1 certs]$openssl
阅读全文
posted @ 2020-09-28 12:53
练习生天泽
摘要:服务器安装openvpn相关软件 过程:yum -y install openvpn easy-rsa开启路由转发vim /etc/sysctl.conf添加以下内容net.ipv4.ip_forward = 1sysctl -p准备服务器证书cp -r /usr/share/easy-rsa/ /
阅读全文
posted @ 2020-09-27 14:05
练习生天泽
摘要:官方源码包下载地址:https://nginx.org/en/download.html[root@centos8-1 ~]$yum -y install gcc pcre-devel openssl-devel zlib-devel make ##下载编译时需要用到的包[root@centos8-
阅读全文
posted @ 2020-09-25 12:11
练习生天泽
摘要:修改server字段如果想自定义响应报文的nginx版本信息,需要修改源码文件,重新编译如果nginx配置文件中的字段设定为server_tokens on,请修改 src/core/nginx.h 修改13-14行,如下示例[root@centos8-1 nginx-1.18.0]$pwd/usr
阅读全文
posted @ 2020-09-25 11:55
练习生天泽
摘要:基于LNMP架构部署WordPRess,后端构建NFS服务存储用户上传的图片及数据 #配置NFS服务#安装NFS服务yum -y install nfs-utils #配置共享目录cat > /etc/exports << EOF/data/uploads 10.0.0.0/24(rw,sync,n
阅读全文
posted @ 2020-09-21 18:45
练习生天泽
摘要:FTP+SSL 实现Ftps 操作系统:Centos7 直接实现一个包括私钥和证书的文件首先安装好vsftpd包 yum -y install vsftpdldd `which vsftpd` | grep libssl 查看是否支持SSL[root@centos7-1 ~]$mkdir /etc/
阅读全文
posted @ 2020-09-13 15:46
练习生天泽
摘要:#!/bin/bash ##********************************************************************#Author: zhangzexu#QQ: 1185673631#Date: 2020-09-08#FileName: install
阅读全文
posted @ 2020-09-11 20:29
练习生天泽
摘要:三台Centos8主机实现级别复制 10.0.0.8:Master 10.0.0.18:Slave1 10.0.0.28:Slave2 全部安装Mariadb:yum -y install mariadb-server 在Master实现[root@master ~]# vim /etc/my.cn
阅读全文
posted @ 2020-09-03 11:25
练习生天泽
摘要:Manger节点 配置邮件服务[root@centos7-1 ~]$vim /etc/mail.rcset from=1185673631@qq.comset smtp=smtp.qq.comset smtp-auth-user=1185673631@qq.comset smtp-auth-pass
阅读全文
posted @ 2020-09-03 10:36
练习生天泽
摘要:官方网站 vmware官方开源服务:https://vmware.github.io/ harbor 官方github 地址:https://github.com/vmware/harbor harbor 官方网址:https://goharbor.io/ harbor官方文档:https://go
阅读全文
posted @ 2020-08-17 16:51
练习生天泽
摘要:当你发现 Linux 服务器上的系统性能问题,在最开始的 1 分钟时间里,你会查看哪些系统指标呢? Netflix 在 AWS 上有着大规模的 EC2 集群,以及各种各样的性能分析和监控工具。比如我们使用 Atlas 来监控整个平台,用 Vector 实时分析 EC2 实例的性能。这些工具已经能够帮
阅读全文
posted @ 2020-08-17 11:09
练习生天泽
摘要:[root@centos8 ~]#wget https://download.docker.com/linux/static/stable/x86_64/docker-19.03.5.tgz--2020-01-24 18:02:55-- https://download.docker.com/lin
阅读全文
posted @ 2020-08-17 10:35
练习生天泽
摘要:[root@centos8 data]#cat certificate.sh #********************************************************************#Author: zhangtianze#QQ: 1185673631#Date:
阅读全文
posted @ 2020-08-17 10:26
练习生天泽
摘要:1、配置 bind 服务,实现 www.tianze.org 域名解析2、配置 bind 服务,实现域名反向解析3、配置 bind 服务,实现主从 DNS 服务配置4、配置 bind 服务,实现子域服务器 主DNS服务器[root@dnsserver ~]#yum -y install bind b
阅读全文
posted @ 2020-08-17 10:21
练习生天泽
摘要:vim Dockerfile内容如下:FROM centos:centos7.8.2003 ##选择centos7.8版本作为基础镜像LABEL maintainer="zhangtiaze <1185673631@qq.com>" version="v1.0" ##作者信息 RUN rm -f /
阅读全文
posted @ 2020-08-17 09:46
练习生天泽
摘要:[root@centos7-1 ~]$yum -y install bison bison-devel zlib-devel libcurl-devel libarchive-devel boost-devel gcc gcc-c++ cmake ncurses-devel gnutls-devel
阅读全文
posted @ 2020-08-16 19:28
练习生天泽
摘要:执行命令:mysql -u root -p 错误:mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file: 分析:缺少 libncurses.so.5 解决方案: 正常6
阅读全文
posted @ 2020-08-16 18:19
练习生天泽
摘要:[root@centos8-3 ~]$lsanaconda-ks.cfg initSet_.sh mysql-5.7.31-linux-glibc2.12-x86_64.tar.gz mysql_install.sh[root@centos8-3 ~]$vim mysql_install.sh #!
阅读全文
posted @ 2020-08-16 17:42
练习生天泽
摘要:当初始化mysql时出现错误: mysql安装报FATAL ERROR: please install the following Perl modules before executing 原因:缺少perl模块中的Data::Dumper 安装autoconf库(此包安装时会安装Data:Dum
阅读全文
posted @ 2020-08-16 17:10
练习生天泽
摘要:[root@centos8-1 ]$mkdir -pv /data/ansible/roles/mysql/files/ ##创建目录 [root@centos8-1 roles]$vim /data/ansible/roles/mysql/files/my.cnf ##准备好my.cnf配置文件
阅读全文
posted @ 2020-08-16 15:33
练习生天泽

浙公网安备 33010602011771号