记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
 
0
Centos7安装guacamole-HTML5-VNC Guacamole 是无客户端的远程桌面网关,Guacamole 支持标准协议,比如 VNC 和 RDP。安装java export JAVA_HOME=/usr/jvm/javaexport JRE_HOME=$JAVA_HOME/jreexport CLASSPATH=.:JAVA_HOME/lib:JAVAH​OME/lib:{JRE_HOME}/libexport PATH=JAVA_HOME/bin:JAVAH​OME/bin:PATHexport GUACAMOLE_HOME=/etc/guacamolesource /etc/profile 配置GUACAMOLE_HOMEmkdir /etc/guacamolemkdir /etc/guacamole/extensions/mkdir /etc/guacamole/libmkdir /root/.guacamoletouch /etc/guacamole/guacamole.propertiesln -s /etc/guacamole/guacamole.properties /root/.guacamole/ 安装依赖包yum install -y cairo-devel libjpeg-turbo-devel libjpeg-devel libpng-devel uuid-devel ffmpeg-devel freerdp-devel pango-devel libssh2-devel libtelnet-devel libvncserver-devel pulseaudio-libs-devel openssl-devel libvorbis-devel libwebp-deve  libwebsockets-devel libwebsockets mariadb mariadb-server wget git libtool 安装apache-mavenwget http://repos.fedorapeople.org/repos/dchen/apache...
 
0
keepalived实现redis主备切换keepalived redis nosql database试验目标:1:主redis发生故障时,从redis自动切换为主redis。2:主redis恢复正常后,自动降级为从redis。  试验环境:     主redis:192.168.189.138      从redis:192.168.189.131         VIP:192.168.189.123主从redis均安装了keepalived与redis,redis已配置好主从。Redis端口44444。  1:制作redis监控与主备切换脚本: Redis监控脚本:(监控redis是否正常)# cat /usr/local/scripts/redis_monitor.sh #!/bin/bash     ALIVE=$(/home/usr/local/redis/bin/redis-cli -h 192.168.189.138 -p 44444 PING) if [ "$ALIVE" =="PONG" ]; then echo $ALIVE exit 0 else echo $ALIVE killall -9 keepalived service network restart exit 1 fi redis_master脚本:(用于从redis切换成主redis)# cat /usr...
 
