zoukankan      html  css  js  c++  java
  • systemctl服务------字符和图像界面切换systemctl set-default multi-user.target systemctl isolate multi-user.target #当前立即进入字符模式 [root@room4pc09 桌面]# systemctl isolate graphical.target #当前立即进入图形模式

    • 查看服务运行状态
    [root@room4pc09 桌面]# systemctl status crond       #查看服务运行状态
    ● crond.service - Command Scheduler
       Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; vendor preset: enabled)
       Active: active (running) since 二 2019-01-29 21:52:22 CST; 1 day 12h ago
     Main PID: 1403 (crond)
       CGroup: /system.slice/crond.service
               └─1403 /usr/sbin/crond -n
    
    1月 29 21:52:22 room4pc09.tedu.cn systemd[1]: Started Command Scheduler.
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 查看服务是否开启
    [root@room4pc09 桌面]# systemctl is-enabled crond.service #查看服务是否开启 
    enabled
    
    •  
    • 查看服务是否活跃
    [root@room4pc09 桌面]# systemctl is-active crond
    active
    
    • 1
    • 2
    • 字符模式:multi-user.target
    • 图形模式:graphical.target
    [root@room4pc09 桌面]# systemctl get-default   #查看默认模式
    multi-user.target
    
    • 1
    • 2
      systemctl set-default multi-user.target
    • 设置默认的运行模式
    [root@room4pc09 桌面]# systemctl set-default graphical.target  #设置为图形模式 
    Removed symlink /etc/systemd/system/default.target.
    Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.
    [root@room4pc09 桌面]# systemctl get-default  #查看默认模式
    graphical.target
    [root@room4pc09 桌面]# reboot               #重启
    
    •  
    [root@room4pc09 桌面]# systemctl isolate multi-user.target   #当前立即进入字符模式
    [root@room4pc09 桌面]# systemctl isolate graphical.target  #当前立即进入图形模式
  • 相关阅读:
    玉蓉方面膜加盟费多少 玉蓉方绿豆面膜怎么做代理 怎么加盟玉蓉方
    音频处理软件:GoldWave,太强大了,批量处理音频
    杂记 SY
    ThinkPHP函数详解--D函数:实例化数据模型类
    杂记
    如何选择jQuery版本 1.x? 2.x? 3.x?
    传值涉及到中文字符串时,字符编码的问题
    对数字进行分组处理:每10个为一组
    mac下安装protocol buffer并用python解析
    淘宝返利攻略
  • 原文地址:https://www.cnblogs.com/xuanbjut/p/14235111.html
Copyright © 2011-2022 走看看