keepalived 源码编译安装

2023-11-10

1、官方下载源码包

[root@zk01 ~]# wget  https://www.keepalived.org/software/keepalived-2.0.20.tar.gz

 

2、解压

[root@zk01 ~]# tar -zxvf keepalived-2.0.20.tar.gz

3、进入解压目录,编译

[root@zk01 keepalived-2.0.20]# ./configure  --prefix=/soft/keepalived 
[root@zk01 keepalived-2.0.20]# make 
[root@zk01 keepalived-2.0.20]# make install 

4、至此,我们可以在/soft目录下,看到编译好的keepalived 

[root@zk01 keepalived]# pwd
/soft/keepalived
[root@zk01 keepalived]# ll
total 0
drwxr-xr-x 2 root root 20 Feb  4 02:58 bin
drwxr-xr-x 4 root root 39 Feb  4 02:58 etc
drwxr-xr-x 2 root root 23 Feb  4 02:58 sbin
drwxr-xr-x 5 root root 37 Feb  4 02:58 share

 

提示: 输入./configure -h 可以查看帮助

[root@zk01 keepalived-2.0.20]# ./configure -h
`configure' configures Keepalived 2.0.20 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/keepalived]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-silent-rules   less verbose build output (undo: "make V=1")
  --disable-silent-rules  verbose build output (undo: "make V=0")
  --disable-lvs-syncd     do not use LVS synchronization daemon
  --disable-lvs           do not use the LVS framework
  --disable-lvs-64bit-stats
                          do not use the LVS 64-bit stats
  --disable-vrrp          do not use the VRRP framework
  --enable-bfd            use the BFD framework
  --disable-fwmark        compile without SO_MARK support
  --enable-snmp           compile with SNMP support
  --enable-snmp-vrrp      compile with SNMP vrrp support
  --enable-snmp-keepalived
                          obsolete - use --enable-snmp-vrrp
  --enable-snmp-checker   compile with SNMP checker support
  --enable-snmp-rfc       compile with SNMP RFC2787 (VRRPv2) and SNMP RFC6527
                          (VRRPv3) support
  --enable-snmp-rfcv2     compile with SNMP RFC2787 (VRRPv2) support
  --enable-snmp-rfcv3     compile with SNMP RFC6527 (VRRPv3) support
  --disable-snmp-reply-v3-for-v2
                          disable RFC6527 responses for VRRPv2 instances
  --enable-dbus           compile with dbus support
  --enable-dbus-create-instance
                          compile with dbus support for creating instances
  --enable-sha1           compile with SHA1 support
  --enable-regex          build with HTTP_GET regex checking
  --enable-regex-timers   build with HTTP_GET regex timers
  --enable-json           compile with signal to dump configuration and stats
                          as json
  --disable-vrrp-auth     compile without VRRP authentication
  --disable-checksum-compat
                          compile without v1.3.6 and earlier VRRPv3 unicast
                          checksum compatibility
  --disable-routes        compile without ip rules/routes
  --disable-linkbeat      build without linkbeat support
  --enable-gnu-std-paths  use GNU standard paths for pid files etc
  --enable-dynamic-linking
                          compile with/without dynamically linked
                          libiptc/libipset/libnl
  --disable-iptables      compile without iptables support
  --enable-libiptc-dynamic
                          compile with libiptc dynamically linked
  --disable-libipset-dynamic
                          compile with libipset statically linked
  --enable-libnl-dynamic  compile with libnl dynamically linked
  --disable-libiptc       compile without libiptc
  --disable-libipset      compile without libipset
  --disable-nftables      build without nftables support
  --disable-libnl         compile without libnl
  --disable-track-process build without track-process functionality
  --enable-strict-config-checks
                          build with strict configuration checking
  --disable-hardening     do not build with security hardening
  --enable-optimise       compiler optimisation level
  --enable-warnings[=WARNINGS]
                          additional compiler warnings, disable for reduced
                          set
  --enable-extra-warnings extra compiler warnings that will probably produce
                          many warnings
  --enable-mem-check      compile with memory alloc checking
  --enable-mem-check-log  compile with memory alloc checking writing to syslog
  --enable-timer-check    compile with set time logging
  --enable-debug          compile with most debugging options
  --enable-netlink-timers compile with netlink command timers
  --enable-smtp-alert-debug
                          compile with smtp-alert debugging
  --enable-stacktrace     compile with stacktrace support
  --enable-perf           compile with perf performance data recording support
                          for vrrp process
  --enable-log-file       enable logging to file (-g)
  --enable-dump-threads   compile with thread dumping support
  --enable-epoll-debug    compile with epoll_wait() debugging support
  --enable-epoll-thread-dump
                          compile with epoll thread dumping support
  --enable-regex-debug    compile with regex debugging support
  --enable-tsm-debug      compile with TSM debugging support
  --enable-vrrp-fd-debug  compile with vrrp fd debugging support
  --enable-eintr-debug    compile with EINTR debugging support, set to
                          check/not check for EINTR
  --enable-track-process-debug
                          compile with track process debugging support, set to
                          log all process connector events
  --enable-parser-debug   compile with parser debugging support
  --enable-checksum-debug compile with checksum debugging support
  --enable-genhash-debug  compile with genhash debugging support
  --enable-checker-debug  compile with checker debugging support
  --enable-smtp-connect-debug
                          compile with smtp connect debugging support
  --enable-mem-err-debug  compile with MALLOC/FREE error debugging support
  --enable-one-process-debug
                          compile with all functionality running in a single
                          process
  --enable-dump-keywords  compile with keyword dumping support
  --enable-network-timestamp
                          compile with network timestamp debugging support
  --enable-asserts        compile with assert() enabled
  --enable-profile        compile with profiling flags
  --enable-conversion-checks
                          compile with conversion warnings if sensible
  --enable-force-conversion-checks
                          compile with conversion warnings
  --enable-Werror         compile with warnings being errors
  --enable-dependency-tracking
                          do not reject slow dependency extractors
  --disable-dependency-tracking
                          speeds up one-time build

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-kernel-dir=DIR   path to linux kernel source directory
  --with-init=(upstart|systemd|SYSV|SUSE|openrc)
                          specify init type
  --with-run-dir=PATH_TO_RUN
                          specify directory where /run is located
  --with-fixed-if-type=TYPE
                          treat interface type TYPE as unchangeable
  --with-default-config-file=FILE
                          Default configuration file
  --with-systemdsystemunitdir=DIR
                          Directory for systemd service files]

Some influential environment variables:
  PKG_CONFIG  path to pkg-config utility
  PKG_CONFIG_PATH
              directories to add to pkg-config's search path
  PKG_CONFIG_LIBDIR
              path overriding pkg-config's built-in search path
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <keepalived-users@groups.io>.
Keepalived home page: <http://www.keepalived.org/>.

输入如下命令可以查看keepalived 启动相关命令

[root@zk01 ~]# man keepalived

KEEPALIVED(8)                                          System Manager's Manual                                          KEEPALIVED(8)

NAME
       keepalived - load-balancing and high-availability service

SYNOPSIS
       keepalived [-f|--use-file=FILE] [-P|--vrrp] [-C|--check] [-l|--log-console] [-D|--log-detail] [-S|--log-facility={0-7}]
       [-X|--release-vips] [-V|--dont-release-vrrp] [-I|--dont-release-ipvs] [-R|--dont-respawn] [-n|--dont-fork] [-d|--dump-conf]
       [-p|--pid=FILE] [-r|--vrrp_pid=FILE] [-c|--checkers_pid=FILE] [-a|--address-monitoring] [-x|--snmp] [-A|--snmp-agent-
       socket=FILE] [-m|--core-dump] [-M|--core-dump-format[=PATTERN]] [-v|--version] [-h|--help]

DESCRIPTION
       Keepalived provides simple and robust facilities for load-balancing and high-availability. The load-balancing framework relies
       on the well-known and widely used Linux Virtual Server (IPVS) kernel module providing Layer4 load-balancing. Keepalived
       implements a set of checkers to dynamically and adaptively maintain and manage a load-balanced server pool according to their
       health. Keepalived also implements the VRRPv2 and VRRPv3 protocols to achieve high-availability with director failover.

OPTIONS
        -f, --use-file=FILE
              Use the specified configuration file. The default configuration file is "/etc/keepalived/keepalived.conf".

        -P, --vrrp
              Only run the VRRP subsystem. This is useful for configurations that do not use the IPVS load balancer.

        -C, --check
              Only run the healthcheck subsystem. This is useful for configurations that use the IPVS load balancer with a single
              director with no failover.

        -l, --log-console
              Log messages to the local console. The default behavior is to log messages to syslog.

        -D, --log-detail
              Detailed log messages.

        -S, --log-facility=[0-7]
              Set syslog facility to LOG_LOCAL[0-7]. The default syslog facility is LOG_DAEMON.

        -X, --release-vips
              Drop VIP on transition from signal.

        -V, --dont-release-vrrp
              Don't remove VRRP VIPs and VROUTEs on daemon stop. The default behavior is to remove all VIPs and VROUTEs when
              keepalived exits.

        -I, --dont-release-ipvs
              Don't remove IPVS topology on daemon stop. The default behavior it to remove all entries from the IPVS virtual server
              table when keepalived exits.

        -R, --dont-respawn
              Don't respawn child processes. The default behavior is to restart the VRRP and checker processes if either process
              exits.

        -n, --dont-fork
              Don't fork the daemon process. This option will cause keepalived to run in the foreground.

        -d, --dump-conf
              Dump the configuration data.

        -p, --pid=FILE
              Use the specified pidfile for the parent keepalived process. The default pidfile for keepalived is
              "/var/run/keepalived.pid", unless a network namespace is being used. See NAMESPACES below for more details.

        -r, --vrrp_pid=FILE
              Use the specified pidfile for the VRRP child process. The default pidfile for the VRRP child process is
              "/var/run/keepalived_vrrp.pid", unless a network namespace is being used.

        -c, --checkers_pid=FILE
              Use the specified pidfile for checkers child process. The default pidfile for the checker child process is
              "/var/run/keepalived_checkers.pid" unless a network namespace is being used.

        -a, --address-monitoring
              Log all address additions/deletions reported by netlink.

        -x, --snmp
              Enable the SNMP subsystem.

        -A, --snmp-agent-socket=FILE
              Use the specified socket for connection to SNMP master agent.

        -m, --core-dump
              Override the RLIMIT_CORE hard and soft limits to enable keepalived to produce a coredump in the event of a segfault or
              other failure.  This is most useful if keepalived has been built with 'make debug'.  Core dumps will be created in /,
              unless keepalived is run with the --dont-fork option, in which case they will be created in the directory from which
              keepalived was run, or they will be created in the directory of a configuraton file if the fault occurs while reading
              the file.

        -M, --core-dump-pattern[=PATTERN]
              Sets option --core-dump, and also updates /proc/sys/kernel/core_pattern to the pattern specified, or 'core' if none
              specified.  Provided the parent process doesn't terminate abnormally, it will restore /proc/sys/kernel/core_pattern to
              its original value on exit.

              Note: This will also affect any other process producing a core dump while keepalived is running.

        -v, --version
              Display the version and exit.

              Note: This will also affect any other process producing a core dump while keepalived is running.

        -v, --version
              Display the version and exit.

        -h, --help
              Display this help message and exit.

NAMESPACES
       keepalived can be run in a network namespace (see keepalived.conf(5) for configuration details). When run in a network
       namespace, a local mount namespace is also created, and /var/run/keepalived/keepalived_NamespaceName is mounted on
       /var/run/keepalived. By default, pid files with the usual default names are then created in /var/run/keepalived from the
       perspective of a process in the mount namespace, and they will be visible in /var/run/keepalived/keepalived_NamespaceName for
       a process running in the default mount namespace.

SIGNALS
       keepalived reacts to a set of signals.  You can send a signal to the parent keepalived process using the following:

              kill -SIGNAL $(cat /var/run/keepalived.pid)

       Note that -SIGNAL must be replaced with the actual signal you are trying to send, e.g. with HUP. So it then becomes:

              kill -HUP $(cat /var/run/keepalived.pid)

       HUP    This causes keepalived to close down all interfaces, reload its configuration, and start up with the new configuration.

       TERM, INT
              keepalived will shut down.

       USR1   Write configuration data to /tmp/keepalived.data

       USR2   Write statistics info to /tmp/keepalived.stats

SEE ALSO
       keepalived.conf(5), ipvsadm(8)

AUTHOR
       This man page was written by Ryan O'Hara <rohara@redhat.com>

 

 

 

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

keepalived 源码编译安装 的相关文章

  • 基于 HAProxy + Keepalived 搭建 RabbitMQ 高可用集群

    RabbitMQ 集群 通常情况下 xff0c 在集群中我们把每一个服务称之为一个节点 xff0c 在 RabbitMQ 集群中 xff0c 节点类型可以分为两种 xff1a 内存节点 xff1a 元数据存放于内存中 为了重启后能同步数据
  • 普通用户安装管理Keepalived

    普通用户安装管理Keepalived 介绍安装授权给普通用户修改配置文件keepalived 配置检测脚本配置普通用户启动keepalived 介绍 负载均衡 Load Balance xff0c 简称LB 是一种服务或基于硬件设备等实现的
  • mysql MGR配置keepalived

    之前写过一篇mysql8 0搭建MGR 在这里 mysql8 0配置MGR 悠游 博客园 cnblogs com 在此基础上配置keepalived 一 安装keepalived 可能会少些包 xff0c 所以配置了网络yum源 所有节点均
  • Nginx+keepalived实现nginx高可用

    提前备好两台服务器 xff08 主 xff1a 192 168 2 34 xff0c 备 xff1a 192 168 2 24 xff09 xff0c 并安装好nginx xff0c nginx安装此文不做赘述 1 下载keepAlived
  • LVS_Director + KeepAlived 部署

    1 xff0c 准备四台net机器 其中两台做主 备调度 别外两台做web机器 主 备调度器安装软件 root 64 lvs keepalived master yum y install ipvsadm keepalived 主 root
  • centos7.5部署高可用k8s(一) ---- 部署LB负载均衡haproxy+keepalived

    在centos7 5系统部署一个k8s高可用集群 k8s版本采用v1 15 2 docker版本18 09 根据官方的文档 xff0c 部署集群前首先要部署负载均衡器 xff0c 这里简要记录下LB负载均衡器的部署过程 环境说明 节点IP备
  • Keepalived

    Keepalived双机热备 Keepalived简介 Keepalived是使用C语言编写的路由热备软件 xff0c 该项目软件的主要目标是为Linux系统提供简单高效的负载均衡及高可用解决方案 负载均衡架构依赖于知名的IPVS xff0
  • 双master节点+keepalived方式部署K8s 1.18.20

    相关部署方式也挺多 xff0c 自己采用双master节点 43 单node节点方式 xff0c 并且采用keepalived部署1 18 20版本 xff0c 中间也出现过相关小问题 xff0c 但都一一处理 xff0c 记录以给需要的同
  • K8s 配置高可用提示Configuration file ‘/etc/keepalived/keepalived.conf‘ is not a regular non-executable file

    k8s配置keepalived高可用 xff0c systemctl start keepalived提示 检查keepalived配置文件 xff0c 查询配置也正常 从报错提示显示keepalived conf 配置文件是一个非执行的文
  • Keepalived--05--脑裂问题

    一 问题 1 1 场景 高可用 在高可用 HA 系统中 当联系2个节点的 心跳线 断开时 本来为一整体 动作协调的HA系统 就分裂成为2个独立的个体 由于相互失去了联系 都以为是对方出了故障 两个节点上的HA软件像 裂脑人 一样 争抢 共享
  • Keepalived + Haproxy实现负载均衡以及调度器的高可用

    Keepalived Haproxy Haproxy 提供高可用性 负载均衡以及基于 TCP 和 HTTP 应用的代理 支持虚拟主机 它是免费 快速并且可靠的一种解决方案 HAProxy 特别适用于那些负载特大的 web 站点 这些站点通常
  • 第二篇:mysql负载均衡、高可用方案:mysqlcluster+haproxy+keepalived

    上一篇介绍了mysqlcluster的安装和配置 本篇将描述高可用的mysql集群组建方式 高可用的mysql集群有多种方式 本篇介绍的是 mysqlcluster haproxy keepalived方案 下篇将介绍通过普通版本的mysq
  • 搭建Keepalived+LVS+Nginx高可用集群负载均衡

    原理图 本博客实现时的ip约定 1 为两台主备CentOs7服务器安装Keepalived和LVS 安装keepalived Keepalived安装 p f 的博客 CSDN博客 安装LVS请看此博客第一点 搭建LVS DR模式 p f
  • keepalived 笔记

    keepalived可以认为是VRRP协议在Linux上的实现 主要有三个模块 分别是core check和vrrp core模块为keepalived的核心 负责主进程的启动 维护以及全局配置文件的加载和解析 check负责健康检查 包括
  • keepalived工作原理和配置说明

    keepalived是什么 keepalived是集群管理中保证集群高可用的一个服务软件 其功能类似于heartbeat 用来防止单点故障 keepalived工作原理 keepalived是以VRRP协议为实现基础的 VRRP全称Virt
  • 物联网上行数据实现tcp 负载均衡和高可用架构 nginx + keepalived方案

    文章目录 需求介绍 架构设计 具体配置 nginx 配置 keepalived 配置 需求介绍 之前有做过一个物联网设备接入的项目 项目中会启动一个数据接入服务 TCP server 用来接收传感器设备上传的数据 数据接入服务需要分布式部署
  • Centos7-安装keepalived

    1 到keepalived官网下载 Keepalived for Linux 2 使用xftp上传到 usr local packages目录下 3 解压上传的tar gz压缩文件 cd usr local packages tar zxv
  • Keepalived--02--安装和卸载

    一 安装前准备 yum y install gcc gcc c autoconf automake make yum y install zlib zlib devel openssl openssl devel pcre pcre dev
  • Linux系统之使用Keepalived+Nginx部署高可用Web集群

    Linux系统之使用Keepalived Nginx部署高可用Web集群 一 本次实践介绍 1 1 本次实践简介 1 2 本次实践环境规划 二 Keepalived和Nginx介绍 2 1 Keepalived简介 2 2 Keepaliv
  • 如何给keepalived配置vip(虚拟ip)

    首先为了测试机器 准备两台服务器 host1 172 28 23 73 host2 172 28 23 96 虚拟ip 172 28 23 100 第一步 在线安装keepalived中间件 sudo yum install y keepa

随机推荐

  • error Command failed with exit code 1.

    从传统JQuery转变到Node js最烦的就是一接手新项目就得npm install 浪费大量时间不说还总会报莫明其妙的错误 这次又遇到了一个error Command failed with exit code 1 因为它的相关处报的问
  • 100+国产大模型排行榜!部分超越ChatGPT-4

    国产大模型的发展速度惊人 至少说明在国内的显卡数量是足够多的 如果能集中资源 或许能快速跟进ChatGPT 不过 其中不少厂家号称已经超越ChatGPT 4 让人感到欣慰 觉得哪个好 评论区见
  • 【金融】新成立基金建仓时点、行业分布与市场行情关系探究

    需要进一步交流 获取数据和代码的同学欢迎私信奥 基于新成立基金建仓带入市场的巨量资金会推动市场行情这一逻辑 开展了一系列研究 首先提出了通过基金净值识别建仓行为 累计绝对值涨跌幅法 和通过基金 值识别建仓行为 法 的两种方法 在通过回顾历史
  • 一键修改分辨率bat_设置分辨率的批处理

    if computername name1 SETRES h800 v600 b32 f85 if computername name2 SETRES h1024 v768 b32 f85 if computername name3 SET
  • libevent服务端,单线程应用

    libevent版本 libevent 2 1 12 stable include
  • 数据库MySQL与SQLite

    常用数据库及Qt中的用法 一 常用数据库 数据库管理系统 DBMS 是旨在使用 检索和定义规则以验证和操作数据库中的数据的软件 有四种DBMS类型 关系型 面向对象型 分层型和网络型 有很多开源数据库 包括MySQL SQLite等 SQL
  • Android13 Windows11-VMware-Ubuntu 源码下载和全编译

    Windows11 VMware Ubuntu Android13 源码下载和全编译 官方教程文档 想用 Mac 编译源码的朋友基本可以放弃想法了 我试过了各种兼容错误 不得已用了 Windows 装 VMware Ubuntu 一 硬件配
  • 知道这20个正则表达式,能让你少写1,000行代码

    正则表达式 一个十分古老而又强大的文本处理工具 仅仅用一段非常简短的表达式语句 便能够快速实现一个非常复杂的业务逻辑 熟练地掌握正则表达式的话 能够使你的开发效率得到极大的提升 正则表达式经常被用于字段或任意字符串的校验 如下面这段校验基本
  • python3 [爬虫入门实战]scrapy爬取盘多多五百万数据并存mongoDB

    总结 虽然是第二次爬取 但是多多少少还是遇到一些坑 总的结果还是好的 scrapy比多线程多进程强多了啊 中途没有一次被中断过 此版本是盘多多爬取数据的scrapy版本 涉及数据量较大 到现在已经是近500万的数据了 1 抓取的内容 主要爬
  • tensorrt的安装和使用

    安装 提前安装好 CUDA 和 CUDNN 登录 NVIDIA 官方网站下载和主机 CUDA 版本适配的 TensorRT 压缩包即可 以 CUDA 版本是 10 2 为例 选择适配 CUDA 10 2 的 tar 包 然后执行类似如下的命
  • rsync 远程同步

    Rsync 简介 rsync Remote Sync 远程同步 是一个开源的快速备份工具 可以在不同主机之间镜像同步整个目录树 支持增量备份 并保持链接和权限 且采用优化的同步算法 传输前执行压缩 因此非常适用于异地备份 镜像服务器等应用
  • auto 和 auto &是不一样的

    前言 什么时候用auto什么时候用auto 呢 先看代码testauto cpp include
  • unity 实现文本选中_Unity中如何读取TXT文本内容

    在游戏开发过程中 我们是离不开需求的 而需求的事情是由策划来做的 那么我们和策划也是需要沟通交流的 那么是怎么交流的呢 策划不需要写代码 只需要思考一些游戏的内容 数据 玩法的实现 然后让我们按照策划的东西来弄 所以和策划的沟通就是非常频繁
  • pgsql 自定义排序

    需求简述 用户要求查询数据表 使得输出结果指定中文字段chn name按照自定义的顺序 电 水 风 火等顺序排序 表内容 自定义排序sql 排序结果 工作中遇到的sql查询案例 如果有更简便的查询sql 欢迎多多交流
  • PlutoSDR学习指南【1】环境搭建+资料分享

    1 软件无线电及Pluto简介 软件无线电平台最通俗的语言来说 即通信系统中的功能采用软件实现 且可反复使用 比如简单的发射和接收信号 可以通过软件设置 信号的编码解码 可以通过软件设置 甚至你可以自己定义一种协议 用你自己的协议来实现一套
  • Python 已知 RSA 模数和指数,生成公钥进行加密

    在学习 js 加密的过程中 关于 RSA 加密知识有所接触 因此记录一下实际过程中遇到的问题 在这里我们主要讲解当没有公钥 已知公钥模数和指数的情况下 实现 RSA 加密 一 cryptography 包获取 RSA 公钥 首先需要安装 c
  • 【福利】Google Cloud Next ’23 精彩待发,Cloud Ace 作为联合赞助商提前发福利~

    Cloud Ace 是 Google Cloud 全球战略合作伙伴 在亚太地区 欧洲 南北美洲和非洲拥有二十多个办公室 Cloud Ace 在谷歌专业领域认证及专业知识目前排名全球第一位 并连续多次获得 Google Cloud 各类奖项
  • 【Neo4j与知识图谱】Neo4j的常用语法与一个简单知识图谱构建示例

    文章目录 一 Cypher基本语法 1 创建节点和关系 2 查询节点和关系 3 更新节点和关系 4 删除节点和关系 二 小示例 2 1 准备数据和创建实体和关系 2 2 进行查询修改等操作 一 Cypher基本语法 Neo4j是一种基于图形
  • 江西理工大学 微型计算机原理,江西理工大学-微机原理考试(wenwei)作业.docx

    江西理工大学 微机原理考试 wenwei 作业 第一章1 在计算机内部为什么要采用二进制数而不采用十进制数 2 设机器字长为6位 写出下列各数原码 补码和移码 10101 11111 10000 10101 11111 10000 3 利用
  • keepalived 源码编译安装

    1 官方下载源码包 root zk01 wget https www keepalived org software keepalived 2 0 20 tar gz 2 解压 root zk01 tar zxvf keepalived 2