110_redis configuration file problem?

When we start the redis server, we can configure the relevant startup file redis-server redis-confg & the
configuration file can specify the ip address and port number of the redis server.

Why did you specify the ip address? Is n’t each computer ’s IP address unique?
Our normal computer has only one network card, so it has only one ip address, but the server can have multiple network cards, so there are multiple ip addresses.

When the configuration file is not specified ( redis-server ), any default ip, port number is 6379. What does this mean?
This arbitrary address refers to any local machine address, but our virtual machine has only one ip address: 192.168.6.129,
so we can only use 192.168.6.129 to connect with 127.0.0.1.
But if we use 192.168.6.129 to connect, we can connect, but we cannot operate. Solution: https://blog.csdn.net/Agly_Clarlie/article/details/52251746
What does this mean? This means that if we want to connect and operate 192.168.6.129 with redis, we must use the configuration file.

If we use the redis default configuration file, what will happen to redis-server / opt / redis / redis-confg &?
At this time we can only use 127.0.0.1 to start the client. Because our configuration file only uses a port
of 127.0.0.1. The default port and ip of redis-cli are 127.0.0.1 when closed and opened.

How to use the redis visualization tool
must be started with a configuration file, and the configuration file must also be changed

Guess you like

Origin www.cnblogs.com/pogusanqian/p/12702925.html