OnlyOffice验证(二)在Centos7上部署OnlyOffice编译结果

news2024/9/27 7:24:32

在Centos7上部署OnlyOffice编译结果

  此处将尝试将OnlyOffice验证(一)DocumentServer编译验证的结果部署到Centos7上。并且使用其它服务器现有的RabbitMq和Mysql。

安装Nginx

  先安装Nginx需要的依赖环境:

yum install openssl* -y
yum install ncurses-devel -y

  先下载Nginx资源包:

[root@test nginx]# pwd
/usr/local/nginx
[root@test nginx]# ll
总用量 1052
-rw-r--r--. 1 root root 1073948 224 09:25 nginx-1.22.1.tar.gz
[root@test nginx]# tar -zxvf nginx-1.22.1.tar.gz

  解压后目录结构如下(目录为:/usr/local/nginx/nginx-1.22.1):

[root@test nginx]# ll
总用量 1052
drwxr-xr-x. 8 1001 1001     158 1019 16:02 nginx-1.22.1
-rw-r--r--. 1 root root 1073948 224 09:25 nginx-1.22.1.tar.gz
[root@test nginx]# cd nginx-1.22.1
[root@test nginx-1.22.1]# ll
总用量 804
drwxr-xr-x. 6 1001 1001   4096 224 09:34 auto
-rw-r--r--. 1 1001 1001 317399 1019 16:02 CHANGES
-rw-r--r--. 1 1001 1001 485035 1019 16:02 CHANGES.ru
drwxr-xr-x. 2 1001 1001    168 224 09:34 conf
-rwxr-xr-x. 1 1001 1001   2590 1019 16:02 configure
drwxr-xr-x. 4 1001 1001     72 224 09:34 contrib
drwxr-xr-x. 2 1001 1001     40 224 09:34 html
-rw-r--r--. 1 1001 1001   1397 1019 16:02 LICENSE
drwxr-xr-x. 2 1001 1001     21 224 09:34 man
-rw-r--r--. 1 1001 1001     49 1019 16:02 README
drwxr-xr-x. 9 1001 1001     91 224 09:34 src

  开始安装

./configure	&& make

  切换目录到/usr/local/nginx,如果没有新的文件回到安装目录再执行一下:

make install

  最终目录结构应该和下面差不多:

[root@test nginx-1.22.1]# pwd
/usr/local/nginx/nginx-1.22.1
[root@test nginx-1.22.1]# cd ../
[root@test nginx]# ll
总用量 1056
drwxr-xr-x. 2 root root    4096 224 09:45 conf
drwxr-xr-x. 2 root root      40 224 09:45 html
drwxr-xr-x. 2 root root       6 224 09:45 logs
drwxr-xr-x. 9 1001 1001     186 224 09:43 nginx-1.22.1
-rw-r--r--. 1 root root 1073948 224 09:25 nginx-1.22.1.tar.gz
drwxr-xr-x. 2 root root      19 224 09:45 sbin

  切换目录到sbin,启动Nginx:

[root@test nginx]# cd sbin/
[root@test sbin]# pwd
/usr/local/nginx/sbin
[root@test sbin]# ./nginx 
[root@test sbin]#

  当前虚拟机配的IP是192.168.95.131,访问http://192.168.95.131:80/(端口可以不用写):
在这里插入图片描述
  配置自启服务,此处不重要可以略过。这里先关闭Nginx:

[root@test sbin]# pwd
/usr/local/nginx/sbin
[root@test sbin]# ./nginx -s stop
[root@test sbin]# 

  创建一个系统服务配置文件

[root@test sbin]# pwd
/usr/local/nginx/sbin
[root@test sbin]# vim nginx.service
[root@test sbin]# cat nginx.service 
[Unit]
Description=nginx service
After=network.target

[Service]
Type=forking
ExecStart=/usr/local/nginx/sbin/nginx
ExecReload=/usr/local/nginx/sbin/nginx -s reload
ExecStop=/usr/local/nginx/sbin/nginx -s stop
WorkingDirectory=/usr/local/nginx/sbin
PrivateTmp=true

[Install]
WantedBy=multi-user.target

  创建软连接,随后重新加载服务配置

[root@test sbin]# ln -s /usr/local/nginx/sbin/nginx.service /usr/lib/systemd/system/nginx.service
[root@test sbin]# systemctl daemon-reload

  接下来使用systemctl start nginx来启动Nginx

