Skip to content

Tutorial: StartupRedis

Luca Palonca edited this page May 23, 2022 · 15 revisions

For windows users:

  • Download the binary file of Redis here I provided:

https://github.com/ketoo/NoahGameFrame/wiki/software/Redis-x64-3.2.100.zip

or download form here:

https://github.com/ServiceStack/redis-windows

Create a file named: redis.bat, the content listed below:

redis-server.exe "redis.windows.conf"

Run script: redis.bat to start redis database.

For non-windows users:

$ tar xzf redis-5.0.8.tar.gz
$ cd redis-5.0.8
$ make

MODIFY PASSWORD FOR REDIS DATABASE:

1. Find the file named: redis.conf
2. modify the password as: requirepass NoahGameFrame

3. Create a file named: redis.sh located folder redis-5.0.8, the content listed below:

./src/redis-server redis.conf &

Run script: ./redis.sh to start redis database.

For cloud database service users:

You can modify the URL and password to connect your cloud database.

_Out/NFDataCfg/Excel/Side/NoSqlServer.xlsx

After you modified the excel file, please run the script named GenerateConfigXML.bat (GenerateConfigXML.sh) to generate configuration files

more details please ref to:

https://github.com/ketoo/NoahGameFrame/wiki/How-to-debug-with-unity3d


对于 windows用户:

请先直接下载我已经编译好的redis二进制文件:

https://github.com/ketoo/NoahGameFrame/wiki/software/Redis-x64-3.2.100.zip

或者从这里下载编译:

https://github.com/ServiceStack/redis-windows

在redis的目录下,创建一个文件名字为:redis.bat 的文件,它的内容如下:

redis-server.exe "redis.windows.conf"

然后运行脚本: redis.bat 来启动redis数据库


对于非windoiws用户:

$ tar xzf redis-5.0.8.tar.gz
$ cd redis-5.0.8
$ make

修改redis密码:

找到文件名字为:redis.conf的文件
修改密码的地方为: requirepass NoahGameFrame

在redis的目录下,创建一个文件名字为:redis.sh 的文件,它的内容如下:

./src/redis-server redis.conf & 运行脚本: ./redis.sh 来启动redis数据库


对于使用云数据库服务的用户:

你可以直接修改redis数据库的url 和密码

_Out/NFDataCfg/Excel/Side/NoSqlServer.xlsx

但是在修改后,请一定要运行脚本 GenerateConfigXML.bat (GenerateConfigXML.sh) 来产生配置文件。

更多的细节请参考:

https://github.com/ketoo/NoahGameFrame/wiki/How-to-debug-with-unity3d

Clone this wiki locally