摘要: 准备一台机器,系统版本为CentOS7。 部署redis 1、下载软件包 1 wget http://download.redis.io/releases/redis-3.2.8.tar.gz 2、解压 1 tar xvf redis-3.2.8.tar.gz -C /usr/local/ 2 cd 阅读全文
posted @ 2021-09-27 21:05 相磊 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 1安装 openvpn 1设置主机名称 断开xshell重新连接 1 [root@ localhost ~]# hostnamectl set-hostname openvpn49 2 安装依赖 1 2 3 4 [root@ openvpn49 ~]# yum -y install epel-re* 阅读全文
posted @ 2020-03-05 15:03 相磊 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 操作目的:用supervisor工具管理tomcat服务 配置环境,安装服务,以及多实例 脚本编辑: 前提 机器的opt目录下必须有jdk-8u131-linux-x64_.rpm 以及apache-tomcat-8.5.35.tar.gz 1 #!/bin/bash 2 systemctl sto 阅读全文
posted @ 2020-02-14 20:57 相磊 阅读(920) 评论(0) 推荐(0) 编辑
摘要: 1 #!/bin/bash 2 yum -y install rsync >/dev/null 3 cat >/etc/rsyncd.conf<<EOF 4 ##全局配置 5 uid = root 6 gid = root 7 use chroot = no 8 max connections = 阅读全文
posted @ 2020-02-14 17:53 相磊 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 环境: 需要准备两台虚拟机 需要每台有两个网卡 内网网卡和外网网卡 内网网段 172.16.1.0/24 网卡 ens37 外网网段 10.0.0.0/24 网卡 ens33 可以访问外网的 内网网络IP地址 172.16.1.72 可以访问外网的 外网网络IP地址 10.0.0.72 不可以访问外 阅读全文
posted @ 2020-02-12 20:05 相磊 阅读(141) 评论(0) 推荐(0) 编辑
摘要: KVM安装 1、环境准备 CentOs7 联网 内存最好在20G不上 windows支持虚拟化 虚拟机开启虚拟化配置 2、系统环境 1 [root@ CentOS7-200 ~]# cat /etc/redhat-release 2 CentOS Linux release 7.3.1611 (Co 阅读全文
posted @ 2020-02-11 17:59 相磊 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 1.jumpserver 官方文档:https://docs.jumpserver.org/zh/master/index.html 2. 自建服务器极速安装 说明 全新安装的 Centos7 系统 保持服务器网络畅通 2核4G环境 3. 开始安装 3.1 防火墙设置 $ echo -e "\033 阅读全文
posted @ 2020-01-12 11:27 相磊 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 功能: 可以接受路径参数,主要是通过该路径所在的文件系统,来了解对应文件系统的磁盘使用情况. 格式: Usage: df [OPTION]... [FILE]... df [选项]...[文件] 选项: -a, --all include dummy file systems // 包含所有的文件系 阅读全文
posted @ 2020-01-09 19:38 相磊 阅读(279) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash . /etc/init.d/functions check_fun(){ url_list=(www.baidu.com www.tudou.com www.youku.com www.xxx22sfq2.com www.asdqwe.com) for i in ${url_ 阅读全文
posted @ 2020-01-08 11:06 相磊 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 了解到几种加密密码的方式 myPassword用你想用的密码字符串代替 1.有OpenSSL的话,可以使用openssl命令: openssl passwd -crypt myPassword 2、如果用Apache Web服务器,那么也可以用htpasswd htpasswd -nd user 用 阅读全文
posted @ 2020-01-08 10:43 相磊 阅读(343) 评论(0) 推荐(0) 编辑