Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of Ubuntu Environment deployment in SpringCloud

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the example analysis of the deployment of the Ubuntu environment in SpringCloud, which has a certain reference value, and interested friends can refer to it. I hope you can learn a lot after reading this article.

Deployment of SpringCloud-related environment

RabbitMQ deployment Redis deployment Nacos deployment

RabbitMQ

Apt-get install is not installed as an update installation package. Download the corresponding version of the installation package from the official website and install it by command.

Before installing RabbitMQ, you need the support of the Erlang environment and download the corresponding Erlang version of the package.

Erlang

To avoid version conflicts, I first deleted the previous erlang environment, apt-remove erlang, but cleaned it up completely.

Delete erlang under Ubuntu

1.which erl2.sudo rm-rf / usr/bin/erl3.sudo rm-rf / usr/lib/erlang

Then install the corresponding version of the erlang package

Dpkg-I installation package. Deb

View erlang version sudo erl

Install RabbitMQ

Official website: www.rabbitmq.com/install-deb.

Download the RabbitMQ package: packagecloud.io/rabbitmq/ra …

Dpkg-I RabbitMQ.deb

Problems encountered in the installation:

1. RabbitMQ startup error:-unable to connect to epmd on xxxx: timeout (timed out). Solution: sudo vi / etc/hosts, add 127.0.0.1 example,example as RabbitMQ instance

Root@example:/var/lib/rabbitmq# cd mnesia/root@example:/var/lib/rabbitmq/mnesia# lsrabbit@example rabbit@example-feature_flags rabbit@example.pid rabbit@example-plugins-expand

Add ports to Aliyun. Local access: localhost:15672. You can add guest/guest by default. For security reasons, remote access guest does not take effect by default. Need to add an additional user, rabbitmqctl add_user username and password.

To enter the management interface, you need to activate Access permissions for users.

Redis

Download the installation package: Redis official website redis.io/download

Extract it to the / usr/lcoal directory, go to the bin directory. / redis-server, start the server and

Connect to the client, execute. / redis-client in the bin directory, and start the client

Problems encountered 1. Problems with temporary startup and permanent startup after changing the password. Solution: temporary startup using command mode

Sudo redis-cli-p 637 password whether to set password command sudo config get requirepass# set password command sudo config set requirepass 12345 verify password sudo auth password

2. Permanent effective mode

After entering the redis.conf file, find the requirepass parameter, set the password, and restart the service.

3. Backend activation takes effect.

Sudo / user/local/redis/binsudo / redis-server. / redis.conf

Nacos

Install in the way of installation package

The only thing to pay attention to is that under the Ubuntu environment, the bash command is used to install.

Bash-f. / startup.sh-m standalone

Thank you for reading this article carefully. I hope the article "sample Analysis of Ubuntu Environment deployment in SpringCloud" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report