Centos系统安装RabbitMQ消息中间件

news2024/12/27 14:56:40

记录一下在centos7.x下面安装RabbitMQ消息中间件
RabbitMQ是一个开源而且遵循 AMQP协议实现的基于 Erlang语言编写,因此安装RabbitMQ之前是需要部署安装Erlang环境的

先安装Erlang

https://packagecloud.io/rabbitmq/

点进去可以看到
rabbitmq
因为使用的centos是7.x版本的,所以搜寻el7 (el8表示centos8.x下面安装的) 严格遵循版本
rabbitmq
访问进去

https://packagecloud.io/rabbitmq/erlang/packages/el/7/erlang-23.3.4.10-1.el7.x86_64.rpm?distro_version_id=140

特别爽安装步骤都给出来了,还有wget方式的
rabbitmq

[root@myw ~]# curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
Detected operating system as centos/7.
Checking for curl...
Detected curl...
Downloading repository file: https://packagecloud.io/install/repositories/rabbitmq/erlang/config_file.repo?os=centos&dist=7&source=script
done.
Installing pygpgme to verify GPG signatures...
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: 100.125.0.40
 * extras: 100.125.0.40
 * updates: 100.125.0.40
base                                                                                                                                                                                         | 3.6 kB  00:00:00     
extras                                                                                                                                                                                       | 2.9 kB  00:00:00     
rabbitmq_erlang-source/signature                                                                                                                                                             |  819 B  00:00:00     
Retrieving key from https://packagecloud.io/rabbitmq/erlang/gpgkey
Importing GPG key 0xDF309A0B:
 Userid     : "https://packagecloud.io/rabbitmq/erlang (https://packagecloud.io/docs#gpg_signing) <support@packagecloud.io>"
 Fingerprint: 2ebd e413 d3ce 5d35 bcd1 5b7c 71c6 3471 df30 9a0b
 From       : https://packagecloud.io/rabbitmq/erlang/gpgkey
rabbitmq_erlang-source/signature                                                                                                                                                             |  951 B  00:00:00 !!! 
updates                                                                                                                                                                                      | 2.9 kB  00:00:00     
(1/2): extras/7/x86_64/primary_db                                                                                                                                                            | 249 kB  00:00:00     
(2/2): updates/7/x86_64/primary_db                                                                                                                                                           |  19 MB  00:00:00     
rabbitmq_erlang-source/primary                                                                                                                                                               |  175 B  00:00:01     
Package pygpgme-0.3-9.el7.x86_64 already installed and latest version
Nothing to do
Installing yum-utils...
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: 100.125.0.40
 * extras: 100.125.0.40
 * updates: 100.125.0.40
Resolving Dependencies
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-54.el7_8 will be installed
--> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-54.el7_8.noarch
--> Processing Dependency: libxml2-python for package: yum-utils-1.1.31-54.el7_8.noarch
--> Running transaction check
---> Package libxml2-python.x86_64 0:2.9.1-6.el7_9.6 will be installed
--> Processing Dependency: libxml2 = 2.9.1-6.el7_9.6 for package: libxml2-python-2.9.1-6.el7_9.6.x86_64
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be installed
--> Running transaction check
---> Package libxml2.x86_64 0:2.9.1-6.el7.5 will be updated
---> Package libxml2.x86_64 0:2.9.1-6.el7_9.6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================================================================
 Package                                               Arch                                          Version                                                   Repository                                      Size
====================================================================================================================================================================================================================
Installing:
 yum-utils                                             noarch                                        1.1.31-54.el7_8                                           base                                           122 k
Installing for dependencies:
 libxml2-python                                        x86_64                                        2.9.1-6.el7_9.6                                           updates                                        247 k
 python-kitchen                                        noarch                                        1.1.1-5.el7                                               base                                           267 k
Updating for dependencies:
 libxml2                                               x86_64                                        2.9.1-6.el7_9.6                                           updates                                        668 k

Transaction Summary
====================================================================================================================================================================================================================
Install  1 Package  (+2 Dependent packages)
Upgrade             ( 1 Dependent package)

