From bf96e9ee00944769e0659bffa1cfc69acef949eb Mon Sep 17 00:00:00 2001 From: whl739 Date: Mon, 15 May 2017 11:44:23 +0800 Subject: [PATCH 1/2] Fix #6: Redis compile error. The previous codes of redis is pushed on Windows, and lost the permission to execute. --- app/redis-3.2.8/deps/jemalloc/autogen.sh | 0 app/redis-3.2.8/deps/jemalloc/config.guess | 0 app/redis-3.2.8/deps/jemalloc/config.sub | 0 app/redis-3.2.8/deps/jemalloc/coverage.sh | 0 .../jemalloc/internal/private_namespace.sh | 0 .../jemalloc/internal/private_unnamespace.sh | 0 .../jemalloc/internal/public_namespace.sh | 0 .../jemalloc/internal/public_unnamespace.sh | 0 .../include/jemalloc/internal/size_classes.sh | 0 .../jemalloc/include/jemalloc/jemalloc.sh | 0 .../include/jemalloc/jemalloc_mangle.sh | 0 .../include/jemalloc/jemalloc_rename.sh | 0 app/redis-3.2.8/deps/jemalloc/install-sh | 0 app/redis-3.2.8/deps/lua/etc/luavs.bat | 56 +++++++++---------- app/redis-3.2.8/deps/update-jemalloc.sh | 0 app/redis-3.2.8/redis.conf | 8 +-- app/redis-3.2.8/runtest | 0 app/redis-3.2.8/runtest-cluster | 0 app/redis-3.2.8/runtest-sentinel | 0 app/redis-3.2.8/src/mkreleasehdr.sh | 0 .../utils/create-cluster/create-cluster | 0 .../utils/generate-command-help.rb | 0 app/redis-3.2.8/utils/install_server.sh | 0 app/redis-3.2.8/utils/redis_init_script | 0 app/redis-3.2.8/utils/redis_init_script.tpl | 0 .../utils/releasetools/01_create_tarball.sh | 0 .../utils/releasetools/02_upload_tarball.sh | 0 .../utils/releasetools/03_test_release.sh | 0 .../utils/releasetools/04_release_hash.sh | 0 app/redis-3.2.8/utils/speed-regression.tcl | 0 app/redis-3.2.8/utils/whatisdoing.sh | 0 31 files changed, 32 insertions(+), 32 deletions(-) mode change 100644 => 100755 app/redis-3.2.8/deps/jemalloc/autogen.sh mode change 100644 => 100755 app/redis-3.2.8/deps/jemalloc/config.guess mode change 100644 => 100755 app/redis-3.2.8/deps/jemalloc/config.sub mode change 100644 => 100755 app/redis-3.2.8/deps/jemalloc/coverage.sh mode change 100644 => 100755 app/redis-3.2.8/deps/jemalloc/include/jemalloc/internal/private_namespace.sh mode change 100644 => 100755 app/redis-3.2.8/deps/jemalloc/include/jemalloc/internal/private_unnamespace.sh mode change 100644 => 100755 app/redis-3.2.8/deps/jemalloc/include/jemalloc/internal/public_namespace.sh mode change 100644 => 100755 app/redis-3.2.8/deps/jemalloc/include/jemalloc/internal/public_unnamespace.sh mode change 100644 => 100755 app/redis-3.2.8/deps/jemalloc/include/jemalloc/internal/size_classes.sh mode change 100644 => 100755 app/redis-3.2.8/deps/jemalloc/include/jemalloc/jemalloc.sh mode change 100644 => 100755 app/redis-3.2.8/deps/jemalloc/include/jemalloc/jemalloc_mangle.sh mode change 100644 => 100755 app/redis-3.2.8/deps/jemalloc/include/jemalloc/jemalloc_rename.sh mode change 100644 => 100755 app/redis-3.2.8/deps/jemalloc/install-sh mode change 100644 => 100755 app/redis-3.2.8/deps/update-jemalloc.sh mode change 100644 => 100755 app/redis-3.2.8/runtest mode change 100644 => 100755 app/redis-3.2.8/runtest-cluster mode change 100644 => 100755 app/redis-3.2.8/runtest-sentinel mode change 100644 => 100755 app/redis-3.2.8/src/mkreleasehdr.sh mode change 100644 => 100755 app/redis-3.2.8/utils/create-cluster/create-cluster mode change 100644 => 100755 app/redis-3.2.8/utils/generate-command-help.rb mode change 100644 => 100755 app/redis-3.2.8/utils/install_server.sh mode change 100644 => 100755 app/redis-3.2.8/utils/redis_init_script mode change 100644 => 100755 app/redis-3.2.8/utils/redis_init_script.tpl mode change 100644 => 100755 app/redis-3.2.8/utils/releasetools/01_create_tarball.sh mode change 100644 => 100755 app/redis-3.2.8/utils/releasetools/02_upload_tarball.sh mode change 100644 => 100755 app/redis-3.2.8/utils/releasetools/03_test_release.sh mode change 100644 => 100755 app/redis-3.2.8/utils/releasetools/04_release_hash.sh mode change 100644 => 100755 app/redis-3.2.8/utils/speed-regression.tcl mode change 100644 => 100755 app/redis-3.2.8/utils/whatisdoing.sh diff --git a/app/redis-3.2.8/deps/jemalloc/autogen.sh b/app/redis-3.2.8/deps/jemalloc/autogen.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/deps/jemalloc/config.guess b/app/redis-3.2.8/deps/jemalloc/config.guess old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/deps/jemalloc/config.sub b/app/redis-3.2.8/deps/jemalloc/config.sub old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/deps/jemalloc/coverage.sh b/app/redis-3.2.8/deps/jemalloc/coverage.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/deps/jemalloc/include/jemalloc/internal/private_namespace.sh b/app/redis-3.2.8/deps/jemalloc/include/jemalloc/internal/private_namespace.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/deps/jemalloc/include/jemalloc/internal/private_unnamespace.sh b/app/redis-3.2.8/deps/jemalloc/include/jemalloc/internal/private_unnamespace.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/deps/jemalloc/include/jemalloc/internal/public_namespace.sh b/app/redis-3.2.8/deps/jemalloc/include/jemalloc/internal/public_namespace.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/deps/jemalloc/include/jemalloc/internal/public_unnamespace.sh b/app/redis-3.2.8/deps/jemalloc/include/jemalloc/internal/public_unnamespace.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/deps/jemalloc/include/jemalloc/internal/size_classes.sh b/app/redis-3.2.8/deps/jemalloc/include/jemalloc/internal/size_classes.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/deps/jemalloc/include/jemalloc/jemalloc.sh b/app/redis-3.2.8/deps/jemalloc/include/jemalloc/jemalloc.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/deps/jemalloc/include/jemalloc/jemalloc_mangle.sh b/app/redis-3.2.8/deps/jemalloc/include/jemalloc/jemalloc_mangle.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/deps/jemalloc/include/jemalloc/jemalloc_rename.sh b/app/redis-3.2.8/deps/jemalloc/include/jemalloc/jemalloc_rename.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/deps/jemalloc/install-sh b/app/redis-3.2.8/deps/jemalloc/install-sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/deps/lua/etc/luavs.bat b/app/redis-3.2.8/deps/lua/etc/luavs.bat index 054b4625c..08c2beddf 100644 --- a/app/redis-3.2.8/deps/lua/etc/luavs.bat +++ b/app/redis-3.2.8/deps/lua/etc/luavs.bat @@ -1,28 +1,28 @@ -@rem Script to build Lua under "Visual Studio .NET Command Prompt". -@rem Do not run from this directory; run it from the toplevel: etc\luavs.bat . -@rem It creates lua51.dll, lua51.lib, lua.exe, and luac.exe in src. -@rem (contributed by David Manura and Mike Pall) - -@setlocal -@set MYCOMPILE=cl /nologo /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE -@set MYLINK=link /nologo -@set MYMT=mt /nologo - -cd src -%MYCOMPILE% /DLUA_BUILD_AS_DLL l*.c -del lua.obj luac.obj -%MYLINK% /DLL /out:lua51.dll l*.obj -if exist lua51.dll.manifest^ - %MYMT% -manifest lua51.dll.manifest -outputresource:lua51.dll;2 -%MYCOMPILE% /DLUA_BUILD_AS_DLL lua.c -%MYLINK% /out:lua.exe lua.obj lua51.lib -if exist lua.exe.manifest^ - %MYMT% -manifest lua.exe.manifest -outputresource:lua.exe -%MYCOMPILE% l*.c print.c -del lua.obj linit.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj^ - loslib.obj ltablib.obj lstrlib.obj loadlib.obj -%MYLINK% /out:luac.exe *.obj -if exist luac.exe.manifest^ - %MYMT% -manifest luac.exe.manifest -outputresource:luac.exe -del *.obj *.manifest -cd .. +@rem Script to build Lua under "Visual Studio .NET Command Prompt". +@rem Do not run from this directory; run it from the toplevel: etc\luavs.bat . +@rem It creates lua51.dll, lua51.lib, lua.exe, and luac.exe in src. +@rem (contributed by David Manura and Mike Pall) + +@setlocal +@set MYCOMPILE=cl /nologo /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE +@set MYLINK=link /nologo +@set MYMT=mt /nologo + +cd src +%MYCOMPILE% /DLUA_BUILD_AS_DLL l*.c +del lua.obj luac.obj +%MYLINK% /DLL /out:lua51.dll l*.obj +if exist lua51.dll.manifest^ + %MYMT% -manifest lua51.dll.manifest -outputresource:lua51.dll;2 +%MYCOMPILE% /DLUA_BUILD_AS_DLL lua.c +%MYLINK% /out:lua.exe lua.obj lua51.lib +if exist lua.exe.manifest^ + %MYMT% -manifest lua.exe.manifest -outputresource:lua.exe +%MYCOMPILE% l*.c print.c +del lua.obj linit.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj^ + loslib.obj ltablib.obj lstrlib.obj loadlib.obj +%MYLINK% /out:luac.exe *.obj +if exist luac.exe.manifest^ + %MYMT% -manifest luac.exe.manifest -outputresource:luac.exe +del *.obj *.manifest +cd .. diff --git a/app/redis-3.2.8/deps/update-jemalloc.sh b/app/redis-3.2.8/deps/update-jemalloc.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/redis.conf b/app/redis-3.2.8/redis.conf index 656ed598c..22e00bcfe 100644 --- a/app/redis-3.2.8/redis.conf +++ b/app/redis-3.2.8/redis.conf @@ -58,7 +58,7 @@ # IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES # JUST COMMENT THE FOLLOWING LINE. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -bind 0.0.0.0 +bind 127.0.0.1 # Protected mode is a layer of security protection, in order to avoid that # Redis instances left open on the internet are accessed and exploited. @@ -77,11 +77,11 @@ bind 0.0.0.0 # you are sure you want clients from other hosts to connect to Redis # even if no authentication is configured, nor a specific set of interfaces # are explicitly listed using the "bind" directive. -protected-mode no +protected-mode yes # Accept connections on the specified port, default is 6379 (IANA #815344). # If port 0 is specified Redis will not listen on a TCP socket. -port 6666 +port 6379 # TCP listen() backlog. # @@ -477,7 +477,7 @@ slave-priority 100 # 150k passwords per second against a good box. This means that you should # use a very strong password otherwise it will be very easy to break. # -requirepass fstacktest +# requirepass foobared # Command renaming. # diff --git a/app/redis-3.2.8/runtest b/app/redis-3.2.8/runtest old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/runtest-cluster b/app/redis-3.2.8/runtest-cluster old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/runtest-sentinel b/app/redis-3.2.8/runtest-sentinel old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/src/mkreleasehdr.sh b/app/redis-3.2.8/src/mkreleasehdr.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/utils/create-cluster/create-cluster b/app/redis-3.2.8/utils/create-cluster/create-cluster old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/utils/generate-command-help.rb b/app/redis-3.2.8/utils/generate-command-help.rb old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/utils/install_server.sh b/app/redis-3.2.8/utils/install_server.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/utils/redis_init_script b/app/redis-3.2.8/utils/redis_init_script old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/utils/redis_init_script.tpl b/app/redis-3.2.8/utils/redis_init_script.tpl old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/utils/releasetools/01_create_tarball.sh b/app/redis-3.2.8/utils/releasetools/01_create_tarball.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/utils/releasetools/02_upload_tarball.sh b/app/redis-3.2.8/utils/releasetools/02_upload_tarball.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/utils/releasetools/03_test_release.sh b/app/redis-3.2.8/utils/releasetools/03_test_release.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/utils/releasetools/04_release_hash.sh b/app/redis-3.2.8/utils/releasetools/04_release_hash.sh old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/utils/speed-regression.tcl b/app/redis-3.2.8/utils/speed-regression.tcl old mode 100644 new mode 100755 diff --git a/app/redis-3.2.8/utils/whatisdoing.sh b/app/redis-3.2.8/utils/whatisdoing.sh old mode 100644 new mode 100755 From 50adc5347216d5d7f528dd9b9fee63d873f24131 Mon Sep 17 00:00:00 2001 From: whl739 Date: Mon, 15 May 2017 11:59:47 +0800 Subject: [PATCH 2/2] Redis: bind to 0.0.0.0 by default. --- app/redis-3.2.8/redis.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/redis-3.2.8/redis.conf b/app/redis-3.2.8/redis.conf index 22e00bcfe..738c38df3 100644 --- a/app/redis-3.2.8/redis.conf +++ b/app/redis-3.2.8/redis.conf @@ -58,7 +58,7 @@ # IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES # JUST COMMENT THE FOLLOWING LINE. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -bind 127.0.0.1 +bind 0.0.0.0 # Protected mode is a layer of security protection, in order to avoid that # Redis instances left open on the internet are accessed and exploited. @@ -77,7 +77,7 @@ bind 127.0.0.1 # you are sure you want clients from other hosts to connect to Redis # even if no authentication is configured, nor a specific set of interfaces # are explicitly listed using the "bind" directive. -protected-mode yes +protected-mode no # Accept connections on the specified port, default is 6379 (IANA #815344). # If port 0 is specified Redis will not listen on a TCP socket.