systemctl

作者: 小知大知 | 来源:发表于2018-07-15 15:40 被阅读2次

    重新加载配置文件

    systemctl daemon-reload

    启动

    systemctl start redis

    开机启动

    systemctl enable redis

    取消开机启动

    systemctl disable redis

    安装reids

    [Unit]
    Description=Redis
    After=syslog.target network.target remote-fs.target nss-lookup.target
    [Service]
    Type=forking
    PIDFile=/var/run/redis_5372.pid
    ExecStart=/usr/local/redis/bin/redis-server /usr/local/redis/conf
    PrivateTmp=true
    [Install]
    WantedBy=multi-user.target

    相关文章

      网友评论

          本文标题:systemctl

          本文链接:https://www.haomeiwen.com/subject/oauppftx.html