本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
NetAssist网络数据收发工具支持openeuler2203,linux系统支持tcp server,tcp client,udp 模式。一,使用二进制安装包支持openeuler2203系统1,下载发行版中的mNetAssist.zip安装包下载2,openeuler2203系统安装依赖包 yum -y install qt5 qt5-devel ,3,二进制执行文件可放到/usr/local/bin/目录下并给执行权限,即可在图形界面下运行。二,openeuler2203系统中编译安装yum -y install qt5 qt5-devel
git clone https://github.com/busyluo/NetAssistant.git
cd NetAssistant
qmake-qt5
make && make install
程序会自动安装到/usr/local/bin/mNetAssist ,执行 mNetAssist 命令即可。
centos7 系统下,通过源码手动安装升级openssh后使用systemctl命令无法管理sshd服务问题解决问题描述之前在centos7系统下手动安装升级openssh后,使用systemctl命令管理sshd服务都正常,但是今天安装完成后,发现使用systemctl start sshd 命令启动sshd服务会卡住,过一会显示启动超时,查询状态发现sshd服务启动失败。但是,通过源码包自带的sshd.init 脚本文件可以正常的管理sshd服务的启停。解决方法以下是我当前情况的解决方案,不代表所有类似情况都适用。将源码安装包中 contrib/redhat/sshd.init 文件复制到 /etc/init.d/ 目录下并添加可执行权限。cp contrib/redhat/sshd.init /etc/init.d/chmod +x /etc/init.d/sshd.init 然后,使用该脚本启动sshd服务/etc/init.d/sshd.init start 这时,/run/systemd/generator.late/ 目录下会产生一个名为 sshd.service的 systemd 服务配置文件。将这个文件复制到 systemd 的服务配置文件目录下cp /run/systemd/generator.late/sshd.service /usr/lib/systemd/system/sshd.service 这时再通过systemctl命令操作sshd服务就正常了。查看该自动生成的service配置文件设置可见,对应的启动、停止等命令都已经换成...
openeuler2203升级openssh9.4p1解决漏洞问题 1,使用rpmbuild将tar包打成rpm包,不喜欢编译升级的,使用RPM升级就方便多了。 想使用openssh的源码包编译安装的,参考这里: OpenSSH-9.4p1 (linuxfromscratch.org) 2,准备编译环境 [root@centos7-31 ~]# yum install rpm-build zlib-devel openssl-devel gcc perl-devel pam-devel libXt-devel gtk2-devel make perl -y [root@centos7-31 ~]# dnf install imake -y [root@centos7-31 ~]# mkdir -p /root/rpmbuild/ [root@centos7-31 ~]# cd /root/rpmbuild [root@centos7-31 ~]# mkdir BUILD BUILDROOT RPMS SOURCES SPECS SRPMS 3,下载软件包 [root@centos7-31 ~]# cd SOURCES/ [root@centos7-31 ~]# wget https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.4p1.tar.gz [root@centos7-31 ~]# wget https://mirrors.slackware.com/slackware/slackware-14.2/source/xap/x11-ssh-askpass/x11-ssh-askpass-1.2.4.1.tar.gz 4...
OpenSSH-9.4p1Introduction to OpenSSHThe OpenSSH package contains ssh clients and the sshd daemon. This is useful for encrypting authentication and subsequent traffic over a network. The ssh and scp commands are secure implementations of telnet and rcp respectively. NoteDevelopment versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.Package InformationDownload (HTTP): https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.4p1.tar.gzDownload MD5 sum: 4bbd56a7ba51b0cd61debe8f9e77f8bbDownload size: 1.7 MBEstimated disk space required: 45 MB (add 22 MB for tests)Estimated build time: 0.2 SBU (Using parallelism=4; running the tests takes about 20 minutes, irrespective of processor speed)OpenSSH DependenciesOptionalGDB-13.2 (for tests), Linux-PAM-1.5.3, Xorg Applications (or Xorg b...
给一个高端的静态注册页面代码以下是一个高端的静态注册页面代码示例:html<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Register</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card">
<div class="card-header">
<h4 class="text-center">Create an Account</h4>
...
以下内容是AI生成,不保证正常能用:使用keepalived实现MySQL主从模式自动切换数据库的步骤如下:1. 安装keepalived在主库和从库上安装keepalived:```bashyum install keepalived -y```2. 配置keepalived在主库和从库上分别创建/etc/keepalived/keepalived.conf文件,内容如下:主库:```bashglobal_defs { router_id mysql_master}vrrp_script chk_mysql { script "/etc/keepalived/check_mysql.sh" interval 2 weight -2}vrrp_instance VI_1 { state MASTER interface eth0 virtual_router_id 51 priority 101 advert_int 1 authentication { auth_type PASS auth_pass 1111 } virtual_ipaddress { 192.168.1.100 } track_script { chk_mysql }}```从库:```bashglobal_defs { router_id mysql_slave}vrrp_script chk_mysql {&...
6步带你用Spring Boot开发出商城高并发秒杀系统本博客将介绍如何使用 Spring Boot 实现一个简单的商城秒杀系统,并通过使用 Redis 和 MySQL 来增强其性能和可靠性。摘要:本博客将介绍如何使用 Spring Boot 实现一个简单的商城秒杀系统,并通过使用 Redis 和 MySQL 来增强其性能和可靠性。本文分享自华为云社区《Spring Boot实现商城高并发秒杀案例》,作者:林欣。随着经济的发展和人们消费观念的转变,电子商务逐渐成为人们购物的主要方式之一。高并发是电子商务网站面临的一个重要挑战。本博客将介绍如何使用 Spring Boot 实现一个简单的商城秒杀系统,并通过使用 Redis 和 MySQL 来增强其性能和可靠性。准备工作在开始之前,您需要准备以下工具和环境:JDK 1.8 或更高版本RedisMySQLMyBatis实现步骤步骤一:创建数据库首先,我们需要创建一个数据库来存储商品信息、订单信息和秒杀活动信息。在这里,我们使用 MySQL 数据库,创建一个名为 shop 的数据库,并建立三个表 goods、order 和 seckill。表 goods 存储了所有的商品信息,包括商品编号、名称、描述、价格和库存数量等等。CREATE TABLE `goods` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '商品ID',
`nam...
Centos7安装LAMP环境与zabbix6一,系统信息与配置1,系统部署信息主机系统: centos7.9 ,最小化安装。LAMP版本: apache 2.4.54 ,php7.4.2(php也可以采用php7最新版本),采用源码编译安装;MySQL8.0.29采用glibc包安装,不用编译安装。zabbix版本: zabbix_server端采用6.0LTS版本源码安装,zabbix_agent根据客户机情况安装。应用部署目录: 主机数据盘挂载到/data,apache安装到/data/httpd目录,php安装到/data/php74目录,MySQL8安装到/data/mysql8目录,zabbix安装到/data/zabbix目录apache httpd程序进程运行账号: apache,MySQL8数据库进程运行账号: mysql ,zabbix程序运行账号: zabbix2, 系统环境配置#关掉防火墙,sellinux,这里不再讲
[root@os-247 ~]# yum install -y epel-release
[root@os-247 ~]# yum install libxml2-devel libcurl-devel libevent-devel \
apr-devel apr-util-devel bzip2-devel libjpeg-devel freetype-devel \
libpng-devel gmp-devel openssl-devel libicu-devel oniguruma-devel libxslt-devel
[root@os-247 ~]# yum install openssl11-devel
[root@os-247 ~]# yum groups install "Development Tools"
...
超级简单获取华为云课程内嵌的课件pdf文件引言我们在学习华为云课程时,我们可以查看他的课件。但是,每次我们要查看课件时,都要点进去他那个网站,效率无疑十分低下。但是官网那里又没有下载按钮,我们想要获取pdf课件,我们就得自己动手了。第一步: 找到以下的黄金课程,先找到课程文档。。第二步,打开浏览器的开发工具,一般是按F12,找到 网络 ,再点 课程文档 ,找到 网络 中,数字开头的内容,双击 就可以自动 下载PDF文件了。第三,看下这连接里面的内容,可以看到,这是 get 一个 PDF文件。
Percona XtraBackup8备份账号权限配置Connection and privileges neededPercona XtraBackup needs to be able to connect to the database server and perform operations on the server and the datadir when creating a backup, when preparing in some scenarios and when restoring it. In order to do so, there are privileges and permission requirements on its execution that must be fulfilled.Privilege refers to the operations that a system user is permitted to do in the database server. They are set at the database server and only apply to users in the database server.Permissions are those which permits a user to perform operations on the system, like reading, writing or executing on a certain directory or start/stop a system service. They are set at a system level and only apply to system users.When xtrabackup is used, there are two actors involved: the user invoking the program - a system user - and the user performing action in the database server - a databas...
从二进制压缩包安装 Percona XtraBackup¶Percona提供Percona XtraBackup的二进制压缩包。二进制压缩包 包含预编译的可执行文件、库和其他依赖项,并且 压缩存档。将二进制压缩包提取到任何路径。tar二进制压缩包可供下载和安装。下表列出了 中可用的压缩包类型。为您的安装选择Percona XtraBackup 8.0版本,软件或操作系统以及压缩包类型。二进制压缩包支持所有发行版。Linux - Generic下载二进制压缩包后,将压缩包解压缩到您选择的文件位置。类型名字操作系统描述满Percona-xtrabackup--Linux.x86_64.glibc2.12.tar.gz专为 CentOS 6 打造包含二进制文件、库、测试文件和调试符号极小Percona-Xtrabackup--Linux.x86_64.glibc2.12-minimal.tar.gz专为 CentOS 6 打造包含二进制文件和库,但不包括测试文件或调试符号满Percona-xtrabackup--Linux.x86_64.glibc2.17.tar.gz兼容除 CentOS 6 以外的任何操作系统包含二进制文件、库、测试文件和调试符号极小Percona-Xtrabackup--Linux.x86_64.glibc2.17-minimal.tar.gz兼容除 CentOS 6 以外的任何操作系统包含二进制文件和库,但不包括测试文件或调试符号选择其他软件,例如 Ubuntu 20.04 (Focal Fossa),用于 该操作系...
###########全局配置#########global daemon nbproc 1 pidfile /var/run/haproxy.pid########默认配置############defaults mode http #默认的模式mode { tcp|http|health },tcp是4层,http是7层,health只会返回OK retries 2 #两次连接失败就认为是服务器不可用,也可以通过后面设置option redispatch #当serverId对应的服务器挂掉后,强制定向到其他健康的服务器option abortonclose #当服务器负载很高的时候,自动结束掉当前队列处理比较久的链接maxconn 4096 #默认的最大连接数timeout connect 5000ms #连接超时timeout client 30000ms #客户端超时timeout server 30000ms #服务器超时#timeout check 2000 #=心跳检测超时log 127.0.0.1 local0 err #[err warning info debug]listen mysql-lb1 # 绑定的IP和端口 haproxy服务器一个网卡IP bind *:3307 # 模式是TCP mode tcp # 通过mysql连接去检测mysql是否可以访问 创建用户haproxy_check 密码为空,权限usage option mysql-check user haproxy # 负载均衡算法是 轮询&...
华为Cloud EulerOS 2.0配置s3fs挂载obs桶目录一,安装fuse软件。1,安装环境.yum install -y fuseyum install -y automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-develwget https://sandbox-expriment-files.obs.cn-north-1.myhuaweicloud.com/20220329/s3fs-fuse-master.zipunzip s3fs-fuse-master.zipmv s3fs-fuse-master s3fs-fuse2,安装s3fs。chmod -R 777 s3fs-fuse/ cd s3fs-fuse./autogen.sh./configuremakesudo make install3,挂载OBS桶.步骤 1 在/root/下创建.passwd-s3fs的文件,设置文件权限为600 touch /root/.passwd-s3fschmod 600 /root/.passwd-s3fs在.passwd-s3fs的文件中添加OBS桶的AK:SK。[root@ecs-hce ~]# cat /root/.passwd-s3fs WHOSFDHTG9ZNVD0GL8OO:w0tiVfJTy428D0pJtZGA47Aj3E1YZ4MEhv0mfvNvAK:SK//此处需要替换步骤 2 1 执行如下格式命令实施mount(以下示例中,桶名为ftp-obs:/test,test为桶内的指定目录,挂载点为/var/ftp/work01/,在实际使用时,桶名,挂载点,以及url需根据实际情况修改) s3fs -o a...
HAProxy之三----keepalived配合脚本对HAProxy、ping网关实现高可用检测调用脚本参数含义12345678910vrrp_script<SCRIPT_NAME> { #定义一个检测脚本,在global_defs之外配置 script <STRING>|<QUOTED-STRING> # shell命令或脚本路径 interval <INTEGER> # 间隔时间,单位为秒,默认1秒 timeout <INTEGER> # 超时时间 weight <INTEGER:-254..254> # 权重,监测失败后会执行权重+操作 fall <INTEGER> #脚本几次失败转换为失败 rise <INTEGER> # 脚本连续检测成果后,把服务器从失败标记为成功的次数 user USERNAME [GROUPNAME] # 执行监测的用户或组 init_fail # 设置默认标记为失败状态,监测成功之后再转换为成功状态}实战一:实现ping网关地址高可用检测1、在主机A配置keepalived调用ping脚本。 书写一个脚本,ping主机的网关IP地址,如果ping不通时,启动以下keepalived配置文件中内容。vim /etc/keepalived/ping.sh1234567#!/...
HAProxy之一----HAPproxy配置参数详解企业服务架构图及负载均衡的要求场景说明• 在企业生产环境中,每天会有很多的需求变更,比如增加服务器、新业务上线、url路由修改、域名配置等等,对于前端负载均衡设备来说,容易维护,复杂度低,是首选指标。在企业中,稳定压倒一切,与其搞得很复杂,经常出问题,不如做的简单和稳定。• 在企业中,90%以上的故障,来源于需求变更。可能是程序bug,也可能是人为故障,也可能是架构设计问题等等。• 前端负载均衡设备为重中之重,在软件选型上一定充分考虑,能满足业务的前提下,尽可能降低复杂度,提高易维护性小型架构图中型架构图 公有云Web架构 私有云web架构 什么是负载均衡:•负载均衡(Load Balance,简称LB)是一种服务或基于硬件设备等实现的高可用反向代理技术,负载均衡将特定的业务(web服务、网络流量等)分担给指定的一个或多个后端特定的服务器或设备,从而提高了公司业务的并发处理能力、保证了业务的高可用性、方便了业务后期的水平动态扩展。•https://yq.aliyun.com/articles/1803#阿里云SLB介绍为什么使用负载均衡:•Web服务器的动态水平扩展 •对用户无感知•增加业务并发访问及处理能...
总共31页,当前第1页 | 页数: - 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
最新评论