申请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搭建”

百度AI识别调用的简单例子

一、车辆识别

1、安装百度ai的python SDK
使用到python调用百度ai的接口,官网下载相对应的SDK:https://ai.baidu.com/sdk#vis
解压,python setup.py install

2、调用接口:
调用代码,其中xxxxx这3项需要使用百度ai后台提供相应内容,目前免费开放,接口每天有使用限制,直接注册创建一个应用即可。
每种识别场景都有各自对应的调用语句和返回值,我用的是“车辆识别”
https://ai.baidu.com/docs#/ImageClassify-Python-SDK/top
https://ai.baidu.com/docs#/ImageClassify-Python-SDK/496d7920
继续阅读“百度AI识别调用的简单例子”

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)”

OpenStack 版本历史和生命周期 2019.04.28

 

 

Series Status Initial Release Date Next Phase EOL Date
Train Development 2019-10-16 estimated(schedule) Maintained estimated 2019-10-16
Stein Maintained 2019-04-10 Extended Maintenanceestimated 2020-10-10
Rocky Maintained 2018-08-30 Extended Maintenanceestimated 2020-02-24
Queens Maintained 2018-02-28 Extended Maintenanceestimated 2019-08-25
Pike Maintained 2017-08-30 Extended Maintenanceestimated 2019-03-03
Ocata Extended Maintenance 2017-02-22 Unmaintainedestimated TBD
Newton End Of Life 2016-10-06 2017-10-25
Mitaka End Of Life 2016-04-07 2017-04-10
Liberty End Of Life 2015-10-15 2016-11-17
Kilo End Of Life 2015-04-30 2016-05-02
Juno End Of Life 2014-10-16 2015-12-07
Icehouse End Of Life 2014-04-17 2015-07-02
Havana End Of Life 2013-10-17 2014-09-30
Grizzly End Of Life 2013-04-04 2014-03-29
Folsom End Of Life 2012-09-27 2013-11-19
Essex End Of Life 2012-04-05 2013-05-06
Diablo End Of Life 2011-09-22 2013-05-06
Cactus End Of Life 2011-04-15
Bexar End Of Life 2011-02-03
Austin End Of Life 2010-10-21

https://releases.openstack.org/

excel一些数据统计公式

平常时不时需要核对各种数据,比如两张表记录有何差异,多了哪个少了哪个,或者是一张小表需要从一张大表中提取信息,需要及时定位和统计出来。

1、双条件统计个数countif
=COUNTIFS(D$2:D$11,A16,B$2:B$11,”男”)
跨表查询如下:
=COUNTIFS(我的表1!D$2:D$11,A23,我的表1!B$2:B$11,”男”) 继续阅读“excel一些数据统计公式”

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)”

Pages: 1 2 3 4 5 6 7 8 9 10 ... 50 51 52 Next