WSL安装redis
环境
- ubuntu16.04(bash on window)
安装
sudo apt-get update
更新源sudo apt-get upgrade
更新软件sudo apt-get install build-essential
安装编译环境(包括gcc)sudo apt-get install tcl8.5
安装tcl8.5wget http://download.redis.io/releases/redis-stable.tar.gz
tar xzf redis-stable.tar.gz
cd redis-stable
make
sudo make install
cd utils/
sudo ./install_server.sh
sudo service redis_6379 start
sudo service redis_6379 stop
安装结果:
Port : 6379
Config file : /etc/redis/6379.conf
Log file : /var/log/redis_6379.log
Data dir : /var/lib/redis/6379
Executable : /usr/local/bin/redis-server
Cli Executable : /usr/local/bin/redis-cli
参考:
Windows 10 Linux子系统 (wsl)学习手记