Some pits in the middleware installation process

1. General

2、Nginx

进入Nginx所在的配置文件文件夹:
查看Nginx的版本号:nginx -V
启动Nginx:start nginx   或者  ./nginx
快速停止或关闭Nginx:nginx -s stop
正常停止或关闭Nginx:nginx -s quit
配置文件修改重装载命令:./nginx -s reload

3 、 Redis

  • Question 1 : Redis exit:

    • 1. Enter first: redis-cli
    • 2. Exit again: shutdown
  • Question 2 : Redis sentry startup error No such master with specified name

  • Question 3 : Redis sentinel mode, the master node is down, and the slave node cannot be changed to the master node

    • Solution: notice whether the redis.conf file is written correctly:
      • bind 127.0.0.1 10.134.33.45 (the actual IP of the machine)
  • Question 4 : Redis sentinel mode, the master node is down, and after the slave node changes to the master node, other slave nodes think that the node is down

3、Rabbitmq

  • 问题1 : ERROR: node with name “rabbit” already running on “lhg1”

  • Question 2 : After restarting rabbitmq, the username is lost and the user cannot log in

    • Solution: Find or create a new rabbitmq-env.conf under the specified path (for example: /etc/rabbitmq), the content is NODENAME=rabbit@rabbitmqnode01
  • Question 3 : Rabbitmq startup encountered a lot of error correction ideas

    • Solution:
      • 1. Confirm the permissions and path of .erlang.cookic
        • Permission is generally 777 or 400
        • The path is either /root or the installation location (this is included in the error message)
      • 2. Force reset
        • rabbitmqctl force_reset
      • 3. Configure the ip address of each node in the cluster first, and then use the instruction to join the cluster
        • abbitmqctl join_cluster rabbit@A hostname

Guess you like

Origin blog.csdn.net/ljfirst/article/details/107931994