Total download size: 1.3 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/4): libxml2-python-2.9.1-6.el7_9.6.x86_64.rpm                                                                                                                                             | 247 kB  00:00:00     
(2/4): libxml2-2.9.1-6.el7_9.6.x86_64.rpm                                                                                                                                                    | 668 kB  00:00:00     
(3/4): yum-utils-1.1.31-54.el7_8.noarch.rpm                                                                                                                                                  | 122 kB  00:00:00     
(4/4): python-kitchen-1.1.1-5.el7.noarch.rpm                                                                                                                                                 | 267 kB  00:00:00     
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                               9.8 MB/s | 1.3 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python-kitchen-1.1.1-5.el7.noarch                                                                                                                                                                1/5 
  Updating   : libxml2-2.9.1-6.el7_9.6.x86_64                                                                                                                                                                   2/5 
  Installing : libxml2-python-2.9.1-6.el7_9.6.x86_64                                                                                                                                                            3/5 
  Installing : yum-utils-1.1.31-54.el7_8.noarch                                                                                                                                                                 4/5 
  Cleanup    : libxml2-2.9.1-6.el7.5.x86_64                                                                                                                                                                     5/5 
  Verifying  : libxml2-2.9.1-6.el7_9.6.x86_64                                                                                                                                                                   1/5 
  Verifying  : python-kitchen-1.1.1-5.el7.noarch                                                                                                                                                                2/5 
  Verifying  : yum-utils-1.1.31-54.el7_8.noarch                                                                                                                                                                 3/5 
  Verifying  : libxml2-python-2.9.1-6.el7_9.6.x86_64                                                                                                                                                            4/5 
  Verifying  : libxml2-2.9.1-6.el7.5.x86_64                                                                                                                                                                     5/5 

Installed:
  yum-utils.noarch 0:1.1.31-54.el7_8                                                                                                                                                                                

Dependency Installed:
  libxml2-python.x86_64 0:2.9.1-6.el7_9.6                                                                    python-kitchen.noarch 0:1.1.1-5.el7                                                                   

Dependency Updated:
  libxml2.x86_64 0:2.9.1-6.el7_9.6                                                                                                                                                                                  

Complete!
Generating yum cache for rabbitmq_erlang...
Importing GPG key 0xDF309A0B:
 Userid     : "https://packagecloud.io/rabbitmq/erlang (https://packagecloud.io/docs#gpg_signing) <support@packagecloud.io>"
 Fingerprint: 2ebd e413 d3ce 5d35 bcd1 5b7c 71c6 3471 df30 9a0b
 From       : https://packagecloud.io/rabbitmq/erlang/gpgkey
Generating yum cache for rabbitmq_erlang-source...

The repository is setup! You can now install packages.
[root@myw ~]# 
[root@myw ~]# sudo yum install erlang-23.3.4.10-1.el7.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: 100.125.0.40
 * extras: 100.125.0.40
 * updates: 100.125.0.40
Resolving Dependencies
--> Running transaction check
---> Package erlang.x86_64 0:23.3.4.10-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================================================================
 Package                                       Arch                                          Version                                                   Repository                                              Size
====================================================================================================================================================================================================================
Installing:
 erlang                                        x86_64                                        23.3.4.10-1.el7                                           rabbitmq_erlang                                         19 M

Transaction Summary
====================================================================================================================================================================================================================
Install  1 Package

Total download size: 19 M
Installed size: 34 M
Is this ok [y/d/N]: y
Downloading packages:
erlang-23.3.4.10-1.el7.x86_64.rpm                                                                                                                                                            |  19 MB  00:00:06     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : erlang-23.3.4.10-1.el7.x86_64                                                                                                                                                                    1/1 
  Verifying  : erlang-23.3.4.10-1.el7.x86_64                                                                                                                                                                    1/1 

Installed:
  erlang.x86_64 0:23.3.4.10-1.el7                                                                                                                                                                                   

Complete!
[root@myw ~]# 

查看是否安装成功

[root@myw ~]# erl -version
Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 11.2.2.9
[root@myw ~]# 

记录一下这2条

curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash

sudo yum install erlang-23.3.4.10-1.el7.x86_64

安装RabbitMq

回到起初页面,选择rabbitmq-server点进去搜索el7
rabbitmq
这里确认下版本要和安装的erlang对应,相对特别重要,这里选择的是没问题的,依旧2个步骤
rabbitmq

[root@myw ~]# curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
Detected operating system as centos/7.
Checking for curl...
Detected curl...
Downloading repository file: https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/config_file.repo?os=centos&dist=7&source=script
done.
Installing pygpgme to verify GPG signatures...
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: 100.125.0.40
 * extras: 100.125.0.40
 * updates: 100.125.0.40
