1.下载适合你的版本的redis(下载页面https://redis.io/download),我下载的是4.0.6版本 wget http://download.redis.io/releases/redis-4.0.6.tar.gz 2.解压 tar zxvf redis-4.0.6.tar.gz 3.编译 cd redis-4.0.6/ make make install 4.安装并启动 cd utils ./install_server.sh * 第4步安装时会有几项提示一路按回车即可.
1.创建solr用户 useradd solr 2.设置solr-7.7.2目录拥有者 cd /usr/local/ chown -R solr:solr solr-7.7.2 3.在/etc/init.d/目录创建solr服务 cd /etc/init.d/ vi solr solr文件内容: #!/bin/sh # #chkconfig: SOLR_INSTALL_DIR=/usr/local/solr- case "$1" in start|stop|restart|status
开机自启动,将要执行的语句写入/etc/rc.local. #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this