2020-08-03 本地部署easy-mock-编译make-安装Cygwin

参考连接:Windows下编译Redis5.0.5

https://www.cnblogs.com/LUA123/p/11447163.html

-----------------------------------------------------------------------------------------------------------------------------------

$ cygcheck -c cygwin

$ gcc --version

$ make --version

$ cd d:\software

$ cd redis-5.0.5

$ make

$ cd deps/hiredis/

shiji@▒▒Դ▒▒win10 /cygdrive/d/software/redis-5.0.5/deps/hiredis

$ make

错误

进github.com/redis/hiredis下载新的,删掉出错的hiredis

shiji@▒▒Դ▒▒win10 /cygdrive/d/software/redis-5.0.5/deps/hiredis

$ make

$ cd ../lua/

shiji@▒▒Դ▒▒win10 /cygdrive/d/software/redis-5.0.5/deps/lua

$ make generic

$ cd ..

$ cd linenoise

$ make

$ cd ..

$ cd ..

shiji@▒▒Դ▒▒win10 /cygdrive/d/software/redis-5.0.5

$ make

shiji@▒▒Դ▒▒win10 /cygdrive/d/software/redis-5.0.5

$ ./src/redis-server.exe

2062:C 02 Aug 2020 23:04:49.185 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo

2062:C 02 Aug 2020 23:04:49.198 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=2062, just started

2062:C 02 Aug 2020 23:04:49.198 # Warning: no config file specified, using the default config. In order to specify a config file use ./src/redis-server /path/to/redis.conf

2062:M 02 Aug 2020 23:04:49.201 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.

2062:M 02 Aug 2020 23:04:49.205 # Server can't set maximum open files to 10032 because of OS error: Too many open files.

2062:M 02 Aug 2020 23:04:49.206 # Current maximum open files is 3200. maxclients has been reduced to 3168 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.

                _._

          _.-``__ ''-._

      _.-``    `.  `_.  ''-._          Redis 5.0.5 (00000000/0) 64 bit

  .-`` .-```.  ```\/    _.,_ ''-._

(    '      ,      .-`  | `,    )    Running in standalone mode

|`-._`-...-` __...-.``-._|'` _.-'|    Port: 6379

|    `-._  `._    /    _.-'    |    PID: 2062

  `-._    `-._  `-./  _.-'    _.-'

|`-._`-._    `-.__.-'    _.-'_.-'|

|    `-._`-._        _.-'_.-'    |          http://redis.io

  `-._    `-._`-.__.-'_.-'    _.-'

|`-._`-._    `-.__.-'    _.-'_.-'|

|    `-._`-._        _.-'_.-'    |

  `-._    `-._`-.__.-'_.-'    _.-'

      `-._    `-.__.-'    _.-'

          `-._        _.-'

              `-.__.-'

2062:M 02 Aug 2020 23:04:49.279 # Server initialized

2062:M 02 Aug 2020 23:04:49.279 * Ready to accept connections

2062:signal-handler (1596380813) Received SIGINT scheduling shutdown...

2062:M 02 Aug 2020 23:06:53.542 # User requested shutdown...

2062:M 02 Aug 2020 23:06:53.543 * Saving the final RDB snapshot before exiting.

2062:M 02 Aug 2020 23:06:53.681 * DB saved on disk

2062:M 02 Aug 2020 23:06:53.682 # Redis is now ready to exit, bye bye...

./src/redis-cli.exe -h 127.0.0.1 info

D:\Software\redis-5.0.5\src>redis-cli

Could not connect to Redis at 127.0.0.1:6379: Connection refused

not connected>

【连接不上:】

【找到redis.conf文件】

daemonize no

修改为

daemonize yes

D:\Software\redis-5.0.5\src>

$ redis-server ../redis.conf

1043:C 02 Aug 2020 23:42:39.257 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo

1043:C 02 Aug 2020 23:42:39.257 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=1043, just started

1043:C 02 Aug 2020 23:42:39.258 # Configuration loaded

修改密码:

【查requirepass】

requirepass 123456

你可能感兴趣的:(2020-08-03 本地部署easy-mock-编译make-安装Cygwin)