YUM INSTALL REDIS CODE
Occasionally, the source may by patched by the package maintainer at build time.Ī source RPM captures the source code and patches as they were at RPM build time. Packages are typically generated from source code and a set of a metadata written by the package maintainer. Use ss command to find the listening port.A package is a collection of binaries, scripts, and associated data that is installed by your package manager. redis - cli - help Check listening ports by redis Use below given command to login into redis server from localhost. The command is applicable in CentOS 7/RHEL 7/ Ubuntu (as per this post, we only only selected these 3 Operating system) To login into redis server is quite easy. In CentOS 7 / RHEL 7 # To check status of Redis Server Once the all above steps are done, we can start/stop/restart the Redis Server and also check its status. Installation successful ! # Redis start/stop/restart/status Successfully added to chkconfig ! Successfully added to runlevels 345 ! Starting Redis server. Is this ok ? Then press ENTER to go on or Ctrl - C to abort. logĭata dir : /var/ lib / redis / 6379 Executable : /usr/ local / bin / redis - serverĬli Executable : /usr/ local / bin / redis - cli Please select the data directory for this instance Selected default - /var/ lib / redis / 6379 Please select the redis executable path Selected config : Port : 6379 Config file : /etc/ redis / nf Log file : /var/ log / redis_6379. Please select the redis port for this instance : Selecting default : 6379 Please select the redis config file name Selected default - /etc/ redis / nf Please select the redis log file name Selected default - /var/ log / redis_6379.
This script will help you easily set up a running redis server Given below is reference from our server.
When you hit only ENTER, the system will take default value or answer. We have to change to utils directory and run the install_server.sh script.
Inside the directory you will see utils directory. I hope you are still inside the Redis installation Directory. You can use this method in CentOS 7/ RHEL 7 / Ubuntu 14.04. In this section we will install init script to manage the process of Redis. In next section we will install init script. The redis server is installed only with binaries in your system. Means go back to Redis installation directory. For this you have to change to one level back. Once the dependencies are compiled, now start compiling the redis. Now compiling the dependencies of Redis, available inside extracted out redis directory. Now you will do most of the command activity inside redis package directory ( i.e redis-3.0.2) cd redis - 3.0. In our case, we got directory with name called redis-3.0.2. Once you extract the Redis Package from tarball, you will get the Redis directory. Use the tar command to extract out the Redis from the downloaded tarball file.
YUM INSTALL REDIS DOWNLOAD
We recommend you to always install stable release, which you can search in Redis Download URL wget http : ///releases/redis-3.0.2.tar.gz Untar downloaded Redis Tar ball Use wget command to download the stable release Redis 3.0.2. Whereas, we are installing wget for downloading the redis source package. Make and GCC packages are used for compiling the source package.