Home > Net >  Ask a redis and redisearch problems, help the have understand
Ask a redis and redisearch problems, help the have understand

Time:11-03

System is centos7
Installed the docker version of redis, and now works.
Install redis use command is:
 
Docker run - d - ring=true - p, 6666:6379 - v/usr/redis/redis conf:/etc/redis/redis conf - v/usr/redis/data:/data - the name myredis docker. IO/redis: latest redis server/etc/redis/redis conf - appendonly yes


I now want to install docker redisearch version, and then use the command
 
Docker run - p - 6667-6379 - v/usr/redisearch/data:/data/redislabs redisearch


Here's the thing, how to configure redis. Conf this file?
Thank you!

CodePudding user response:

With parameters - v/usr/redis/redis. Conf:/etc/redis/redis conf on mount,

CodePudding user response:

reference 1/X - I - n reply:
with parameters - v/usr/redis/redis. Conf:/etc/redis/redis conf on mount,

You mean not redis. Write the loadmodule conf file?
Direct
Docker run - p - 6667-6379 - v/usr/redis/redis. Conf:/etc/redis/redis conf redislabs/redisearch
This is ok?

CodePudding user response:

Yes, normal configuration file editor, and then - v mounted to the container,

CodePudding user response:

reference X - I - n reply: 3/f
yes, normal configuration file editor, mounted to the container, and then - v

Now the problems is to configure redis. Conf this file.
I'm redis. Conf last line add loadmodule
The above red what should I do?
Because it is in the docker, this redisearch. So where is it?

CodePudding user response:

In the mirror, just fill in the path in the mirror;
Mirror: no, save a local path (1), and is also used to mount - v into the docker (path 2 to address any),
In either case, the red this address, is done with the address in the docker (2) path,
But I don't think the image should not so file, itself is the redisearch mirror,

CodePudding user response:

refer to fifth floor X - I - n reply:
in the mirror, just fill in the path in the mirror;
Mirror: no, save a local path (1), and is also used to mount - v into the docker (path 2 to address any),
In either case, the red this address, is done with the address in the docker (2) path,
But I don't think the image should be not so file, itself is the redisearch mirror,


Use the find command to find have redisearch. So file two (below).
Then the redis. Conf in loadmodule reads
 
Loadmodule/var/lib/docker overlay2/3 a418883cdc91f06ae57f3502269407068477b0f30f6b01ae6ddea03b7c0cfc4/diff/usr/lib/redis/modules/redisearch. So

And then restart the docker as shown in figure:


Redis will start up in the docker.
Delete the loadmodule configuration can. Is really depressed
Is something wrong?
I like this

CodePudding user response:

The container as a separate system, should fill in the "system" in the path, such as/usr/lib/redis/modules/redisearch. So

You
The/var/lib/docker overlay2/3 a418883cdc91f06ae57f3502269407068477b0f30f6b01ae6ddea03b7c0cfc4/diff/usr/lib/redis/modules/redisearch. So
Is the container file storage location in real machines,

CodePudding user response:

Or not.
Redis. Conf add figure

And then restart the docker, redis start up in the docker. Can start if you delete the loadmodule configuration.


is really maddening!!!!!!

PS: redis with redisearch are all in the docker. @ X - I - n

CodePudding user response:

I have not used redisearch, no redis - server in this mirror? If so there is no need for redis container,

If you use two containers, it is necessary to specify the conf file for two containers each
Redis container: -v physical machine version of redis conf file:/etc/redis/redis conf,,

Redisearch container:
- v physical machine redisearch conf file:/etc/redis/redis conf
Ensure redisearch. So there, and then in the conf right so documents specified in the file path; If there is no this file, the physical machine so file mount,

CodePudding user response:


In no load loadmodule configuration, normal boot after redis, using the module load/usr/lib/redis/modules/redisearch. So
Or an error.



Prompt error message. (by the way where the error message?)

CodePudding user response:

 solve!!

Thank you very much for the help. X - I - n, as he puts it, redis. Conf is two , redis in redis. Conf with redis. In the redisearch conf is not the same file in redisearch redis. Conf content as long as the loadmodule/usr/lib/redis/modules/redisearch. So can.

In the redis redis. Don't need to be at the end of the conf loadmodule

I went to, really!!!!!!

Write down so that somebody needs to find back.
TAG: redis and how to configure in the docker redisearch

CodePudding user response:

Redis.
are there in the confLogfile XXXX. The log

This is the location of the log file,

CodePudding user response:

Studied the

CodePudding user response:

Bosses can give advice or comments about it, I now is to use redis on Windows and redisearch then docker run redis and redisearch, how should do ah, after the above too around don't understand the
  • Related