CentOS

cpack restrict OS version package can be installed on

强颜欢笑 提交于 2021-02-11 12:42:34
问题 I create packages for several OS versions including RHEL7 & RHEL8 (or mostly equally CentOS7 & 8). It is possible to install a package built for .el7. on .el8. but it will typically not work (for example due to undefined symbols etc). Ideally I would like to make the installation fail with an error message like "this package is only intend for RHEL7/CentOS7". How can I do this? More specifically how can I do this with CPack/CMake? Bonus points if you can also given an explanation suitable for

Java生鲜电商平台-监控模块的设计与架构

假装没事ソ 提交于 2021-02-11 10:44:25
点击上方蓝色“ 方志朋 ”,选择“设为星标” 回复“ 666 ”获取独家整理的学习资料! ‍ 来源: https://www.cnblogs.com/jurendage/p/9070442.html Java开源生鲜电商平台-监控模块的设计与架构,我们谈到监控,一般设计到两个方面的内容: 服务器本身的监控。(比如:linux服务器的CPU,内存,磁盘IO等监控) 业务系统的监控. (比如:业务系统性能的监控,SQL语句的监控,请求超时的监控,用户输入的监控,整个请求过程时间的监控,优化等等) 1. 服务器本身的监控 说明:由于Java开源生鲜电商平台采用的是阿里云的linux CentOS服务器,由于阿里云本身是有监控预警的,但是我们不可能时刻去看,最好有集成自己的系统监控, 最终在各种系统对比的过程中,选择了netdata这个工具,当然有一些软件比如:zabbix,negios等等都是可以的,但是我们服务器压力不算大,最终采用了更加轻量级的解决方案。 相关的安装与使用,大家自行百度处理,我这边就不列举出来了。 以下是相关的实际运营截图: 2. 业务监控 说明:任何一个业务系统都需要采用业务监控,抛异常,有error日志,短信预警,推送等等 Java内存 JavaCPU使用情况 用户Session数量 JDBC连接数 http请求、sql请求、jsp页面与业务接口方法(EJB3

kubesphere集群搭建(多节点)

独自空忆成欢 提交于 2021-02-11 08:31:24
kubesphere官网: https://kubesphere.io/docs/advanced-v2.0/zh-CN/introduction/intro/ 一、准备环境 1、准备服务器 master1 :192.168.37.11 centos7.5 + 8cpu + 16G(内存) + 20G(/) + 200G ( data) + 200G(mnt) master2 :192.168.37.12 centos7.5 + 8cpu + 16G(内存) + 20G(/) + 200G ( data) master3 :192.168.37.13 centos7.5 + 8cpu + 16G(内存) + 20G(/) + 200G ( data) node1: 192.168.37.14 centos7.5 + 8cpu + 16G(内存) + 20G(/) + 1T ( data) node2: 192.168.37.15 centos7.5 + 8cpu + 16G(内存) + 20G(/) + 1T ( data) node3: 192.168.37.16 centos7.5 + 8cpu + 16G(内存) + 20G(/) + 1T ( data) node4: 192.168.37.17 centos7.5 + 8cpu + 16G(内存) + 20G(/) +

linux centos 宝塔主机控制面板安装和安全狗安装过程记录

怎甘沉沦 提交于 2021-02-11 05:38:27
linux 宝塔控制面板 安装过程 yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh 下载完成后 有个确认是否安装面板,输入y确认。 大约3分钟完成。 然后安装LAMP套装,大约16-20分钟。 此时可以同时上传数据库和网站程序包至相应的目录 安装完LAMP套装后再\ 安装安全狗 linux 安装安全狗过程记录 下载,解压 安装 绑定账号 wget http://down.safedog.cn/safedog_linux64.tar.gz tar xzvf safedog_linux64.tar.gz cd safedog_an_linux64_2.8.17991 yum -y install mlocate(centos7 需要安装) //Need system command 'locate' to install safedog for linux. yum install -y dmidecode(centos6 需要安装) //Need system command 'dmidecode' to install safedog for linux. yum install pciutils -y(centos6 需要安装)

Build debug version of Boost on CentOS 7

最后都变了- 提交于 2021-02-11 05:32:10
问题 I'm trying to build a debug version of Boost on CentOS 7 with the following command: ./b2 runtime-link=shared runtime-debugging=on variant=debug link=shared install However, I don't see the g nor d ABI flag in the names of the generated library files. Have I done something wrong? Everything works just fine when building on Windows. 回答1: I think that should work. If building like you do and inspecting one of the resulting libs with objdump objdump --syms libboost_wave.so | grep debug I get ...