rabbitmq_erlang/x86_64/signature                                                                                                                                                             |  833 B  00:00:00     
rabbitmq_erlang/x86_64/signature                                                                                                                                                             | 1.8 kB  00:00:00 !!! 
rabbitmq_erlang-source/signature                                                                                                                                                             |  819 B  00:00:00     
rabbitmq_erlang-source/signature                                                                                                                                                             |  951 B  00:00:00 !!! 
rabbitmq_rabbitmq-server-source/signature                                                                                                                                                    |  836 B  00:00:00     
Retrieving key from https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
Importing GPG key 0x4D206F89:
 Userid     : "https://packagecloud.io/rabbitmq/rabbitmq-server (https://packagecloud.io/docs#gpg_signing) <support@packagecloud.io>"
 Fingerprint: 8c69 5b02 19af deb0 4a05 8ed8 f4e7 8920 4d20 6f89
 From       : https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
rabbitmq_rabbitmq-server-source/signature                                                                                                                                                    | 1.0 kB  00:00:00 !!! 
rabbitmq_rabbitmq-server-source/primary                                                                                                                                                      |  175 B  00:00:01     
Package pygpgme-0.3-9.el7.x86_64 already installed and latest version
Nothing to do
Installing yum-utils...
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: 100.125.0.40
 * extras: 100.125.0.40
 * updates: 100.125.0.40
Package yum-utils-1.1.31-54.el7_8.noarch already installed and latest version
Nothing to do
Generating yum cache for rabbitmq_rabbitmq-server...
Importing GPG key 0x4D206F89:
 Userid     : "https://packagecloud.io/rabbitmq/rabbitmq-server (https://packagecloud.io/docs#gpg_signing) <support@packagecloud.io>"
 Fingerprint: 8c69 5b02 19af deb0 4a05 8ed8 f4e7 8920 4d20 6f89
 From       : https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
Generating yum cache for rabbitmq_rabbitmq-server-source...

The repository is setup! You can now install packages.
[root@myw ~]# 
[root@myw ~]# sudo yum install rabbitmq-server-3.10.0-1.el7.noarch
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: 100.125.0.40
 * extras: 100.125.0.40
 * updates: 100.125.0.40
Resolving Dependencies
--> Running transaction check
---> Package rabbitmq-server.noarch 0:3.10.0-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================================================================
 Package                                             Arch                                       Version                                          Repository                                                    Size
====================================================================================================================================================================================================================
Installing:
 rabbitmq-server                                     noarch                                     3.10.0-1.el7                                     rabbitmq_rabbitmq-server                                      14 M

Transaction Summary
====================================================================================================================================================================================================================
Install  1 Package

Total download size: 14 M
Installed size: 19 M
Is this ok [y/d/N]: y
Downloading packages:
rabbitmq-server-3.10.0-1.el7.noarch.rpm                                                                                                                                                      |  14 MB  00:00:05     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : rabbitmq-server-3.10.0-1.el7.noarch                                                                                                                                                              1/1 
  Verifying  : rabbitmq-server-3.10.0-1.el7.noarch                                                                                                                                                              1/1 

Installed:
  rabbitmq-server.noarch 0:3.10.0-1.el7                                                                                                                                                                             

Complete!
[root@myw ~]# 

记录下2条安装

curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash

sudo yum install rabbitmq-server-3.10.0-1.el7.noarch

把RabbitMQ的web管理界面插件加上(web管理界面比起用指令操作更方便)

rabbitmq-plugins enable rabbitmq_management
[root@myw ~]# rabbitmq-plugins enable rabbitmq_management
Enabling plugins on node rabbit@myw:
rabbitmq_management
The following plugins have been configured:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch
Applying plugin configuration to rabbit@myw...
The following plugins have been enabled:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch

set 3 plugins.
Offline change; changes will take effect at broker restart.
[root@myw ~]# 

启动指令

systemctl start rabbitmq-server
[root@myw ~]# systemctl start rabbitmq-server
[root@myw ~]# netstat -lnp|grep 5672
tcp        0      0 0.0.0.0:25672           0.0.0.0:*               LISTEN      22993/beam.smp      
tcp        0      0 0.0.0.0:15672           0.0.0.0:*               LISTEN      22993/beam.smp      
tcp6       0      0 :::5672                 :::*                    LISTEN      22993/beam.smp      
[root@myw ~]# 

