redis安装



  • 安装nodejs

    curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
    sudo apt-get install -y nodejs
    

    安装redis

    sudo apt-get install software-properties-common
    sudo add-apt-repository ppa:chris-lea/redis-server
    sudo apt-get update
    sudo apt -y install redis-server
    

    创建用户

    adduser dyfluid
    

    更改编辑器:

    sudo update-alternatives --config editor
    

    添加用户权限:

    visudo
    

    dyfluid ALL=(ALL:ALL) ALL

    关闭停止:

    /etc/init.d/redis-server stop
    /etc/init.d/redis-server start
    
    cd $HOME
    git clone https://github.com/NodeBB/NodeBB.git nodebb
    cd nodebb
    ./nodebb setup
    

    清楚ssh

    rm ~/.ssh/known_hosts
    

    Nginx做ln -s注意使用绝对路径

    ln -s /etc/nginx/sites-available/example.com.conf /etc/nginx/sites-enabled/example.com.conf
    
    systemctl stop nginx.service
    systemctl start nginx.service
    systemctl status nginx.service
    

Log in to reply
 

CFD中文网 2016 - 2020 | 京ICP备15017992号-2