rhel7启动配置的服务管理
来源:互联网 发布:淘宝货品上架 编辑:程序博客网 时间:2024/06/04 19:42
rhel7设置运行级别
systemctl使用目标取代了运行级别的概念
6 7
initsystemd
init0 àsystemctlpoweroff关机
init1 àsystemctlisolaterescue.target单用户
init3 àsystemctlisolatemulti-user.target字符界面
init5 àsystemctlisolategraphical.target图形化
init6 àsystemctlreboot重启
打开/etc/inittab 修改文件的内容将不再起作用
systemd使用target而不是运行级,默认情况下,有两个主要target
multi-user.target:类似于运行级别3
graphical.target:类似于运行级5
切换运行级别
systemctl isolate multi-user.target
rhel 7中grup引导配置
主配置文件
/boot/grub2/grub.cfg直接修改,换一个内核,之前的配置失效
/etc/default/grub默认修改
然后使用grub2-mkconfig命令生效。
vim /boot/grub2/grub.cfg
GRUB_TIMEOUT="5"->设置进入默认启动项的等候时间,默认值5秒,按自己需要修改
选择菜单的显示时间,默认是5,值是0表示不显示菜单选项,值是-1表示无限期的等待,直到用户
做出选择
安装httpd服务,设置为开机自启动
yum -y install httpd
systemctl enable httpd
systemctl disable httpd
启动\关闭httpd
systemctl start httpd
systemctl stop httpd
列出所有启动项
[root@localhost ~]# systemctl list-unit-files --type service
查看资源使用情况
[root@localhost ~]# systemd-cgtop
按c cpu使用率高到低排序
p 程序排序
m内存排序
t任务排序
- rhel7启动配置的服务管理
- RHEL7启动配置和服务管理
- linux之Rhel7的软件包管理及nginx服务的安装配置
- RHEL7 启动配置 加密
- 配置RHEL7的vnc
- linux基础(35)--服务管理--RHEL7
- RHEL7.0配置远程登录服务telnet
- Rhel7.2-Lnmp服务搭建及配置
- 开启RHEL7的VNC Server服务及防火墙配置的方法
- RHEL7中控制服务的方法---systemd
- RHEL7配置
- RHEL7(124) 用户和组的管理
- RHEL7网络管理相关的命令
- ubuntu下管理开机启动的服务
- 管理weblogic服务的启动和停止
- Ubuntu管理开机启动的服务
- linux 服务的启动和管理
- RHEL7中防火墙firewalld的配置
- Android IOS Http接口设计神器APIView
- 13.5 logging--Python灵活的日志功能
- #7. 【NOI2014】购票
- jQuery多个input求和的实现方法
- Android5.1设备无法识别exFAT文件系统的64G TF卡问题
- rhel7启动配置的服务管理
- Linux gcc安装
- 思想随笔(二)-人为什么而活着
- FreeCMS商业版如何修改分页样式?
- MyBatis学习总结(一)——MyBatis快速入门
- html Table实现表头固定
- 如何提高代码质量
- 内容分发网络CDN
- 澄清Java语言接口与继承的本质