Centos7.2下安装redis&通用键值命令 Centos7.2下安装redis 官方网站:https://redis.io/ 1.进入/usr/local/src/目录 cd /usr/local/src/ 2.下载最新版或者最新stable版 wget http://download.redis.io/releases/redis-5.0.5.tar.gz 3.解压并进入目录 tar xzf redis-.tar.gz cd redis- 4.不用配置,直接make make 注:如果是
#!/bin/bash #zhangsen #lovexlzs@qq.com if [[ "$(whoami)" != "root" ]]; then exit fi echo -e "\033[31m 这个是centos7系统初始化脚本,请慎重运行!Please continue to enter or ctrl+C to cancel \033[0m" #configure yum source yum_config(){ yum insta
[root@localhost ~]# su postgres 切换用户 bash-4.2$ psql could not change directory to "/root": Permission denied psql (9.5.6) Type "help" for help. postgres=# psql -Upostgres postgres-# psql -Upostgres</root/Desktop/db.sql 我的脚本在桌面 =====