Mac Manually Install Redis or Redis Manually Mac GitHub
Mac Manually Install Redis or Redis Manually Mac GitHub
Código Revisiones 1
1.Descarga redis;
sitio web de inicio: https://redis.io/download
sitio web de descarga: https://download.redis.io/releases/
solo usa este comando:
sudo curl -O http://download.redis.io/releases/redis-3.2.8.tar.gz
2.Descomprimir
sudo tar -zxvf redis-x.y.z.tar.gz
3.Otorgar permisos
Asegúrese de que el usuario actual tenga permisos de lectura y escritura para el
https://gist.github.com/SofijaErkin/6fa0d09afb062518794528c5e77a748f 1/9
3/8/23, 01:43 Mac manually install redis Or Redis manually mac · GitHub
directorio descomprimido:
sudo chown marryme redis-3.2.8
6. Compilar
cd redis
sudo make
7. Compilar e instalar
sudo make install
sudo cp -r /usr/local/redis/src/mkreleasehdr.sh
/usr/local/redis/bin/mkreleasehdr.sh
11.Archivo de configuración
No se recomienda colocar ningún archivo de configuración del producto bajo el
producto actual. Copie redis.conf a /usr/local/redis/etc :
sudo cp /usr/local/redis/redis.conf /usr/local/redis/etc
Editar redis.conf :
cd /usr/local/etc/
vim redis.conf
daemonize=yes
pidfile /usr/local/redis/redis.pid
#port
https://gist.github.com/SofijaErkin/6fa0d09afb062518794528c5e77a748f 3/9
3/8/23, 01:43 Mac manually install redis Or Redis manually mac · GitHub
port 6379
#client timeout
timeout 300
#Log Level
loglevel debug
logfile /usr/local/var/log/redis/redis.log
databases 8
##Specify how many update operations within how long and how many times
#the data will be synchronized to the data file. Able to cooperate with
#multiple conditions
save 900 1
save 300 10
save 60 10000
# Able close the# option, but it will cause the database file to become
# huge
rdbcompression yes
dbfilename dump.rdb
dir /data/db/
#Specify whether to log after each update operation. Redis writes data to
https://gist.github.com/SofijaErkin/6fa0d09afb062518794528c5e77a748f 4/9
3/8/23, 01:43 Mac manually install redis Or Redis manually mac · GitHub
# Will cause data loss for a period of time when the power is off. Since
appendonly no
#Specify the update log conditions, which have 3 optional values in common:
#no: Means to wait for the operating system to synchronize the data cache
appendfsync everysec
Asegúrese de que el usuario actual tenga permisos de lectura y escritura para lo anterior
dos directorios:
sudo chown marryme /usr/local/var/log/redis
After initializing the configuration file for the first time and
starting the server, the Redis server is usually started like this:
redis-server
or
sudo redis-server
or
15. redis client
Open the redis client:
redis-cli
or
sudo redis-cli
or
cd /usr/local/redis/bin
./redis-cli
https://gist.github.com/SofijaErkin/6fa0d09afb062518794528c5e77a748f 6/9
3/8/23, 01:43 Mac manually install redis Or Redis manually mac · GitHub
shutdown
or
sudo redis-cli
shutdown
or
cd /usr/local/redis
./bin/redis-cil shutdown
kill -9 PID
(3)Modify foobared, or copy a line, modify foobared to what you want, such as
https://gist.github.com/SofijaErkin/6fa0d09afb062518794528c5e77a748f 7/9
3/8/23, 01:43 Mac manually install redis Or Redis manually mac · GitHub
123456 , and save it.Restart the service. The password has been set successfully.
When connecting, you can log in by entering the password you modified.
Pay special attention, after modifying the configuration file, use this to
start the redis server:
/usr/local/redis/bin/redis-server /usr/local/etc/redis.conf
or
sudo /usr/local/redis/bin/redis-server /usr/local/etc/redis.conf
or
sudo redis-server
1.homebrew-core/Formula/redis.rb
("Persistent key-value database, with built-in net interface")
https://github.com/Homebrew/homebrew-core/blob/master/Formula/redis.rb
2.homebrew-core/Formula/[email protected]:
("Persistent key-value database, with built-in net interface")
https://github.com/Homebrew/homebrew-core/blob/master/Formula/[email protected]
3.homebrew-core/Formula/[email protected]:
("Persistent key-value database, with built-in net interface")
https://github.com/Homebrew/homebrew-core/blob/master/Formula/[email protected]
4.homebrew-core/Formula/[email protected]:
("Persistent key-value database, with built-in net interface")
https://github.com/Homebrew/homebrew-core/blob/master/Formula/[email protected]
5.homebrew-core/Formula/redis-leveldb.rb:
("Redis-protocol compatible frontend to leveldb")
6.homebrew-core/Formula/hiredis.rb
("Minimalistic client for Redis")
https://github.com/Homebrew/homebrew-core/blob/master/Formula/hiredis.rb
https://gist.github.com/SofijaErkin/6fa0d09afb062518794528c5e77a748f 9/9