摘要:
if [ $? -ne 0 ] ; then echo "下载redis安装包失败!" exit 1fi # 添加到环境变量sed -i '$a export PATH=/usr/local/redis/bin:$PATH' /etc/profilesource /etc/profile 阅读全文
摘要:
#!/bin/bash # 安装依赖包 yum -y install gcc gcc-c++ libxml2 libxml2-devel bzip2 bzip2-devel libmcrypt libmcrypt-devel openssl openssl-devel libcurl-devel libjpeg-devel libpng-devel freetype-devel readlin... 阅读全文