RHEL7启动的原理和服务控制本节所讲内容:1-1-RHEL7的启动原理1-2-1-2-RHEL7的服务管理1-3-1-3-网络模型与IP地址的概述BIOS自检->MBR启动GRUB加载内核systemd的init进程systemd的初始化进程作用:加载所需的服务和用户空间工具,挂载文件系统/etc/fstabsystemd是Linux内核启动..
分类:
其他好文 时间:
2016-08-27 00:46:02
阅读次数:
273
thinkphp 在Apache上配置启用伪静态,重启Apache1 restart 竟然失败了,报错 Job for httpd.service failed because the control process exited with error code. See "systemctl st ...
分类:
Web程序 时间:
2016-08-26 12:08:49
阅读次数:
2816
centos7和centos6的命名规则不同,centos6网卡名由udev控制 网卡名以eth开头然后第一块网卡叫eth0第二块网卡叫eth1,然后centos7的网卡命名规则截然不同 centos7的设备是由systemd-udev控制,具体怎么控制就不介绍了,网上资料很多 步入正题--》修改网 ...
分类:
其他好文 时间:
2016-08-26 10:46:29
阅读次数:
310
一systemd基本知识提高启动速度自动服务依赖管理systemd基本管理unitServiceunit.serviceAsystemservice.Targetunit.targetAgroupofsystemdunits.Automountunit.automountAfilesystemautomountpoint.Deviceunit.deviceAdevicefilerecognizedbythekernel.Mountunit.mountAfilesy..
分类:
其他好文 时间:
2016-08-24 17:45:47
阅读次数:
142
Customizing docker The Docker systemd unit can be customized by overriding the unit that ships with the default CoreOS settings. Common use-cases for ...
分类:
其他好文 时间:
2016-08-18 21:02:23
阅读次数:
256
本文来自我的github pages博客http://galengao.github.io/ 即www.gaohuirong.cn 摘要: swarm是docker原生的集群管理软件,与kubernetes比起来比较简单 1、部署 系统时centos7上关闭防火墙 systemctl stop fi ...
分类:
其他好文 时间:
2016-08-17 18:09:36
阅读次数:
224
修改默认启动从图形界面到命令行界面的方法:#rm-rfetc/systemd/sytstem/default.target(删除存在的软链接)#ln-sf/lib/systemd/system/multi-user.target/etc/systemd/system/default.target(重新建立软连接指向到“multi-user.target”#ll/etc/systemd/system/default.target
分类:
其他好文 时间:
2016-08-12 21:58:19
阅读次数:
112
Apache服务名称:httpd MySQL服务名称:mysqld VSFTP服务名称:vsftpd <!--CentOS7新指令--> 使某服务 自动启动 systemctl enable httpd.service 使某服务 不自动启动 systemctl disable httpd.servi ...
分类:
其他好文 时间:
2016-08-11 20:36:57
阅读次数:
196
mkdir/etc/systemd/system/docker.service.dvim/etc/systemd/system/docker.service.d/docker.conf[Service]ExecStart=ExecStart=/usr/bin/dockerd-Hfd://-D--tls=true--tlscert=/var/docker/server.pem--tlskey=/var/docker/serverkey.pem-Htcp://192.168.59.3:2376重启服务sy..
分类:
其他好文 时间:
2016-08-09 16:16:16
阅读次数:
159
log查看: sudo journalctl -fu docker.service 证书生成参考: https://docs.docker.com/engine/security/https/ vi /lib/systemd/system/docker.service: [Unit]Descript ...