Tag Archives: Ali Cloud

Installing rabbitmq on alicloud server

1. Install Erlang
Because RabbitMQ is developed in the Erlang language, you install Erlang first

yum install erlang

Download the RPM package

 wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.15/rabbitmq-server-3.6.15-1.el7.noarch.rpm

3. Install after downloading

yum install rabbitmq-server-3.6.15-1.el7.noarch.rpm

4. Restart the service after installation

service rabbitmq-server start

5. Check service status

service rabbitmq-server status

6. Install the plug-in

/sbin/rabbitmq-plugins enable rabbitmq_management 

Restart the service

service rabbitmq-server restart

At this point, you can go to http://ip:15672 to access the page. The default password is “guest/guest”.
However, starting with version 3.3.0, access other than using guest/guest to log in to localhost is prohibited. The solution is to find
Rabbitmq_server-3.6.15 /ebin/ Rabbitmq_server-3.6.15 /ebin/ Rabbit.app

{loopback_users, [<<"guest">>]},

Is amended as:

{loopback_users, []},

Then restart it.
7. Access

PHP link database error PHP_ network_ getaddresses: getaddrinfo failed: Name or service not known

error:

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

environment: thinkphp framework, Linux, ali cloud RDS database

ping link address normal:

error reporting process: access the background address, most are normal access, refresh 10-20 times may appear 1-2 error, not continuous error

solution 1:

restart php-fpm service

service php-fpm restart 

the original view: https://stackoverflow.com/questions/2661546/php-network-getaddresses-getaddrinfo-failed-name-or-service-not-known

special thanks to: https://blog.csdn.net/qq_37500838/article/details/85008432#commentBox

solution 2:

configure DNS resolution to 114.114.114.114

check DNS configuration: cat /etc/resolv.conf

I use the first solution, the second solution is temporarily useless, configuration method can be found on the Internet

Alicloud centos8 reports an error “error: failed to synchronize cache for repo ‘EPEL modular'”

ali cloud has been online centos8 system, the 8 series is relatively new, ali cloud bug is still there, use yum unexpectedly can not, the system default did not install git, want to install yum install git directly Error “Error: Failed to synchronize cache for repo ‘epel-modular'”, extend source Error, baidu has no solution, it can only solve by itself!

the solution is simple:

scheme 1: directly delete /etc/yum.repos. D (first backup)

directory epel beginning file

would be yum.

scheme 2:

yum succeeded but the prompt program does not exist and cannot install

do not delete /etc/yum.repos. D inside the file

edit

vi /etc/resolv.conf

and

nameserver 114.114.114.114

save

and then execute yum successfully

ali cloud recently launched centos8 can’t yum, DNS can’t resolve the extended library domain name. Hey, their family is a little careless about their operation and maintenance