$ wget http://download.redis.io/releases/redis-3.2.1.tar.gz
$ tar xzf redis-3.2.1.tar.gz
$ cd redis-3.2.1
$ make
上面沒有問題
執(zhí)行到make install語句就報錯
sudo make install也不行
麻煩了
sudo ls /root/
su
make
install
The displayed information indicates that you do not have permission to create the file /usr/local/bin/redis-server.
First, confirm whether the root user has write permissions and access permissions for the following /usr/local/bin folder.
Confirm whether the file or folder redis-server already exists in this directory. Confirm the read and write permissions for this file.
Compile and install as su
Create the installation path first and try it
./configure
和make
是不需要root身份執(zhí)行的,但是make install
一定要,因為是安裝到系統(tǒng)目錄。
你sudo
都不行?發(fā)一下sudo make install
Screenshot of failure.