随笔分类 -  shell脚本编写

摘要:离线安装脚本 #!/bin/bash # #MySQL5.7 Download URL: https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql5.7.29-linux-glibc2.12-x86_64.tar.gz #http://mirrors.1 阅读全文
posted @ 2022-05-08 19:53 goodbay说拜拜 阅读(204) 评论(0) 推荐(0) 编辑
摘要:MySQL二级制包的脚本5.7和8.0版本 #!/bin/bash # #MySQL Download URL: https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.29-linux-glibc2.12-x86_64.tar.gz #htt 阅读全文
posted @ 2022-05-08 19:48 goodbay说拜拜 阅读(66) 评论(0) 推荐(0) 编辑
摘要:在线安装-MySQL-二进制包脚本 #!/bin/bash # . /etc/init.d/functions DIR=`pwd` MYSQL_VERSION=5.6.51 NAME="mysql-${MYSQL_VERSION}-linux-glibc2.12-x86_64.tar.gz" FUL 阅读全文
posted @ 2022-05-08 19:33 goodbay说拜拜 阅读(19) 评论(0) 推荐(0) 编辑
摘要:离线安装脚本MySQL 安装包放在 /usr/local/src/目录下,需要手动修改,版本名称 #!/bin/bash DIR=`pwd` NAME="mysql-5.6.47-linux-glibc2.12-x86_64.tar.gz"#NAME="安装包版本名称" FULL_NAME=${DI 阅读全文
posted @ 2022-05-08 19:28 goodbay说拜拜 阅读(27) 评论(0) 推荐(0) 编辑
摘要:expect 脚本, 命名格式,expect.* expect开头 #!/usr/bin/expect # # set USER root set ADDR 10.0.0.77 set PASSWD lyjatech spawn ssh $USER@$ADDR expect { "yes/no" { 阅读全文
posted @ 2022-04-27 21:43 goodbay说拜拜 阅读(67) 评论(0) 推荐(0) 编辑
摘要:编写脚本,求100以内所有正奇数之和 while加 if 判断 #!/bin/bash # # # sum=0 i=1 while (($i<=100));do sur=$[i%2] if [ $sur -eq 0 ];then let i++ else let sum+=i let i++ fi 阅读全文
posted @ 2022-04-24 20:31 goodbay说拜拜 阅读(40) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示