开机自启动

systemctl enable rabbitmq-server

重启指令

systemctl restart rabbitmq-server

停止指令

systemctl stop rabbitmq-server

取消开机自启指令

systemctl disable rabbitmq-server

启动后访问web界面

127.0.0.1:15672

rabbitmq
默认账号密码是guest guest 因为仅仅支持本地登录,所以放在云端安装,可以单独创建用户,guest用户不用理会它。

RabbitMQ常见操作

用户管理

1.查询RabbitMQ的用户

rabbitmqctl list_users
[root@myw ~]# rabbitmqctl list_users
Listing users ...
user	tags
mywroot	[administrator]
guest	[administrator]
[root@myw ~]# 

2.添加新用户(授权和加角色)

rabbitmqctl add_user mywadmin 123456

跟着的是账号mywadmin 后面是密码123456

[root@myw ~]# rabbitmqctl add_user mywadmin 123456
Adding user "mywadmin" ...
Done. Don't forget to grant the user permissions to some virtual hosts! See 'rabbitmqctl help set_permissions' to learn more.
[root@myw ~]# 

分配管理员的角色

rabbitmqctl set_user_tags mywadmin administrator
[root@myw ~]# rabbitmqctl set_user_tags mywadmin administrator
Setting tags for user "mywadmin" to [administrator] ...
[root@myw ~]# rabbitmqctl list_users
Listing users ...
user	tags
mywroot	[administrator]
mywadmin	[administrator]
guest	[administrator]
[root@myw ~]# 

分配所有权限

rabbitmqctl set_permissions -p / mywadmin ".*" ".*" ".*"
[root@myw ~]# rabbitmqctl set_permissions -p / mywadmin ".*" ".*" ".*"
Setting permissions for user "mywadmin" in vhost "/" ...
[root@myw ~]# 

3.指引RabbitMQ的broker认证用户和密码

rabbitmqctl authenticate_user mywadmin 123456
[root@myw ~]# rabbitmqctl authenticate_user mywadmin 123456
Authenticating user "mywadmin" ...
Success
[root@myw ~]# 

4.修改指定用户的密码(很少操作)

rabbitmqctl change_password mywadmin 12345678
[root@myw ~]# rabbitmqctl change_password mywadmin 12345678
Changing password for user "mywadmin" ...
[root@myw ~]# 

5.清除指定用户密码(很少操作)

rabbitmqctl clear_password mywadmin
[root@myw ~]# rabbitmqctl clear_password mywadmin
Clearing password for user "mywadmin" ...
[root@myw ~]# rabbitmqctl list_users
Listing users ...
user	tags
mywroot	[administrator]
mywadmin	[administrator]
guest	[administrator]
[root@myw ~]# 

6.删除指定用户

rabbitmqctl delete_user mywadmin
[root@myw ~]# rabbitmqctl delete_user mywadmin
Deleting user "mywadmin" ...
[root@myw ~]# rabbitmqctl list_users
Listing users ...
user	tags
mywroot	[administrator]
guest	[administrator]
[root@myw ~]# 

权限管理

1.给用户授权

rabbitmqctl set_permissions -p / mywadmin ".*" ".*" ".*"
rabbitmqctl set_permissions -p sthvhost mywadmin "^mywqueue.*" ".*" ".*"

授权指令的格式

rabbitmqctl set_permissions [-p vhost] {user} {conf} {write} {read}

[-p vhost] 表示给待授权用户的vhost(虚拟主机)名称 默认是"/"
{user}表示待授权的用户 mywadmin

{conf}表示待授权用户的配置权限 正则表达式 一般都是给的 “.*”

{write}表示待授权用户的写权限 正则表达式 一般都是给的 “.*”

{read}表示待授权用户的读权限 正则表达式 一般都是给的 “.*”

2.查询指定vhost(虚拟主机)的所有用户的权限 默认的写法是"/"

rabbitmqctl list_permissions [-p vhost]

rabbitmqctl list_permissions -p /
[root@myw ~]# rabbitmqctl list_permissions -p /
Listing permissions for vhost "/" ...
user	configure	write	read
mywadmin	.*	.*	.*
mywroot	.*	.*	.*
guest	.*	.*	.*
[root@myw ~]# 

3.查询指定用户的权限

rabbitmqctl list_user_permissions {username}

