随笔分类 -  shell脚本

摘要:#安装依赖软件包以及命令yum -y install gcc* make ncurses-devel libxslt xsltproc unzip nc xmlto socat#####下载erlangwget https://github.com/rabbitmq/erlang-rpm/relea 阅读全文
posted @ 2021-02-23 15:24 woaibaobei 阅读(127) 评论(0) 推荐(0)
摘要:#!/bin/bash#this script is only for CentOS 7.x#check the OS#######检查网络ifconfigping -c 3 -i 0.5 baidu.com #添加公网DNS地址cat >> /etc/resolv.conf << EOFnames 阅读全文
posted @ 2021-02-23 15:19 woaibaobei 阅读(122) 评论(0) 推荐(0)
摘要:#!/bin/bash #Cenetos6/7初始化脚本# get os versionRELEASEVER=(rpm−q−−qf"(rpm−q−−qf"(rpm -q --whatprovides redhat-release))# configure yum sourcecd /etc/yum. 阅读全文
posted @ 2021-02-23 14:14 woaibaobei 阅读(56) 评论(0) 推荐(0)
摘要:安装环境 CentOS-7-x86_64-DVD-1511.iso mysql-5.6.29-linux-glibc2.5-x86_64.tar.gz mysql_install.sh脚本 mysql_install.sh脚本 #!/bin/bash #输入mysql压缩文件地址 fileName= 阅读全文
posted @ 2021-02-23 12:53 woaibaobei 阅读(106) 评论(0) 推荐(0)
摘要:1:下载mysql8文件 https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.18-el7-x86_64.tar.gz 2:新建一个my.cnf文件 vi my.cnf [mysqld] #skip-grant-tables #collation 阅读全文
posted @ 2021-02-23 12:41 woaibaobei 阅读(715) 评论(0) 推荐(0)
摘要:脚本如下: 源码包 版本 nginx-1.12.2.tar.gz #!/bin/bash NGINXDIR=/usr/local/nginx NGINX=nginx-1.12.2 TAR=.tar.gz NGINXMBER=81 NGINXUN=82 NGINXPROT=`lsof -i :80 | 阅读全文
posted @ 2021-02-23 11:58 woaibaobei 阅读(93) 评论(0) 推荐(0)
摘要:Nginx反向代理配置脚本 通过脚本参数实现Nginx反向代理的Server模块配置,配置格式如下 # 默认域名反向代理配置 server { listen 80; server_name www.example.com; location / { proxy_pass http://www.exa 阅读全文
posted @ 2021-02-23 11:57 woaibaobei 阅读(601) 评论(0) 推荐(0)
摘要:#!/bin/env bash# # Author: renwole.com ## Description: MySQL automatic installation tool ## export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin: 阅读全文
posted @ 2021-02-23 11:52 woaibaobei 阅读(207) 评论(0) 推荐(0)
摘要:[root@localhost Dockerfile]# cat setup.sh#!/bin/bash#if [ $# -ne 2 ] ;then# exit#fi export PATH=$PATH:/home/db/mysql/bin:/home/db/mysql/lib # MASTER=f 阅读全文
posted @ 2021-02-23 11:49 woaibaobei 阅读(81) 评论(0) 推荐(0)
摘要:#!/bin/bash ##nagios监控软件一件使用 ##date : 2016-08-23 ##做者:liuwenzhi #定义变量 YUMNUM=`yum repolist 2>/dev/null|grep repolist: |sed 's/[^0-9]//g'` NAGIOSzip=na 阅读全文
posted @ 2021-02-23 11:35 woaibaobei 阅读(34) 评论(0) 推荐(0)
摘要:进行交互主要障碍有两点:1. ssh-keygen的时候须要点击回车。2. passwd 须要设置密码 若是谁能解决以上两点,欢迎email给我。另外:须要JDK和Hadoop压缩包第一步: 设置Root用户的SSH 无密码访问 为了以后修改Hosts文件,配置环境变量,拷贝数据方便ssh root 阅读全文
posted @ 2021-02-23 11:32 woaibaobei 阅读(127) 评论(0) 推荐(0)
摘要:emacsConfig下创建install目录,结构大概这样php . ├── auto-complete-etags-setting.el ├── auto-complete-setting.el ├── auto-complete-yasnippet-setting.el ├── autopai 阅读全文
posted @ 2021-02-23 11:30 woaibaobei 阅读(101) 评论(0) 推荐(0)
摘要:kickstart 批量自动化安装系统工具html 1.安装kickstartr软件bash 2.system-config-kickstart #运行,生成ks.cfg文件服务器 1.基本信息设置网络 2.安装方法工具 3.安装方法3d 4.分区信息(分区大小)htm 5.网络配置blog 6.防 阅读全文
posted @ 2021-02-23 11:29 woaibaobei 阅读(137) 评论(0) 推荐(0)
摘要:./configure \--prefix=/usr/local/nginx \--sbin-path=/usr/local/nginx/sbin/nginx \--conf-path=/usr/local/nginx/nginx.conf \--error-log-path=/var/log/ng 阅读全文
posted @ 2021-02-23 11:28 woaibaobei 阅读(107) 评论(0) 推荐(0)
摘要:cat mysql_auto_install.shmysql #!/bin/bash #Part1:整个流程分3步 #1.mysql官网下载二进制版本的mysql5.7.21安装包(mysql-5.7.21-linux-glibc2.12-x86_64.tar.gz)和mysql_auto_inst 阅读全文
posted @ 2021-02-23 11:26 woaibaobei 阅读(81) 评论(0) 推荐(0)
摘要:#!/bin/bash #redis一键安装脚本 clear redis=redis-3.0.3.tar.gz installdir=/usr/local/redis softdir=/opt/soft if [ ! -d $softdir ]; then mkdir /opt/soft fi ec 阅读全文
posted @ 2021-02-22 19:07 woaibaobei 阅读(201) 评论(0) 推荐(0)
摘要:#环境 linux#一键安装rabitmq,在linux环境中使用脚本运行该文件(sh auto_install_rabbitmq.sh)#!/bin/bash #功能:rabbitmq自动安装。#需要将安装文件put到/opt/tools/ 目录下#然后执行本脚本,安装至/usl/local/目录 阅读全文
posted @ 2021-02-22 17:27 woaibaobei 阅读(404) 评论(0) 推荐(0)