[root@test sbin]# systemctl start nginx
[root@test sbin]# systemctl status nginx
● nginx.service - nginx service
   Loaded: loaded (/usr/local/nginx/sbin/nginx.service; disabled; vendor preset: disabled)
   Active: active (running) since 五 2023-02-24 10:18:52 CST; 1s ago
  Process: 35348 ExecStart=/usr/local/nginx/sbin/nginx (code=exited, status=0/SUCCESS)
 Main PID: 35349 (nginx)
   Memory: 952.0K
   CGroup: /system.slice/nginx.service
           ├─35349 nginx: master process /usr/local/nginx/sbin/nginx
           └─35350 nginx: worker process

224 10:18:52 test systemd[1]: Starting nginx service...
224 10:18:52 test systemd[1]: Started nginx service.

  配置自启,重启服务器验证即可

[root@test sbin]# systemctl enable nginx
Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /usr/local/nginx/sbin/nginx.service.
Created symlink from /etc/systemd/system/nginx.service to /usr/local/nginx/sbin/nginx.service.

资源准备

Ubuntu虚拟机资源准备

  此处先将安装资源准备一下,将之前编译好的documentserver打个压缩包。然后将资源传到Centos7上。

root@t16:/opt/build_master/build_tools/out/linux_64/onlyoffice# tar -zcvf documentserver.tar.gz documentserver
root@t16:/opt/build_master/build_tools/out/linux_64/onlyoffice# pwd
/opt/build_master/build_tools/out/linux_64/onlyoffice
root@t16:/opt/build_master/build_tools/out/linux_64/onlyoffice# ll
总用量 822728
drwxr-xr-x  5 root root      4096 224 10:35 ./
drwxr-xr-x  3 root root      4096 219 23:26 ../
drwxr-xr-x 10 root root      4096 223 14:00 documentserver/
drwxr-xr-x  3 root root      4096 223 13:56 documentserver-example/
drwxr-xr-x  3 root root      4096 219 23:27 documentserver-snap/
-rw-r--r--  1 root root 842447109 224 10:36 documentserver.tar.gz

  将压缩文件传到目标Centos7上

root@t16:/opt/build_master/build_tools/out/linux_64/onlyoffice# scp documentserver.tar.gz root@192.168.95.131:/usr/local/nginx/html
The authenticity of host '192.168.95.131 (192.168.95.131)' can't be established.
ECDSA key fingerprint is SHA256:P8yATBEzmZX9B7VcnUT6yYWDksUcNMdapeO4alDUYSw.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.95.131' (ECDSA) to the list of known hosts.
root@192.168.95.131's password: 
documentserver.tar.gz                                                                                                100%  803MB 160.7MB/s   00:05    
root@t16:/opt/build_master/build_tools/out/linux_64/onlyoffice# 

Centos7虚拟机资源准备

  在上一步将安装资源打压缩包,传到了Centos7中的/usr/local/nginx/html目录

[root@test html]# pwd
/usr/local/nginx/html
[root@test html]# ll -h
总用量 804M
-rw-r--r--. 1 root root  497 224 09:45 50x.html
-rw-r--r--. 1 root root 804M 224 10:40 documentserver.tar.gz
-rw-r--r--. 1 root root  615 224 09:45 index.html

  解压资源

[root@test html]# tar -zxvf documentserver.tar.gz
[root@test html]# pwd
/usr/local/nginx/html
[root@test html]# ll
总用量 822712
-rw-r--r--.  1 root root       497 224 09:45 50x.html
drwxr-xr-x. 10 root root       147 223 14:00 documentserver
-rw-r--r--.  1 root root 842447109 224 10:40 documentserver.tar.gz
-rw-r--r--.  1 root root       615 224 09:45 index.html

  修改启动配置,切换目录到/usr/local/nginx/html/documentserver/server/Common/config。修改development-linux.json配置文件,此处只保留了修改的配置内容。分别是RabbitMQ连接、欢迎页、Mysql数据库连接和文件上传大小。

