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

相关文章

  • systemd学习笔记

    systemctl 重启 systemctl reboot 关闭 systemctl poweroff CPU停止...

  • 5. linux命令

    来源: http://man.linuxde.net/systemctl systemctl systemctl命...

  • Basic knowledge about systemd an

    systemctl --help #查詢systemctl指令用法systemctl list-units #查詢...

  • CentOS7 Failed to start LSB: Bri

    systemctl stop NetworkManager systemctl disable NetworkMa...

  • systemctl

    重新加载配置文件 systemctl daemon-reload 启动 systemctl start redi...

  • systemctl

    图形界面及命令行界面 设置开机默认界面为图形界面 设置开机默认界面为命令行界面 开机重启即可生效,当然也可不重启切...

  • systemctl

    centos 7 关闭防火墙: systemctl stop firewalld.service #停止firew...

  • systemctl

    systemctl相当于service和chkconfig的结合体,使用它可以永久性启用/禁止或临时关闭/启动某个...

  • systemctl

    systemctl(system control)-控制systemd系统和服务管理器。 描述: 向system ...

  • systemctl

网友评论

      本文标题:systemctl

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