切换目录 远程下载安装包 解压 移动路径 进入redis目录 安装redis 运行
cd /usr/local/src wget http://download.redis.io/releases/redis-5.0.9.tar.gz tar xzf redis-5.0.9.tar.gz mv redis-5.0.9 /usr/local/redis cd /usr/local/redis sudo make && sudo make install
vim redis.conf 注释 # bind 127.0.0.1 找到配置文件中protected-mode yes,默认protected mode yes,需要将其改为protected-mode no
/usr/local/redis/src/redis-server /usr/local/redis/redis.conf
注意:开启后不要继续执行命令 退出命令执行窗口
// 依照上一偏部署不需要 // cd /usr/local/src // wget http://pecl.php.net/get/redis-5.0.0.tgz // tar zxvf redis-5.0.0.tgz
关于Centos7.4部署分步集成docker+nginx+php+mysql+node
ps -ef|grep redis
kill -9 8245
ps -ef|grep redis
/usr/local/redis/src/redis-server /usr/local/redis/redis.conf
ps -ef|grep redis
vi /etc/systemd/system/redis.service
[Unit] Description=redis-server After=network.target [Service] Type=forking PIDFile=/var/run/redis_6379.pid ExecStart=/usr/local/redis/src/redis-server /usr/local/redis/redis.conf ExecStop=/usr/local/redis/src/redis-cli shutdown ExecReload=/bin/kill -s HUP $MAINPID Restart=always [Install] WantedBy=multi-user.target
#重新加载配置文件 systemctl daemon-reload #启动服务 systemctl start redis.service #开机启动 systemctl enable redis.service
php74 -m php --ri redis
pip3 install supervisor
which supervisord which supervisorctl ps -ef | grep supervisord supervisorctl status supervisord -v
cd /web/dujiaoshou
docker run -dit --name dujiaoka -p 67:80 -p 6777:9000 -e WEB_DOCUMENT_ROOT=/app/public jiangjuhong/dujiaoka
本文作者:seek
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!