申请Let’s Encrypt用于https的证书

Let’s Encrypt是通过执行certbot-auto来申请证书,certbot-auto是一个程序,通过git可以复制到本地。
一共有这几种模式:apache、nginx、webroot、standalone、DNS plugins和manual。
我用的是standalone模式,以下是讲的是standalone模式的操作过程。 继续阅读“申请Let’s Encrypt用于https的证书”

NFS搭建

服务器:华为RH2288
硬件配置:12块3T SATA硬盘,2块600G SAS硬盘
raid组划分工具:MegaCli

一、配置本地硬盘和目录

安装MegaCli
rpm -ivh Lib_Utils-1.00-09.noarch.rpm
rpm -ivh MegaCli-8.07.14-1.noarch.rpm

查看raid卡信息
/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL
可支持以下raid组类型和硬盘类型:
RAID Level Supported : RAID0, RAID1, RAID5, RAID6, RAID00, RAID10, RAID50, RAID60, PRL 11, PRL 11 with spanning, SRL 3 supported, PRL11-RLQ0 DDF layout with no span, PRL11-RLQ0 DDF layout with span
Supported Drives : SAS, SATA

查看raid组配置
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL 继续阅读“NFS搭建”

CentOS 7.5 安装 Openstack Rocky (allinone)

操作系统:CentOS 7.5
服务器:酷睿E8600+8G+SSD128G

一、安装openstack rocky
https://www.rdoproject.org/install/packstack/

systemctl disable firewalld
systemctl stop firewalld
systemctl disable NetworkManager
systemctl stop NetworkManager
systemctl enable network
systemctl start network

yum install -y https://rdoproject.org/repos/rdo-release.rpm
这一步安装好后,最好将相关repo文件中的url修改为国内仓库,速度会快很多,如中科大http://mirrors.ustc.edu.cn/

yum install -y centos-release-openstack-rocky

yum-config-manager –enable openstack-rocky

yum update -y 继续阅读“CentOS 7.5 安装 Openstack Rocky (allinone)”

CentOS 7.6安装ELK 7.0.0(elasticsearch+kibana+logstash)

1、安装elk:elasticsearch+kibana+logstash

方法一:
使用elk官方的yum源,直接yum在线安装,缺点是网速很慢要等很久。

新增yum源elasticsearch
cat >>/etc/yum.repos.d/elasticsearch.repo <<EOF
[elasticsearch-7.x]
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=0
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
EOF 继续阅读“CentOS 7.6安装ELK 7.0.0(elasticsearch+kibana+logstash)”

CentOS 7.6安装Cobbler 2.8.4

操作系统: CentOS7.6
cobbler:cobbler-2.8.4-4,IP地址为192.168.1.108

先关闭selinux和防火墙: firewalld selinux 关闭

1、安装

rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

yum install -y tftp-server httpd dhcp yum-utils cobbler cobbler-web cman debmirror xinetd rsync pykickstart fence-agents createrepo

解决web访问cobbler报错
yum install -y python2-pip
pip install Django==1.8.9

2、设置开机自启动

sed -i ‘/disable/c\\tdisable\t\t\t= no’ /etc/xinetd.d/tftp
sed -i -e ‘s/\=\ yes/\=\ no/g’ /etc/xinetd.d/rsync
systemctl enable cobblerd.service
systemctl enable dhcpd.service
systemctl enable httpd.service
systemctl enable xinetd.service
systemctl enable rsyncd.service 继续阅读“CentOS 7.6安装Cobbler 2.8.4”

RHEL 6.7下安装Ceph 0.80.11的过程

系统环境:
rhel6.7,挂载iso源
ceph0.8.11

一、安装ceph
lvextend -L +50G /dev/mapper/vg_system-lv_root
resize2fs /dev/mapper/vg_system-lv_root
yum install -y automake autoconf automake libtool make snappy snappy-devel libblkid libblkid-devel libudev libudev-devel expat expat-devel fuse fuse-devel libaio-devel xfsprogs-devel boost* ncurses-devel expect redhat-lsb
rpm -ivh leveldb-1.7.0-2.el6.x86_64.rpm
rpm -ivh leveldb-devel-1.7.0-2.el6.x86_64.rpm
rpm -ivh cryptopp-5.6.2-9.el6.x86_64.rpm
rpm -ivh cryptopp-devel-5.6.2-9.el6.x86_64.rpm
rpm -ivh libedit-devel-2.11-4.20080712cvs.1.el6.x86_64.rpm
cd /root/ 继续阅读“RHEL 6.7下安装Ceph 0.80.11的过程”

VMware ESXI6批量配置snmp和snmptrap

需要对一大批esxi主机进行snmp监控,数量级在300+以上,纯手工一台台来配置snmp开启不现实,故用到vmware powercli进行批量开通。

团体名:mysnmpcomu123
snmptrap服务器地址:10.10.20.123
vcenter用户名密码:admin123@my.vmware/ zzzxxx123
vcenter地址:10.10.10.4
目的:设置snmp后,执行snmpwalk -v 2c -c mysnmpcomu123 10.10.10.119 system会有反馈。设置snmptrap后,snmptrap服务器可以收到esxi反馈的数据。 继续阅读“VMware ESXI6批量配置snmp和snmptrap”

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 Next