{
  "rabbitmq": {
    "url": "amqp://test:123456@192.168.95.130:5672"
   }, 
  "services": {
    "CoAuthoring": {
      "server": {
        "static_content": {
          "/welcome": {
            "path": "../../server/welcome"
          }
        }
      },
      "sql": {
        "type": "mysql",
        "dbHost": "192.168.95.130",
        "dbPort": "3306",
        "dbName": "onlyoffice",
        "dbUser": "root",
        "dbPass": "123456"
       } 
    }
  },
  "FileConverter": {
    "converter": {
      "maxDownloadBytes": "524288000"
    }
  }
}

  ※RabbitMQ注意默认用户只能本机访问,注意提前配置好用户权限
  ※Mysql表创建脚本在目录/usr/local/nginx/html/documentserver/server/schema/mysql中,提前创建数据库执行createdb.sql脚本

[root@test mysql]# pwd
/usr/local/nginx/html/documentserver/server/schema/mysql
[root@test mysql]# ll
总用量 12
-rwxrwxrwx. 1 root root 3125 219 19:44 createdb.sql
-rwxrwxrwx. 1 root root   35 219 19:44 removedb.sql
-rwxrwxrwx. 1 root root  146 219 19:44 removetbl.sql
drwxrwxrwx. 2 root root   98 219 19:44 upgrade

功能测试验证

  启动转换服务:

[root@test FileConverter]# pwd
/usr/local/nginx/html/documentserver/server/FileConverter
[root@test FileConverter]# LD_LIBRARY_PATH=$PWD/bin \
> NODE_ENV=development-linux \
> NODE_CONFIG_DIR=$PWD/../Common/config \
> ./converter
[2023-02-24T14:21:50.564] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-24T14:21:50.572] [WARN] [localhost] [docId] [userId] nodeJS - worker 112277 started.
[2023-02-24T14:21:50.575] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-02-24T14:21:51.170] [DEBUG] [localhost] [docId] [userId] nodeJS - [AMQP] connected

  启动文档服务:

[root@test DocService]# NODE_ENV=development-linux \
> NODE_CONFIG_DIR=$PWD/../Common/config \
> ./docservice
[2023-02-24T14:22:26.774] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-02-24T14:22:26.775] [WARN] [localhost] [docId] [userId] nodeJS - Set services.CoAuthoring.token.enable.browser, services.CoAuthoring.token.enable.request.inbox, services.CoAuthoring.token.enable.request.outbox in the Document Server config to prevent an unauthorized access to your documents and the substitution of important parameters in ONLYOFFICE Document Server requests.
[2023-02-24T14:22:26.775] [INFO] [localhost] [docId] [userId] nodeJS - End updateLicense
[2023-02-24T14:22:26.777] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2023-02-24T14:22:26.780] [INFO] [localhost] [docId] [userId] nodeJS - End updateLicense
[2023-02-24T14:22:26.840] [DEBUG] [localhost] [docId] [userId] nodeJS - [AMQP] connected
[2023-02-24T14:22:26.901] [DEBUG] [localhost] [docId] [userId] nodeJS - [AMQP] connected
[2023-02-24T14:22:26.922] [INFO] [localhost] [docId] [userId] nodeJS - Start callbackFunction
[2023-02-24T14:22:26.928] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in development-linux mode. Version: 7.3.2. Build: 0

  访问欢迎页,默认端口是8000:
在这里插入图片描述
  接下来测试文档是否可以正常加载:
在这里插入图片描述
  注意此处报错跟Nginx没有关系,目前来看Nginx并不是必须的。怀疑只是在Docker部署的时候占一个前台进程。目前是转换服务报异常提示缺少动态库。
在这里插入图片描述
  经排查确实没有,所以打算升级动态库,参考下面三个连接,升级动态库,主要参考第一个,升级动态库后最好重启一下。

  • 编译动态库看这里 https://www.jianshu.com/p/cedbdf0b6bca
  • 下载资源慢看这里 https://blog.csdn.net/qq_29695701/article/details/115182856
  • 升级动态库补充说明 https://blog.csdn.net/davidhopper/article/details/79681695

  升级动态库后重新启动服务,看看能不能正常加载。目前来看一切正常
在这里插入图片描述
  虽然界面加载看起来没有问题,其实还是有问题的。比如文件修改后保存失败,调用文档格式转换失败。需要补充初始化的操作,切换目录回到解压后的根目录,然后执行初始化命令:
  当前目录结构

