| 1 | To compile Redis, do the following: |
| 2 | |
| 3 | cd src; make |
| 4 | |
| 5 | The compilation will produce a redis-server binary. |
| 6 | |
| 7 | To install Redis, use |
| 8 | |
| 9 | make install |
| 10 | |
| 11 | and all the binaries will be installed on /usr/local/bin. |
| 12 | |
| 13 | Alternatively: |
| 14 | |
| 15 | make PREFIX=/some/other/directory |
| 16 | |
| 17 | to have the binaries in /some/other/directory/bin. |
| 18 | |
| 19 | Run the server using the following command line: |
| 20 | |
| 21 | /path/to/redis-server |
| 22 | |
| 23 | This will start a Redis server with the default configuration. |
| 24 | |
| 25 | Otherwise if you want to provide your configuration use: |
| 26 | |
| 27 | /path/to/redis-server /path/to/redis.conf |
| 28 | |
| 29 | You can find an example redis.conf file in the root directory |
| 30 | of this source distribution. |