0
1、新建一个文本文档touch test.file2、在指定行前插入 一行内容:sed -i 'ni\x' test.file        表示向test.file文件里的第n行的前面添加x内容sed -i 'na\x' test.file       表示向test.file文件里的第n行的后面添加x内容sed -i '/m/i\x' test.file     表示向test.file文件里匹配m字符串的行的前面添加x内容sed -i '/m/a\x' test.file    表示向test.file文件里匹配m字符串的行的后面添加x内容标红的 -i 这个参数意味着在源文件上进行修改,而不是产生新文件3、在指定行后插入多行内容没有发现很好的方法首先,将需要插入的内容写道一个txt里sed -i '/ str/r a.txt' test.file 表示向test.file文件里匹配到str的行后加a.txt里面的内容
安全合规项中【查看是否使用PAM禁止任何人su为root】涉及到添加wheel组会影响oracle数据库登陆问题 还是前一阵的安全合规操作,环境是一台Oracle DB服务器,同事做过了之后,晚上着急下班,因为是测试服务器,也没管它就走了,因为做了合规要生效,需要Reboot服务器,在合规之前,先把DB服务给停掉了,结果其他同事要到测试服务器上测试业务,启动的时候没办法通过sysdba启动,这个Case就是这样产生的。 问题现象做过合规之后,用PLSQL无法登陆到测试服务器Oracle DB上。并且在CRT上远程登陆到数据库服务器后,用sqlplus / as sysdba也无法登陆ORACLE报出了一个错给我们:ORA-01031: insufficient privileges 初步分析从字面意思上来看,是权限不足。我们的思路这个时候应该放在这台服务器上做了什么操作上,很明显刚刚做完了合规,数据库报出来这个错,看来就是合规项中的某一项或几项,对ORACLE DB的权限做了修改。 具体分析30多个安全合规项,一个一个去分析,倒是也可以,量也不是很大,但是这个Case,我们要从这一个小的现象中,挖掘出思路来,那就是如何通过已经知道...
Install Asterisk 18 LTS on CentOS 8 | RHEL 8Asterisk is a free to use, opensource and powerful communication system powering many IP PBX systems, VoIP gateways, conference servers used in SMBs, enterprises, call centers, carriers and government institutions around the globe. Installing Asterisk Server is the first step towards implementation of an affordable, reliable and highly available PBX and VoIP systems.In today’s guide we will be covering the installation and configuration of Asterisk 18 LTS on CentOS 8 | RHEL 8. Asterisk 18.0 was recently released for production use and is available for download. This is an LTS release, meaning it will be supported for a few several years. If you’re using earlier releases of Asterisk such as 16 LTS or 17.x it is the right time to plan for upgrade.Features of Asterisk PBX systemConference callingCall RecordingCall MonitoringDistributed Universal Number DiscoveryCaller ID on Call WaitingDirect Inward System AccessCall ParkingSMS Mess...
How To Install Grafana on CentOS 8 / RHEL 8How can I install Grafana 7 on RHEL 8 / CentOS 8?. This guide will walk you through the installation of Grafana on RHEL / CentOS 8. Grafana is a free and open source feature-rich graph editor & metrics dashboard for various data sources such as Elasticsearch, Graphite, OpenTSDB, Prometheus, and InfluxDB.We have other installation guides for Grafana, choose one for your Linux distribution.How to Install Grafana on Ubuntu and DebianInstall Grafana and InfluxDB on CentOS 7Install Grafana on RHEL 8 / CentOS 8Grafana can be installed on RHEL / CentOS 8 from YUM repository or by manually downloading and installing .rpm package. The former is preferred method since it is easy to update and uninstall Grafana with the yum package manager.Step 1: Add Grafana yum repositoryRun the commands below as user with sudo privileges or as root user to add repository content.cat <<EOF | sudo tee /etc/yum.repos.d/grafana.repo [grafana] name=grafana ba...
How To Install Grafana 7 on CentOS 7In this blog post, we’ll cover the steps to Install Grafana 7 on CentOS 7. Grafana v7 was recently released in with plenty of new features and is available for installation. Grafana is an open source tool which allows you to query, visualize and do alerting on your metrics no matter the backend data store.For Ubuntu server, check:How to Install Grafana 7 on UbuntuWhat is new in Grafana 7.0?Azure Monitor: Deep linking from Log Analytic queries to the Azure PortalCloudWatch/Logs: Add data links to CloudWatch logs for deep linking to AWS.CloudWatch: Unify look of query mode select between dashboard and explore.Docker: Adds tzdata package to Ubuntu imageEditor: New line on Enter, run query on Shift+Enter.Loki: Allow multiple derived fields with the same nameOrgs: Added future deprecation noticeRead more on Grafana 7 release page.Step 1: Install Grafana 7 on CentOS 7Grafana 6 is now available for installation. Add Grafana RPM re...
How To Install Prometheus on RHEL 8 / CentOS 8Welcome to our guide on How to Install Prometheus on CentOS 8 / RHEL 8. Prometheus is an open-source time series monitoring and alerting toolkit originally developed at SoundCloud. It has very active development and community and has seen wide adoption by many organizations and companies.Prometheus is the defacto monitoring tool for Cloud native applications and microservices. You can’t talk Docker and Kubernetes infrastructure monitoring without mentioning Prometheus. To achieve complete monitoring, alerting and visualization, Grafana usually comes into the mix.Below are the steps to install Prometheus monitoring tool on RHEL 8.Step 1: Add system user and group for PrometheusLet’s kick off the installation of Prometheus on RHEL 8 by creating a dedicated user that will run and manage Prometheus service. This is a system user that doesn’t have access to console/shell login.sudo groupadd --system prometheussudo useradd -s /sbin/...
1,资料。官网:https://www.kafka-eagle.org/index.htmlGithub:https://github.com/smartloli/kafka-eagle/官方文档:https://docs.kafka-eagle.org/下载地址:http://download.kafka-eagle.org/2,部署。当我们把kafka集群部署完成之后,就可以部署Kafka Eagle监控系统了。github上的releases中事实上还是源码,而源码可能不容易编译成功,因此可以直接通过官网的下载地址下载作者已经提供的编译好的包进行部署。1,下载包。$ wget https://codeload.github.com/smartloli/kafka-eagle-bin/tar.gz/v1.3.32,解压包。[root@localhost opt]$ tar xf v1.3.3l[root@localhost opt]$ lskafka-eagle-bin-1.3.3 v1.3.3[root@localhost opt]$ cd kafka-eagle-bin-1.3.3/[root@localhost kafka-eagle-bin-1.3.3]$ lskafka-eagle-web-1.3.3-bin.tar.gz[root@localhost kafka-eagle-bin-1.3.3]$ tar xf kafka-eagle-web-1.3.3-bin.tar.gzl[root@localhost kafka-eagle-bin-1.3.3]$ lskafka-eagle-web-1.3.3 kafka-eagle-web-1.3.3-bin.tar.gz[root@localhost kafka-eagle-bin-1.3.3]$ mv kafka-eagle-web-1.3.3 /opt/kafka-eagle3,配置环境变量。cat >> /etc/profile <&l...
Centos7进行kafka-2.11集群部署1,准备工作1,主机准备。准备三台主机,都是CentOS-7,IP如下:192.168.106.7192.168.106.8192.168.106.9为了方便后续操作,先配置一下主机免密码登陆。[root@localhost ~]$ssh-keygen[root@localhost ~]$ssh-copy-id root@192.168.106.7[root@localhost ~]$ssh-copy-id root@192.168.106.8[root@localhost ~]$ssh-copy-id root@192.168.106.9更改三节点的主机名。[root@localhost ~]$hostnamectl set-hostname node1[root@localhost ~]$hostnamectl set-hostname node2[root@localhost ~]$hostnamectl set-hostname node3配置hosts。[root@localhost ~]$ cat >> /etc/hosts << EOF127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.106.7 node1192.168.106.8 node2192.168.106.9 node3EOF2,依赖准备。只需准备jdk环境即可,通过如下命令安装:curl 192.168.1.1/a | sh。此种安装方式可以参考这里。3,安装包。下载kafka。wget https://mirrors.cnnic.cn/apache/kafka/0.11.0.2/kafka_2.11-0.11.0.2.tgz2...
    总共265页,当前第40页 | 页数:
  1. 30
  2. 31
  3. 32
  4. 33
  5. 34
  6. 35
  7. 36
  8. 37
  9. 38
  10. 39
  11. 40
  12. 41
  13. 42
  14. 43
  15. 44
  16. 45
  17. 46
  18. 47
  19. 48
  20. 49
  21. 50