Install Redis in Ubuntu and start it with the init script

Source: Internet
Author: User
1. Download and install: cd/tmpwgethttp: // installation 1. Download and install:
Cd/tmpwget http://redis.googlecode.com/files/redis-2.2.4.tar.gztar-zxf redis-2.2.4.tar.gzcd redis-2.2.4makesudo make install2. configure init script:
Wget https://github.com/ijonas/dotfiles/raw/master/etc/init.d/redis-serverwget https://github.com/ijonas/dotfiles/raw/master/etc/redis.confsudo mv redis-server/etc/init. d/redis-serversudo chmod + x/etc/init. d/redis-serversudo mv redis. conf/etc/redis. conf3. initialize the user and Log Path
Sudo useradd redissudo mkdir-p/var/lib/redissudo mkdir-p/var/log/redissudo chown redis. redis/var/lib/redissudo chown redis. redis/var/log/redis4. start Redis:
Sudo/etc/init. d/redis-server start Add a service # Sudo update-rc.d service name defaults 99 Delete a service # Sudo update-rc.d service name remove Temporarily restart a service #/Etc/init. d/service name restart Temporarily close a service #/Etc/init. d/service name stop Start a service temporarily #/Etc/init. d/service name start

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.