记一次
记一次系列,记录学习轨迹
Mask_o
不积跬步,无以至千里;不积小流,无以成江海。
展开
-
记一次shell脚本练习_编译安装nginx 1.16.1
操作环境:[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core)#!/usr/bin/bash# AUTHOR:liujun# MAKE INSTALL NGINX# AT 2020-03-30#test network and install nginxcheck_netw...原创 2020-03-30 21:32:49 · 269 阅读 · 0 评论 -
记一次shell脚本练习_yum安装nginx 1.16.1
操作环境:CentOS 7[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core)脚本如下:#!/bin/bash#by jun#at 2020-03-23#pointecho "CentOS 7 下安装nginx,请确认系统版本,按^C退出脚本。"sleep 5#tur...原创 2020-03-23 21:51:41 · 291 阅读 · 0 评论 -
记一次使用yum安装xtrabackup和/etc/my.cnf冲突报错
操作环境:CentOS 7,MySQL 5.7[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core)Server version: 5.7.25-log MySQL Community Server (GPL)1.使用# yum -y install percona-xtrabac...原创 2020-03-17 20:18:04 · 224 阅读 · 0 评论 -
记一次Shell脚本练习_CentOS 7 自动安装Mysql5.7
操作环境:CentOS 7[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core)镜像使用的是国内MySQL镜像站(中国科技大学开源软件镜像)#!/bin/bash#wget Mysql packagewget http://mirrors.ustc.edu.cn/mysql-ft...原创 2020-03-11 18:24:43 · 605 阅读 · 0 评论 -
记一次Shell脚本练习_CentOS 7自动部署LAMP网站架构
操作环境:CentOS 7[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core)关闭防火墙和selinux#systemctl stop firewalld#systemctl disable firewalld#sed -ri 's/^SELINUX=/cSELINUX=dis...原创 2020-03-10 19:13:56 · 144 阅读 · 0 评论 -
记一次Shell脚本练习_批量主机root密码修改
操作环境:CentOS 7[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core)[root@localhost ~]# 条件:1、可以ssh免密登陆2、把需要修改root密码的主机ip地址,写进当前目录下的ip.txt#!/usr/bin/bash#create by liu...原创 2020-03-08 16:25:52 · 247 阅读 · 0 评论 -
记一次CentOS 7服务器ssh免密登陆
操作环境:CentOS 7[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core)实验测试机器server:192.168.128.139 //被访问者client1:192.168.128.140 //访问者一、客户端生成公钥和私钥[root@client1 ~]...原创 2020-03-06 18:02:12 · 103 阅读 · 0 评论 -
记一次Shell脚本练习_配置本地yum源
操作环境:CentOS 7[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core)[root@localhost ~]# vim local_yum.sh #!/bin/bash#create by liujun at 2020-03-05#mount cdmkdir /mnt...原创 2020-03-05 20:33:22 · 278 阅读 · 0 评论