rabbitmqctl list_user_permissions mywadmin
[root@myw ~]# rabbitmqctl list_user_permissions mywadmin
Listing permissions for user "mywadmin" ...
vhost	configure	write	read
/	.*	.*	.*
[root@myw ~]# 

4.清除指定vhost的权限

rabbitmqctl clear_permissions [-p vhost] {username}

rabbitmqctl clear_permissions -p / mywadmin
[root@myw ~]# rabbitmqctl clear_permissions -p / mywadmin
Clearing permissions for user "mywadmin" in vhost "/" ...
[root@myw ~]# rabbitmqctl list_user_permissions mywadmin
Listing permissions for user "mywadmin" ...

[root@myw ~]# 

vhost虚拟主机管理

1.创建虚拟主机

rabbitmqctl add_vhost vhost_myw
[root@myw ~]# rabbitmqctl add_vhost vhost_myw
Adding vhost "vhost_myw" ...
[root@myw ~]# 

2.查看虚拟主机

rabbitmqctl list_vhosts

rabbitmqctl list_vhosts name tracing

主要显示虚拟主机的名称

[root@myw ~]# rabbitmqctl list_vhosts
Listing vhosts ...
name
vhost_myw
/
[root@myw ~]# 
[root@myw ~]# rabbitmqctl list_vhosts name tracing
Listing vhosts ...
name	tracing
vhost_myw	false
/	false
[root@myw ~]# 

3.删除虚拟主机(慎重)

rabbitmqctl delete_vhost vhost_myw
[root@myw ~]# rabbitmqctl delete_vhost vhost_myw
Deleting vhost "vhost_myw" ...
[root@myw ~]# 

插件管理(主要是web管理)

1.查看当前的插件使用状态

rabbitmq-plugins list
[root@myw ~]# rabbitmq-plugins list
Listing plugins with pattern ".*" ...
 Configured: E = explicitly enabled; e = implicitly enabled
 | Status: * = running on rabbit@myw
 |/
[  ] rabbitmq_amqp1_0                  3.10.0
[  ] rabbitmq_auth_backend_cache       3.10.0
[  ] rabbitmq_auth_backend_http        3.10.0
[  ] rabbitmq_auth_backend_ldap        3.10.0
[  ] rabbitmq_auth_backend_oauth2      3.10.0
[  ] rabbitmq_auth_mechanism_ssl       3.10.0
[  ] rabbitmq_consistent_hash_exchange 3.10.0
[  ] rabbitmq_event_exchange           3.10.0
[  ] rabbitmq_federation               3.10.0
[  ] rabbitmq_federation_management    3.10.0
[  ] rabbitmq_jms_topic_exchange       3.10.0
[E*] rabbitmq_management               3.10.0
[e*] rabbitmq_management_agent         3.10.0
[  ] rabbitmq_mqtt                     3.10.0
[  ] rabbitmq_peer_discovery_aws       3.10.0
[  ] rabbitmq_peer_discovery_common    3.10.0
[  ] rabbitmq_peer_discovery_consul    3.10.0
[  ] rabbitmq_peer_discovery_etcd      3.10.0
[  ] rabbitmq_peer_discovery_k8s       3.10.0
[  ] rabbitmq_prometheus               3.10.0
[  ] rabbitmq_random_exchange          3.10.0
[  ] rabbitmq_recent_history_exchange  3.10.0
[  ] rabbitmq_sharding                 3.10.0
[  ] rabbitmq_shovel                   3.10.0
[  ] rabbitmq_shovel_management        3.10.0
[  ] rabbitmq_stomp                    3.10.0
[  ] rabbitmq_stream                   3.10.0
[  ] rabbitmq_stream_management        3.10.0
[  ] rabbitmq_top                      3.10.0
[  ] rabbitmq_tracing                  3.10.0
[  ] rabbitmq_trust_store              3.10.0
[e*] rabbitmq_web_dispatch             3.10.0
[  ] rabbitmq_web_mqtt                 3.10.0
[  ] rabbitmq_web_mqtt_examples        3.10.0
[  ] rabbitmq_web_stomp                3.10.0
[  ] rabbitmq_web_stomp_examples       3.10.0
[root@myw ~]# 

E = explicitly enabled; e = implicitly enabled

2.启动web页面插件

rabbitmq-plugins enable rabbitmq_management

3.关闭web页面插件

