mirror of https://github.com/F-Stack/f-stack.git
Redis can listen IPv6 address.
This commit is contained in:
parent
a47b734625
commit
e14457fdc5
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue