Redis can listen IPv6 address.

This commit is contained in:
fengbojiang 2023-02-15 18:18:09 +08:00
parent a47b734625
commit e14457fdc5
3 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ for more details, see [nginx guide](https://github.com/F-Stack/f-stack/blob/mast
cd app/redis-6.2.6/deps/jemalloc cd app/redis-6.2.6/deps/jemalloc
./autogen.sh ./autogen.sh
cd app/redis-6.2.6/ cd ../..
make make
make install make install

View File

@ -160,7 +160,7 @@ socket(int domain, int type, int protocol)
return real_socket(domain, type, protocol); return real_socket(domain, type, protocol);
} }
if ((AF_INET != domain) || (SOCK_STREAM != type && SOCK_DGRAM != type)) { if ((AF_INET != domain && AF_INET6 != domain) || (SOCK_STREAM != type && SOCK_DGRAM != type)) {
rc = real_socket(domain, type, protocol); rc = real_socket(domain, type, protocol);
return rc; return rc;
} }

View File

@ -88,7 +88,7 @@ The mount point can be made permanent across reboots, by adding the following li
cd app/redis-6.2.6/deps/jemalloc cd app/redis-6.2.6/deps/jemalloc
./autogen.sh ./autogen.sh
cd app/redis-6.2.6/ cd ../..
make make
# run with start.sh # run with start.sh
./start.sh -b ./redis-server -o /path/to/redis.conf ./start.sh -b ./redis-server -o /path/to/redis.conf