rabbitmq-plugins disable rabbitmq_management
[root@myw ~]# rabbitmq-plugins disable rabbitmq_management
Disabling plugins on node rabbit@myw:
rabbitmq_management
All plugins have been disabled.
Applying plugin configuration to rabbit@myw...
The following plugins have been disabled:
  rabbitmq_management_agent
  rabbitmq_web_dispatch
  rabbitmq_management

stopped 3 plugins.
[root@myw ~]# 

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

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

相关文章

内网渗透(六十二)之 NTLM Realy 攻击

NTLM Realy 攻击 NTLM Realy 攻击其实应该称为Net-NTLM Realy 攻击,它发生在NTLM认证的第三步,在Response 消息中存在Net-NTLM Hash,当攻击者获得了 Net-NTLM Hash 后,可以重放Net-NTLM Hash 进行中间人攻击。 NTLM Realy 流程如图所示,攻击者作为中间人在客户端和服务器…

asp.net基于web的音乐管理网站dzkf17A9程序

本系统主要包含了等系统用户管理、公告信息管理、音乐资讯管理、音乐类型管理多个功能模块。下面分别简单阐述一下这几个功能模块需求。 管理员的登录模块&#xff1a;管理员登录系统对本系统其他管理模块进行管理。 用户的登录模块&#xff1a;用户登录本系统&#xff0c;对个…

如何免费使用ChatGPT进行学术润色?你需要这些指令...

目录 1 ChatGPT4.0上线2 中科院ChatGPT学术版3 学术润色Prompts 1 ChatGPT4.0上线 2023年3月14日&#xff0c;OpenAI发布ChatGPT4.0。ChatGPT4.0比3.5更大&#xff0c;拥有更多的参数。这意味着它可以更好地捕捉和理解语言的复杂性和细微差别&#xff0c;而且ChatGPT4.0是多模…

【五一创作】《嵌入式系统》知识总结6:GPIO的结构和功能

GPIO的结构和功能 1.STM32提供通用的输入输出引脚&#xff08;GPIO&#xff09; • 输出高低电平控制外设 • 输入0、1检测外设状态 2.可配置为复用的输入输出引脚&#xff08;AFIO&#xff09; • 大多数GPIO都有默认的复用功能&#xff1a; 可作为片上外设&#xff08;如…

基于MobileNet的人脸表情识别系统(MATLAB GUI版+原理详解)

摘要&#xff1a;本篇博客介绍了基于MobileNet的人脸表情识别系统&#xff0c;支持图片识别、视频识别、摄像头识别等多种形式&#xff0c;通过GUI界面实现表情识别可视化展示。首先介绍了表情识别任务的背景与意义&#xff0c;总结近年来利用深度学习进行表情识别的相关技术和…

android基础知识

架构&#xff1a; 应用框架层&#xff08;Java API Framework&#xff09;所提供的主要组件&#xff1a; 名称功能描述Activity Manager&#xff08;活动管理器&#xff09;管理各个应用程序生命周期&#xff0c;以及常用的导航回退功能Location Manager&#xff08;位置管理器…

智能是逻辑吗?

智能是指人或机器能够理解、学习、推理、解决问题和适应环境的能力。而逻辑是一种推理方式&#xff0c;它是智能中的一部分&#xff0c;帮助我们正确地推理和理解信息。逻辑能够提高我们的思考能力、解决问题的能力和决策能力&#xff0c;但智能还包括其他方面&#xff0c;如感…

数据结构课程——第一次作业

T1:Gram_ham实现凸包算法&#xff1a; &#xff08;1&#xff09;思路&#xff1a; &#xff08;2&#xff09;代码&#xff1a; #include<iostream> #include<string> #include<vector> #include<algorithm> #include<stack>using namespace …

存储网络架构——DAS、NAS、SAN、分布式组网架构

目录 DAS直连式存储 NAS网络附加存储 SAN存储 存储区域网络 分布式存储组网 DAS直连式存储 DAS遇到的挑战 NAS网络附加存储 向主机提供文件服务&#xff1b;文件系统由存储设备维护&#xff0c;用户访问文件系统&#xff0c;不直接访问底层存储 拥有所有主机上文件与底层存储空…

图像复原与重建

文章目录 一、实验目的二、实验内容1. 噪声图像及其直方图。2. 空间噪声滤波器。3. 逆滤波。 一、实验目的 了解一些常用随机噪声的生成方法。掌握根据指定退化函数对图像进行退化的方法。掌握当模糊图像只存在噪声时的几种滤波复原方法。掌握当模糊图像同时存在线性退化和噪声…

