摘要:
#!/bin/bash #检测whois命令是否存在,不存在则安装jwhois包is_install_whois(){ which whois &> /dev/null if [ $? -ne 0 ];then yum install -y jwhois fi}is_install_whois#定义 阅读全文
posted @ 2021-03-17 16:09
woaibaobei
阅读(321)
评论(0)
推荐(0)
摘要:
#################shell学习##########################3 1.变量使用${}养成习惯,便于脚本更加清晰定义变量 dir=/opt/desk echo "${dir}" 2 字符串的截取 string一般用这个单词表示字符串 name=chaojichan 阅读全文
posted @ 2021-03-15 17:10
woaibaobei
阅读(62)
评论(0)
推荐(0)
摘要:
#!/bin/bash #判断系统if [ ! -e '/etc/redhat-release' ]; thenecho "仅支持centos7"exitfiif [ -n "$(grep ' 6\.' /etc/redhat-release)" ] ;thenecho "仅支持centos7"ex 阅读全文
posted @ 2021-03-14 17:05
woaibaobei
阅读(1089)
评论(0)
推荐(0)
摘要:
#!/bin/bash WG_PORT='51820'IPAddr=`wget --no-check-certificate -qO- http://moeclub.org/address`POOL='https://deb.debian.org/debian/pool/main/w/wiregua 阅读全文
posted @ 2021-03-14 16:47
woaibaobei
阅读(1142)
评论(0)
推荐(0)
摘要:
#!/bin/bash ################################################################# # One-click CDN Installation Script v0.0.5 # # Written by shc (https://q 阅读全文
posted @ 2021-03-14 13:59
woaibaobei
阅读(525)
评论(0)
推荐(0)
摘要:
1.服务端安装(推荐linux) 以下三种方式,任选其一 Method 1: a signed module is available as built-in to CentOS's kernel-plus: $ sudo yum install yum-utils epel-release $ s 阅读全文
posted @ 2021-03-12 17:25
woaibaobei
阅读(1381)
评论(0)
推荐(0)
摘要:
debian系统搭建VPN服务器 debian系统搭建VPN服务器 1、安装PPTPD www.2cto.com # apt-get install pptpd 2、 编辑pptpd.conf文件 # vim /etc/pptpd.conf 使得非注释内容如下: option /etc/ppp/pp 阅读全文
posted @ 2021-03-11 22:54
woaibaobei
阅读(1749)
评论(0)
推荐(0)
摘要:
安装squid yum install -y squid 安装httpd(用于后面生成密码文件) yum install -y httpd 或者 yum install httpd-tools -y 配置文件 /etc/squid/squid.conf vim /etc/squid/squid.co 阅读全文
posted @ 2021-03-11 22:50
woaibaobei
阅读(680)
评论(0)
推荐(0)
摘要:
CentOS 7安装Hadoop 3.x伪分布式 1. 配置Linux环境 Hadoop生产环境绝大部分都是安装在Linux操作系统上的,CentOS在互联网公司中使用的比较多,我们这里选择CentOS 7.x这个版本,也可以使用CentOS 6.x的版本,如果没有安装CentOS的小伙伴,可以参考 阅读全文
posted @ 2021-03-11 16:42
woaibaobei
阅读(343)
评论(0)
推荐(0)
摘要:
Jenkins官网 https://www.jenkins.io/zh/doc/tutorials/ 阅读全文
posted @ 2021-03-11 13:02
woaibaobei
阅读(52)
评论(0)
推荐(0)