Rabbitmq configuration and switching under multiple vhosts

1.1 yml configuration file spring: rabbitmq: # host: amqp-cn-9lb31jq7o019.cn-beijing.amqp-14.vpc.mq.amqp.aliyuncs.com host: 127.0.0.1 port: 5672 username: guest password: guest # username: MjphbXFwLWNuLTlsYjMxanE3bzAxOTpMVEFJNXRTVFhoWVpnODRlWUg5aHJyRjI= # password: RTI5MzlFQ0FFQzM5Q0I3MkM0MUEzNDc1M0ZFMzU0MkIwNjRFQzg4MToxNjc1MzE4OTMwMTMx # virtual-host: /lk virtual-host: / first: host: 127.0.0.1 port: 5672 username: guest password: guest virtual-host: /xinaohealth 1.2 Configuration class (need to manually create switches and queues, etc.) import com.laikang.cloud.community.server.common.constants.Constant; import org.springframework.amqp.core.*; import […]

Feign dynamically specifies routing hosts based on parameters

feign dynamically specifies the routing host based on parameters Background There is a recent demand on the project: define a host address field through a public basic entity, and feign will be called according to the dynamic change of the specific value when calling remotely. Official solution The first option Official support for dynamically specifying […]

Intranet security: Cobalt Strike tool penetrates multi-layer intranet hosts. (Forward || Reverse)

Intranet security: Cobalt Strike tool penetrates multi-layer intranet hosts. Cobalt Strike is a metasploit-based GUI framework penetration tool, also known as CS by the industry. It has a variety of protocol host online methods, integrates port forwarding, service scanning, automatic overflow, multi-mode port monitoring, winexe Trojan generation, win dll Trojan generation, java Trojan generation, office […]

When a Mac file is permanently locked, such as: the hosts file cannot be modified and locked and cannot be unlocked

1. The process of solving “hosts file cannot be modified and edited” 1.1 Personal problems I want to add configuration in the hosts file, and then I will directly vim the /etc/hosts file according to the usual operation, save it directly after modification, and it will become popular “/private/etc/hosts” E212: Can’t open file for writing […]

zabbix automatically adds hosts

zabbix distributed automatically adds hosts and templates There are two ways to automatically add hosts Network discovery (Network discovery) server-agent server is very busy; Automatic registration ( Active agent auto-registration ) The agent sends a request to add a host to the sever Experiment ideas zabbix automatically adds hosts Configure the server side (configure the […]

Kali-linux identifies active hosts

Before attempting a penetration test, it is necessary to identify the active hosts within this target network. Within a target network, the easiest method would be to ping. Of course, it may be rejected by a host, or it may be accepted. This section describes the use of the Nmap tool to identify active hosts. […]

android7.1 printer (ghostscript+hpijs – hplip)

Foreword At present, the basic directions of transplanting printer drivers for android on the Internet are as follows: ghostscript : gs itself is mainly a file converter, the support for printers is relatively limited, and other filters are needed Such as hpijs foo2zjs cups: cups is very powerful and is also a very common printing […]

mysql master-slave error handling: unblock with ‘mysqladmin flush-hosts’ and Slave has more GTIDs than the master has

What should I do if I inserted 10W records at a time yesterday and got stuck? I found that the status of the slave server was wrong, because I had killed the process several times in the middle, and now the data is not synchronized, and the status is not correct! Process unblock with ‘mysqladmin […]