[Go] Install Redis under Ubuntu and start with the init script

Source: Internet
Author: User
Tags dotfiles install redis
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. Configuring the 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 user and log paths sudo useradd redissudo mkdir-p/var/lib/redissudo mkdir-p/var/log/redissudo chown Redis.redis/var/lib/redis sudo 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 Delete a service #sudo UPDATE-RC.D Service name Remove temporarily restart a service #/etc/init.d/Service Name Restart temporarily shut down a service #/etc/init.d/Service Name Stop temporarily start a service  #/etc/init.d/Service Name start Baidu Link

[Go] Install Redis under Ubuntu and start with the init script

Related Article

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.