OpenCV C++案例实战三十一《动态时钟》

OpenCV C案例实战三十一《动态时钟》 前言一、绘制表盘二、绘制刻线三、获取系统时间四、结果展示五、源码总结 前言 本案例将使用OpenCV C实现动态时钟效果。原理也很简单&#xff0c;主要分为绘制表盘、以及获取系统时间两步。 一、绘制表盘 首先为了效果显示美观一点&…

数据驱动测试、结果报告生成,Python接口自动化测试全方位解析

B站首推&#xff01;2023最详细自动化测试合集&#xff0c;小白皆可掌握&#xff0c;让测试变得简单、快捷、可靠https://www.bilibili.com/video/BV1ua4y1V7Db 目录 一、背景 二、准备工作 三、编写测试脚本 四、数据驱动测试 五、结果报告生成 六、总结 七、参考链接 …

线性表,顺序表,链表

线性表 线性表&#xff08;linear list&#xff09;是n个具有相同特性的数据元素的有限序列 线性表是一种在实际中广泛使 用的数据结构&#xff0c;常见的线性表&#xff1a;顺序表、链表、栈、队列、字符串... 线性表在逻辑上是线性结构&#xff0c;也就说是连续的一条直线 …

阿里云对象存储OSS使用 HTTPS访问

阿里云对象存储OSS使用 HTTPS ​ 在部署项目的时候遇到了一个问题&#xff0c;就是https页面访问http资源报错的问题。 问题&#xff1a; 写了一个前端项目在云服务器部署&#xff0c;我的域名申请了ssl证书并在云服务器nginx部署&#xff0c;所以页面是https页面&#xff0c;但…

Ansible的脚本-playbook 剧本

目录 1.剧本&#xff08;playbook&#xff09; 1.playbook介绍 2. playbooks 的组成 3.案例&#xff1a;编写httpd的playbook 4.定义、引用变量 5.指定远程主机sudo切换用户 6.when条件判断 7.迭代 2.playbook的模块 1.Templates 模块 2.tags 模块 3.Roles 模块 1.…

TCP协议——这篇文章GET全

TCP协议文章目录 1. UDP和TCP协议的比较1.1 UDP协议1.2 TCP协议1.3 特点比较 2. TCP协议建立连接的三次握手3. TCP协议断开连接的四次挥手4. TCP协议的几个特性4.1 确认应答4.2 超时重传4.3 连接管理4.4 滑动窗口4.5 流量控制4.6 拥塞控制 1. UDP和TCP协议的比较 UDP和TCP作为…

多维时序 | MATLAB实现BP神经网络多变量时间序列预测(考虑历史特征的影响,多指标、多图输出)

多维时序 | MATLAB实现BP神经网络多变量时间序列预测(考虑历史特征的影响,多指标、多图输出) 目录 多维时序 | MATLAB实现BP神经网络多变量时间序列预测(考虑历史特征的影响,多指标、多图输出)预测效果基本介绍程序设计学习总结参考资料预测效果 基本介绍 MATLAB实现BP神经网…

Java中的Reflection(反射)、暴力反射

文章目录 1. 反射(Reflection)的概念1.1 反射的出现背景1.2 反射概述1.3 Java反射机制研究及应用1.4 反射相关的主要API1.5 反射的优缺点 2. Class类并获取Class实例2.1 理解Class2.1.1 理论上2.1.2 内存结构上 2.2 获取Class类的实例(四种方法)2.3 哪些类型可以有Class对象2.4…

Windows安装rabbitmq

Windows安装rabbitmq 一、下载1、下载erlang2、下载rabbitmq 二、安装1、安装erlang2、安装rabbitmq3、简单使用 一、下载 1、下载erlang 点击右侧下载地址&#xff0c;跳转下载&#xff0c;点击下载 跳转后&#xff0c;点击download windows install即可下载。 2、下载rab…

微服务---分布式缓存redis进阶-redis集群部署

分布式缓存 – 基于Redis集群解决单机Redis存在的问题 单机的Redis存在四大问题&#xff1a; 0.学习目标 1.Redis持久化 Redis有两种持久化方案&#xff1a; RDB持久化AOF持久化 1.1.RDB持久化 RDB全称Redis Database Backup file&#xff08;Redis数据备份文件&#xf…