记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
cAdvisor+InfluxDB+Grafana 监控Docker 目录一、概念二、单节点部署三、Swarm多节点部署 容器的监控方案其实有很多,有docker自身的docker stats命令、有Scout、有Data Dog等等,本文主要和大家分享一下比较经典的容器开源监控方案组合:cAdvisor+InfluxDB+Grafan回到顶部一、概念123456789101112131415161718192021222324252627282930313233343536373839404142431). InfluxDB是什么 nfluxDB是用GO语言编写的一个开源分布式时序、事件和指标数据库,无需外部的依赖,类似的数据库有Elasticsearch、Graphite等等 InfluxDB主要的功能: 基于时间序列:支持与时间有关的相关函数(如最大、最小、求和等) 可度量性:可以实时对大量数据进行计算 基于事件:它支持任意的事件数据 In...
CentOS7安装KVM虚拟化 一、KVM介绍KVM,基于内核的虚拟机(英语:Kernel-based Virtual Machine,缩写为 KVM),是一种用于Linux内核中的虚拟化基础设施,可以将Linux内核转化为一个hypervisor。二、KVM部署及使用1.系统环境查询[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
[root@localhost ~]# uname -r
3.10.0-862.el7.x86_64
[root@localhost ~]# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: permissive
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 31
验证CPU是否支持虚拟化,输入有vmx或svm就支持,支持虚拟化则就支持KVM
[root@localhost ~]# cat /proc/cpuinfo | egrep 'vmx|svm'
有vmx或svm内容输出就支持,支持虚拟化则...
How to install NextCloud 16 server on CentOS 7.xNextCloud is a Dropbox-like solution for self-hosted file sharing and syncing. Installing NextCloud 16 on CentOS is quite simple. Whether you want to backup, have file-syncing or just have a Google Calendar alternative, this guide is for you.What is NextCloud? Is it like a “cloud”?If you stumbled here by chance and don’t know what NextCloud is, here is an article explaining its principal features and advantages/disadvantages. In this other article you can find NextCloud 16 new features. To tell you the truth, NextCloud is a SaaS cloud, if you want to know more about cloud types you can read this article.In this article we will cover the installation of the server (not the client).What’s the newest version?The newest version of this tutorial is the following:How to install NextCloud 17 server on CentOS 7.xLooking for an earlier version of this tutorial?How to install NextCloud 16 server on CentOS 7.xHow to install NextCloud 15 server ...
Centos7 firewalld·动态防火墙使用方法示例 # systemctl start firewalld # 启动,
# systemctl enable firewalld # 开机启动
# systemctl stop firewalld # 关闭
# systemctl disable firewalld # 取消开机启动具体的规则管理,可以使用firewall-cmd ,具体的使用方法可以$ firewall-cmd --help
--zone=NAME # 指定 zone
--permanent # 永久修改,--reload 后生效
--timeout=seconds # 持续效果,到期后自动移除,用于调试,不能与 --permanent 同时使用1. 查看规则查看运行状态$ firewall-cmd --state查看已被激活的 Zone 信息$ firewall-cmd --get-active-zones
public
interfaces: eth0 eth1查看指定接口的 Zone 信息$ firewall-cmd --get-zone-of-interface=eth0
public查看指定级别的接口$ firewall-cmd --zone=public --list-interfaces
eth0查看指定级别的所有信息,譬如 public$ firewall-cmd --zone=public --list-all
public (default, active)
interfaces: eth0
sourc...
阿里云/VPS/云主机使用DD命令一键安装RouterOS-ROS系统这个ros chr版本支持 Virtio network device,当然也可以是别的网卡型号,但必需routeros镜像有对应网卡驱动,不然安装后,找不到网卡。centos系统可以通过 pci 命令查看相应的网卡驱动。1、阿里云环境centos6.9 x64:内网网卡为eth0阿里云的linux下硬盘名称为/dev/vda注意阿里云的安全组建议开放任意协议和端口,任意IP允许访问2、安装完ROS:chr-6.39.2.img版本内网网卡为ether1上面描述的很重要,你要根据你的VPS实际网卡情况,来设定脚本。wget http://download2.mikrotik.com/routeros/6.39.2/chr-6.39.2.img.zip -O chr.img.zip && \gunzip -c chr.img.zip > chr.img && \mount -o loop,offset=33554944 chr.img /mnt && \ADDRESS0=`ip addr show eth0 | grep global | cut -d' ' -f 6 | head -n 1` && \GATEWAY0=`ip route list | grep default | cut -d' ' -f 3` && \echo "/ip address add address=$ADDRESS0 interface=[/interface ethernet find where name=ether1]/ip route add gateway=$GATEWAY0" > /mnt/rw/autorun.scr && \umou...
笔记本安装Win10/windows server2016后,使用中发现电脑死机后,开始菜单打不开,点开始菜单卡住的解决方法打开 事件查看器, 查看windows 应用日志,有以下几个报错:1,错误应用程序名称: SearchUI.exe,版本: 10.0.14393.2430,时间戳: 0x5b691c85错误模块名称: KERNELBASE.dll,版本: 10.0.14393.3269,时间戳: 0x5d9133fb异常代码: 0x00000004错误偏移量: 0x0000000000034c48错误进程 ID: 0x2c08错误应用程序启动时间: 0x01d594581a9dc8e8错误应用程序路径: C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe错误模块路径: C:\Windows\System32\KERNELBASE.dll报告 ID: a9a24f4c-c847-4a1f-91a1-11584661050c错误程序包全名: Microsoft.Windows.Cortana_1.7.0.14393_neutral_neutral_cw5n1h2txyewy错误程序包相对应用程序 ID: CortanaUI2,激活应用 Microsoft.Windows.ShellExperienceHost_cw5n1h2txyewy!App 失败,错误: 远程过程调用失败。 请查看 Microsoft-Windows-TWinUI/运行日志以了解其他信息。3,错误存储段 2000106270865921514,类型 5事件名称: MoAppCrash响应: 不可用Cab Id: 0问题签名:P1: Microsoft.Windows.ShellExperience...
centos7/centos8安装owncloud10.3与onlyoffice在线文档编辑内部共享文档可以使用owncloud,但是要编辑文档的话,可以使用onlyoffice加ONLYOFFICE Desktop Editors。具体安装owncloud可以看这里 https://www.micoder.cc/blog/2169.html . [root@k8s-master]# cd /var/www/html/owncloud/ [root@k8s-master]# cd apps/ [root@k8s-master]# yum install git [root@k8s-master]# git clone https://github.com/ONLYOFFICE/onlyoffice-owncloud.git onlyoffice [root@k8s-master]# chown -R apache:apache onlyoffice.创建几个目录 用于onlyoffice的数据卷 mkdir /onlyoffice cd onlyoffice mkdir log mkdir data mkdir lib mkdir db 4.运行镜像 (我们绑定的是 http,https端口)docker run -i -t -d -p 8080:80 -p 8443:443 --restart=always \ -v /onlyoffice/log:/var/log/onlyoffice \ -v /onlyoffice/data:/var/www/onlyoffice/Data \ -v /onlyoffice/lib:/var/lib/onlyoffice \ -v /onlyoffice/db:/var/lib/postgresql onlyof...
ownCloud 基础优化 文章目录前言准备工作配置Redis配置 CRON配置HTTPS配置HSTS配置MemCache配置SMBClient前言安装完成之后发现点击管理后有几个小问题。事务文件锁定应配置为使用基于内存的锁定,而不是默认的基于慢速数据库的锁定。有关详细信息,请参阅 文档。我们建议启用系统 cron,任何其他 cron 方法可能对性能和可靠性有影响。您正在通过 HTTP 访问该站点,我们强烈建议您按照安全提示配置服务器强制使用 HTTPS。HTTP 严格传输安全(Strict-Transport-Security)报头未配置到至少“15552000”秒。处于增强安全性考虑,我们推荐按照安全提示启用 HSTS内存缓存未配置。如果可用,请配置 memcache 来增强性能。更多信息请查看我们的文档。更多安装信息请移步ownCloud 部署准备工作CA颁发的证书,我这里使用的是腾讯云的证书,也是用的亚洲诚信的证书。配置Redis1
2
3
4
#yum install php70w-pecl-redis -y //安装支持组件
#yum install redis-server -y //安装Redis
#systemctl enable redis
#systemctl start redis
1
#vim /var/www/html/owncloud/config/config.php //编辑ownCldou配置文件
加入 Redis Configure 字段中的内容1
2
3
4
5
6
7
8
...
Proxmox-VE搭配Ceph存储组建高可用虚拟化平台随着项项目的增多,对测试环境的需求越来越大,今天研发要几台测试环境,明天测试也要几台测试环境,连产品都要测试环境了,咱们运维也得有自己的测试环境,之前搭建的exsi已经满足不了需求了。 刚好内网有几台闲置的机器,于是就着手准备再搭建一套虚拟化平台,EXSI虽说好用,但毕竟是要钱的(之前用的破解版的),本着尊重版权的原则,咱们还是用开源的吧,网上找了一圈,发现目前比较活跃的KVM虚拟化平台有OpenStack、Proxmox VE、oVirt,内部测试用用,OpenStack有点大材小用了,Proxmox VE基本debian定制的,不太喜欢这种模式,而且对debian不是太熟悉,个人还是比较倾向于oVirt,因为oVirt的目标就是瞄准vCenter,而且oVirt和RHEV的关系,有点像Fedora和RHEL,直接CentOS7+Ovirt+GlusterFS比较好的解决方案,怎奈,淘汰下的机器实在是太老了,Ovirt表示硬件不支持,没办法,只能试试Proxmox VE了。 手头资源有限,所以这里先用三台机器组集群环境,用Proxmox VE再配合Ceph存储组成一个高可用的虚拟化平台,Proxmox VE的安装过程这里就不写了,实在是太简单了,将...
Centos8安装docker19.03.4,kubernetes v1.16.2,kuboard面板下载好centos8-boot.iso.安装到虚拟机中,安装源可以采用163源或是阿里源,这就不说了。1. 环境预设(在所有主机上操作)关闭firewalld: systemctl stop firewalld && systemctl disable firewalld 关闭SElinux: setenforce 0 && sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config 关闭Swap:swapoff -aecho "vm.swappiness = 0">> /etc/sysctl.confsed -i 's/.*swap.*/#&/' /etc/fstabsysctl -p更新 /etc/hosts 文件:在每一台主机的该文件中添加k8s所有节点的IP和对应主机名,否则初始化的时候回出现告警甚至错误echo "192.168.137.22 k8smaster" >> /etc/hosts 2, 添加阿里源[root@localhost ~]# rm -rfv /etc/yum.repos.d/*
[root@localhost ~]# curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo2 安装常用包[root@master01 ~]# yum install vim bash-completion net-tools gcc wget -y3 使用aliyun源安装docker-ce[root@master01 ~]...
最新评论