记录关于系统运维,虚拟化云计算,数据库,网络安全等各方面问题,
Install and Use Guacamole Remote Desktop on Ubuntu 20.04具体请下载PDF查看英文原版
 
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

Linux 在文本中插入数据

发表者:admin分类:Shell脚本2021-01-18 09:06:03 阅读[52]
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...
    总共283页,当前第1页 | 页数:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11