[root@test documentserver]# pwd
/usr/local/nginx/html/documentserver
[root@test documentserver]# ll
总用量 20
drwxr-xr-x. 39 root root 4096 223 13:56 core-fonts
drwxr-xr-x. 50 root root 4096 223 13:56 dictionaries
drwxr-xr-x.  4 root root   31 223 13:56 document-templates
drwxr-xr-x.  2 root root 8192 227 09:04 fonts
drwxr-xr-x.  7 root root   68 223 13:53 sdkjs
drwxr-xr-x. 14 root root  234 223 13:56 sdkjs-plugins
drwxr-xr-x. 12 root root  199 223 14:04 server
drwxrwxrwx.  4 root root   32 219 22:58 web-apps
LD_LIBRARY_PATH=${PWD}/server/FileConverter/bin server/tools/allfontsgen \
  --input="${PWD}/core-fonts" \
  --allfonts-web="${PWD}/sdkjs/common/AllFonts.js" \
  --allfonts="${PWD}/server/FileConverter/bin/AllFonts.js" \
  --images="${PWD}/sdkjs/common/Images" \
  --selection="${PWD}/server/FileConverter/bin/font_selection.bin" \
  --output-web='fonts' \
  --use-system="true"
LD_LIBRARY_PATH=${PWD}/server/FileConverter/bin server/tools/allthemesgen \
  --converter-dir="${PWD}/server/FileConverter/bin"\
  --src="${PWD}/sdkjs/slide/themes"\
  --output="${PWD}/sdkjs/common/Images"

  随后重新启动,这时服务就正常了。文件保存和文档格式转换就可以正常使用了。Ubuntu部署顺便也验证了(验证版本16.04和20.04),跟Centos7的区别就是不用更新动态库,部署起来更方便。

配置Nginx

  到这步其实可配可不配,配了Nginx就是代理了8000端口,让你访问的时候直接调80端口。经验证编译结果其实可以不用放在Nginx目录下。因为除了接口转发OnlyOffice服务跟Nginx并没有设么关系。
  首先切换目录到Nginx配置文件的目录中/usr/local/nginx/conf,这里我创建了一个目录为custom用来存放配置。

[root@test conf]# pwd
/usr/local/nginx/conf
[root@test conf]# ll
总用量 68
drwxr-xr-x. 2 root root   34 224 11:09 custom
-rw-r--r--. 1 root root 1077 224 09:45 fastcgi.conf
-rw-r--r--. 1 root root 1077 224 09:45 fastcgi.conf.default
-rw-r--r--. 1 root root 1007 224 09:45 fastcgi_params
-rw-r--r--. 1 root root 1007 224 09:45 fastcgi_params.default
-rw-r--r--. 1 root root 2837 224 09:45 koi-utf
-rw-r--r--. 1 root root 2223 224 09:45 koi-win
-rw-r--r--. 1 root root 5349 224 09:45 mime.types
-rw-r--r--. 1 root root 5349 224 09:45 mime.types.default
-rw-r--r--. 1 root root 2710 224 11:04 nginx.conf
-rw-r--r--. 1 root root 2656 224 09:45 nginx.conf.default
-rw-r--r--. 1 root root  636 224 09:45 scgi_params
-rw-r--r--. 1 root root  636 224 09:45 scgi_params.default
-rw-r--r--. 1 root root  664 224 09:45 uwsgi_params
-rw-r--r--. 1 root root  664 224 09:45 uwsgi_params.default
-rw-r--r--. 1 root root 3610 224 09:45 win-utf

  切换目录到custom中,创建名为*.conf的配置文件

[root@test conf]# cd custom/
[root@test custom]# ll
总用量 4
-rw-r--r--. 1 root root 763 224 11:09 document_server.conf

  配置内容如下,其实就是官网提供的配置

map $http_host $this_host {
  "" $host;
  default $http_host;
}
map $http_x_forwarded_proto $the_scheme {
  default $http_x_forwarded_proto;
  "" $scheme;
}
map $http_x_forwarded_host $the_host {
  default $http_x_forwarded_host;
  "" $this_host;
}
map $http_upgrade $proxy_connection {
  default upgrade;
  "" close;
}
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $proxy_connection;
proxy_set_header X-Forwarded-Host $the_host;
proxy_set_header X-Forwarded-Proto $the_scheme;
server {
  listen 0.0.0.0:80;
  listen [::]:80 default_server;
  server_tokens off;
  rewrite ^\/OfficeWeb(\/apps\/.*)$ /web-apps$1 redirect;
  location / {
    proxy_pass http://localhost:8000;
    proxy_http_version 1.1;
  }
}

  切换目录回到/usr/local/nginx/conf,修改下nginx.conf配置文件,添加如下配置

