1、RPM(redhat package manager红帽软件包管理器):通过将程序源代码与安装规则打包到一起,无需用户手动配置,降低软件的安装难度。(源代码+安装规则)
2、YUM:通过将大量的、常用的RPM软件包存放到一起,根据用户的要求分析出所需软件包及其依赖关系后进行自动安装,进一步降低软件的安装难度和复杂度。
3、Centos7之后从init完全换成了systemd的启动方式,systemd 启动服务的机制主要是通过 systemctl 的这个系统服务管理指令来处理。systemctl在用法上也囊括 service / chkconfig / setup / init 的大部分功能。
systemctl管理服务常用命令(rhel6-service)
systemctl start foo.service | 启动服务 |
systemctl restart foo.service | 重启服务 |
systemctl stop foo.service | 停止服务 |
systemctl reload foo.service | 重新加载配置文件(不终止服务) |
systemctl status foo.service | 查看服务状态 |
systemctl enable foo.service | 开机自动启动 |
systemctl管理服务常用命令(rhel6-chkconfig)
systemctl enable foo.service | 开机自动启动 |
systemctl disable foo.service | 开机不自动启动 |
systemctl is-enabled foo.service | 查看特定服务是否为开机自动启动 |
systemctl list-unit-files --type=service | 查看各个级别下服务的启动与禁用情况 |