Not able to start PostgreSQL

ε祈祈猫儿з 提交于 2021-02-11 05:29:36
问题 Have a CentOS7 Linux machine running (not managed by me; have limited rights to/in it). Have a request to set PostgreSQL up in it. Just installed PostgreSQL from the CentOS repository: sudo yum install postgresql-server postgresql-contrib All good with it. Then did initialization of the database: sudo yum install postgresql-server postgresql-contrib All good with it. But then the start: sudo systemctl start postgresql Fails: Job for postgresql.service failed because the control process exited

Build debug version of Boost on CentOS 7

99封情书 提交于 2021-02-11 05:29:22
问题 I'm trying to build a debug version of Boost on CentOS 7 with the following command: ./b2 runtime-link=shared runtime-debugging=on variant=debug link=shared install However, I don't see the g nor d ABI flag in the names of the generated library files. Have I done something wrong? Everything works just fine when building on Windows. 回答1: I think that should work. If building like you do and inspecting one of the resulting libs with objdump objdump --syms libboost_wave.so | grep debug I get ...

PXE+Kickstart无人值守安装操作系统

拟墨画扇 提交于 2021-02-11 01:47:00
  一,简介   1.1 什么是PXE   PXE(Pre-boot Execution Environment,预启动执行环境)是由Intel公司开发的最新技术,工作于Client/Server的网络模式,支持工作站通过网络从远端服务器下载映像,并由此支持通过网络启动操作系统,在启动过程中,终端要求服务器分配IP地址,再用TFTP(trivial file transfer protocol)或MTFTP(multicast trivial file transfer protocol)协议下载一个启动软件包到本机内存中执行,由这个启动软件包完成终端基本软件设置,从而引导预先安装在服务器中的终端操作系统。 严格来说,PXE 并不是一种安装方式,而是一种引导方式。进行 PXE 安装的必要条件是在要安装的计算机中必须包含一个 PXE 支持的网卡(NIC),即网卡中必须要有 PXE Client。PXE 协议可以使计算机通过网络启动。此协议分为 Client端和 Server 端,而PXE Client则在网卡的 ROM 中。当计算机引导时,BIOS 把 PXE Client 调入内存中执行,然后由 PXE Client 将放置在远端的文件通过网络下载到本地运行。运行 PXE 协议需要设置 DHCP 服务器和 TFTP 服务器。DHCP 服务器会给 PXE Client

docker学习(一)在centos7上安装与启动docker

邮差的信 提交于 2021-02-10 19:01:26
CentOS Docker 安装 今天,我们将看到如何在CentOS中安装Docker。此方法对于其他基于RPM的发行版(如Fedora,RHEL,Scientific Linux和openSUSE等)也是如此。要在CentOS上安装Docker,您的系统必须满足以下最低要求。 64位 架构; 内核版本应为3.10或更高版本。 您的系统应与Internet连接。 让我们开始吧。 使用 yum 安装(CentOS 7下) Docker 要求 CentOS 系统的内核版本高于 3.10 ,查看本页面的前提条件来验证你的CentOS 版本是否支持 Docker 。 通过 uname -r 命令查看你当前的内核版本 [root@localhost ~]# uname -r 从 2017 年 3 月开始 docker 在原来的基础上分为两个分支版本: Docker CE 和 Docker EE。 Docker CE 即社区免费版,Docker EE 即企业版,强调安全,但需付费使用。 本文介绍 Docker CE 的安装使用。 使用yum安装 移除旧的版本: $ sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest

centos 6.8 安装percona pmm(监控神器)

馋奶兔 提交于 2021-02-10 17:55:35
centos 6.8 安装percona pmm(监控神器) sql1101 关注 0人评论 15005人阅读 2018-12-07 13:47:59 背景: 完善的监控对系统的稳定性,运维,调优,故障定位都起着非常重要的作用,监控在整个运维体系中有着举着轻重的作用,所以有一个完善的监控平台非常重要,下面就要介绍一个percona的Pmm监控平台,非常强大,强大非常 一,安装pmm server yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum install docker-io 1,查看docker 版本: 2,启动docker service docker start 3,创建Pmm 容器 docker create \ -v /opt/prometheus/data \ -v /opt/consul-data \ -v /var/lib/mysql \ -v /var/lib/grafana \ --name pmm-data \ percona/pmm-server:1.1.1 /bin/true 4,运行这个容器 docker run -d \ -p 80:80 \ --volumes-from pmm-data \ --name pmm