include /usr/local/nginx/conf/custom/*.conf;

在这里插入图片描述
  最后重新加载Nginx配置,使配置立即生效:

[root@test conf]# systemctl reload nginx

  最终结果就是192.168.95.131:8000192.168.95.131:80都可以正常访问。
在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/376168.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

java本地搭建宝塔部署实战likeadmin后台管理系统源码 - server端(一)

大家好啊,我是测评君,欢迎来到web测评。 上次分享了那几期likeadmin的搭建视频教程,由于是php开发的,这对有些习惯用java开发的同学不太友好,好在这套系统也有java版本的,也有朋友让我录制java版的搭建教程…

1. 驱动开发--基础知识

文章目录1 驱动的概念2 linux体系架构3 模块化设计3.1 微内核和宏内核4 linux设备驱动分类4.1 驱动分类4.2 三类驱动程序详细对比分析4.3 为什么字符设备驱动最重要5 驱动程序的安全性要求5.1 驱动是内核的一部分5.2 驱动对内核的影响5.3 常见驱动安全性问题6 驱动应该这么学6.…

「TCG 规范解读」词汇表

可信计算组织(Ttrusted Computing Group,TCG)是一个非盈利的工业标准组织,它的宗旨是加强在相异计算机平台上的计算环境的安全性。TCG于2003年春成立,并采纳了由可信计算平台联盟(the Trusted Computing Platform Alli…

66岁“硅仙人与23岁“硅神童”创业晶圆厂,年薪17万美元

美国小伙打造出家庭芯片工厂! 溅射、氧化、光刻、蚀刻、绑定、封装全包括! 主人公Sam Zeloof,当时是一名大四学生。Sam Zeloof 是 YouTube和 Twitter 上的网络红人。多年来,他一直在记录自己在车库中制造硅芯片的令人印象深刻的…

BI的作用,体现在企业的哪些方面

对市场异常敏感的商业世界自然不会放过获取数字经济的机会,以国企和央企为首的众多企业开始进行数字化转型,通过信息化建设,部署商业智能BI来完成转型工作。 为什么会出现BI 有一点可能出乎很多人意料,虽然 BI 是因为信息化、数…

【项目实战】从0开始入门JDK源码 - ArrayList源码

一、源码位置 一般来说IDEA配置好JDK以后 ,JDK的源码其实也配置好了,本文是基于JDK1.8的源码说明 rt - java - util - ArrayList 二、 继承关系图 ArrayList是实现了 List接口的 public class ArrayList<E> extends AbstractList<E> implements

消息中间件的概念

中间件(middleware)是基础软件的一大类&#xff0c;属于可复用的软件范畴。中间件在操作系统软件&#xff0c;网络和数据库之上&#xff0c;应用软件之下&#xff0c;总的作用是为处于自己上层的应用软件提供运行于开发的环境&#xff0c;帮助用户灵活、高效的开发和集成复杂的…

Word控件Spire.Doc 【书签】教程(1):在C#/VB.NET:在 Word 中插入书签

Spire.Doc for .NET是一款专门对 Word 文档进行操作的 .NET 类库。在于帮助开发人员无需安装 Microsoft Word情况下&#xff0c;轻松快捷高效地创建、编辑、转换和打印 Microsoft Word 文档。拥有近10年专业开发经验Spire系列办公文档开发工具&#xff0c;专注于创建、编辑、转…

用友YoSuite以高效增长的力量,助力春耕按下生产“快进键”

当下&#xff0c;ChatGPT和元宇宙是当前最热门的科技领域话题&#xff0c;这些高科技领域的发展让我们看到了人工智能与现实的无限可能。民以食为天&#xff0c;农业是国之根本&#xff0c;农业也是关系到每个人生活的重要领域。春耕备耕正当时&#xff0c;让我们拉回视野&…

FlinkCEP(1):复杂事件处理引擎介绍

(1)简介及应用场景: 复杂事件处理(CEP)既是把不同的数据看做不同的事件,并且通过分析事件之间的关系建立起一套事件关系序列库。利用过滤,聚合,关联性,依赖,层次等技术,最终实现由简单关系产生高级事件关系。 复杂事件主要应用场景:主要用于信用卡欺诈检测、用户风险…

Spring-Aop核心技术

前言spring一直以来都是我们Java开发中最核心的一个技术&#xff0c;其中又以ioc和aop为主要技术&#xff0c;本篇文章主要讲一下aop的核心技术&#xff0c;也就是ProxyFactory技术的使用&#xff0c;而基本的jdk动态代理和cglib代理技术并不涉及&#xff0c;如有需要&#xff…

2023前端vue面试题汇总

Vuex有哪几种属性&#xff1f; 有五种&#xff0c;分别是 State、 Getter、Mutation 、Action、 Module state > 基本数据(数据源存放地)getters > 从基本数据派生出来的数据mutations > 提交更改数据的方法&#xff0c;同步actions > 像一个装饰器&#xff0c;包…

【Python】3.3实现多线程

程序Program进程Process线程Thread为完成特定任务而用计算机语言编写的一组计算机能识别和执行的指令的集合。程序是指令、数据及其组织形式的描述&#xff0c;一段静态代码&#xff0c;静态对象。计算机中的程序关于某数据集合上的一次执行过程。进程是程序的实体&#xff0c;…

2022年全国职业院校技能大赛(中职组)网络安全竞赛试题A(10)

目录 竞赛内容 模块A 基础设施设置与安全加固 一、项目和任务描述&#xff1a; 二、服务器环境说明 三、具体任务&#xff08;每个任务得分以电子答题卡为准&#xff09; A-1任务一 登录安全加固&#xff08;Windows, Linux&#xff09; 1.密码策略&#xff08;Windows, …

创作者基金亮点总结|2023 年 2 月

新的一月&#xff0c;新的创作者基金亮点&#xff01;我们把 2 月份的精华作品都聚集在了一个地方&#xff1a;The Sandbox 市场平台&#xff01; 24 项全新资产已经加入创作者基金的作品集啦&#xff01; NFT 作品一览 一起来看看 2023 年 2 月份的作品集吧&#xff5e; 独眼巨…

一个基于 LKM 的 Linux 内核级 rootkit 的实现

博客已迁移至&#xff1a;https://gls.show/ GitHub链接 演示Slides overview rootkit是一种恶意软件&#xff0c;攻击者可以在获得 root 或管理员权限后安装它&#xff0c;从而隐藏入侵并保持root权限访问。rootkit可以是用户级的&#xff0c;也可以是内核级的。关于rootk…

基于Docker部署Dubbo+Nacos服务

一、说明 本文介绍基于 Docker 部署一套 Dubbo Nacos 的微服务环境&#xff0c;并解决容器里的 IP 及端口的访问问题。 基于上文《基于jib-maven-plugin快速构建微服务docker镜像》 中在阿里云镜像仓库构建的镜像来进行部署。 二、部署 Nacos 注册中心 拉取 nacos 注册中心镜…

linux基本功系列之uniq命令实战

文章目录前言一. uniq的命令介绍二. 语法格式及常用选项三. 参考案例3.1 统计行数3.2 对文本进行去重3.3 显示不重复的行3.4 仅显示重复的行&#xff0c;且显示重复的行的所有行3.5 忽略字母大小写总结前言 大家好&#xff0c;又见面了&#xff0c;我是沐风晓月&#xff0c;本…

【vulhub漏洞复现】CVE-2016-3088 ActiveMQ任意文件写入漏洞

一、漏洞详情影响版本&#xff1a;Apache ActiveMQ 5.x~5.14.0漏洞原理&#xff1a;ActiveMQ中存储文件的fileserver接口支持写入文件&#xff0c;但是没有执行权限。可以通过MOVE文件至其他可执行目录下&#xff0c;从而实现文件写入并访问。ActiveMQ在5.12.x~5.13.x版本中&am…

PowerShell Install Rabbitmq

Rabbitmq 前言 RabbitMQ是实现了高级消息队列协议&#xff08;AMQP&#xff09;的开源消息代理软件&#xff08;亦称面向消息的中间件&#xff09;。RabbitMQ服务器是用Erlang语言编写的&#xff0c;而集群和故障转移是构建在开放电信平台框架上的。所有主要的编程语言均有与代…