安装 #yum install libcgroup-tools.x86_64 0:0.41-8.el7 配置文件 /etc/cgconfig.conf /etc/cgconfig.d /etc/cgrules.conf /etc/cgsnapshot_blacklist.conf /etc/sysc ...
分类:
其他好文 时间:
2016-11-08 02:14:14
阅读次数:
510
第八章一、系统服务的控制1.systemed:系统初始化程序,系统开始的第一个进程,pid为1.2.systemctl命令:systemctlliat-units列出当前系统服务的状态systemctllist-unit-files列出服务的开机状态systemctlstatussshd查看指定服务的状态systemctlstopsshd关闭指定服务systemctlst..
分类:
系统相关 时间:
2016-11-07 22:48:22
阅读次数:
374
问题:VMware虚拟机中的Centos7无法SSH登陆,重启SSH服务和虚拟机皆无效,在本地输入命令ssh127.0.0.1也无法登陆,提示Readfromsocketfailed:Connectionresetbypeer。解决:#ssh-keygen-tdsa-f/etc/ssh/ssh_host_dsa_key
#ssh-keygen-tdsa-f/etc/ssh/ssh_host_dsa_key
#systemctl..
分类:
其他好文 时间:
2016-11-07 20:02:57
阅读次数:
179
server:192.168.1.123 client:192.168.1.132 1.server配置 1)编辑 /etc/rsyslog.conf s2) 2)重启rsyslog服务 systemctl restart rsyslog3)查看服务监听的状态 netstat -anlpt| gre ...
分类:
其他好文 时间:
2016-11-05 23:42:28
阅读次数:
183
其实并不是不支持声卡驱动了。只是root用户下默认关闭。systemctl --user enable pulseaudio leafpad 编辑 /etc/default/pulseaudio 写入以下两行即可。#root下是默认关闭声卡驱动的, 开机自动开启PULSEAUDIO_SYSTEM_S ...
分类:
其他好文 时间:
2016-11-04 23:05:18
阅读次数:
319
1、下载私服镜像docker pull registry 2、启动容器docker run -d -p 5000:5000 -v /opt/data/registry:/var/lib/registry --restart=always registry 3、修改仓库地址/lib/systemd/s ...
分类:
其他好文 时间:
2016-11-04 19:47:34
阅读次数:
232
在Azure上目前已经有基于Samba协议的共享存储了。 但目前在Azure上,还不能把Disk作为共享盘。而在实际的应用部署中,共享盘是做集群的重要组件之一。比如仲裁盘、Shared Disk等。 本文将介绍,如果通过基于Samba的文件共享,加上Linux的Target、iscsid以及mult ...
分类:
其他好文 时间:
2016-11-04 16:17:49
阅读次数:
295
因为要给特殊的虚拟机关联文件指定selinux标签,而默认的Libvirt没有这个功能,所以需要修改LIbvirt源代码,重新编译安装Libvirt,而手动编译安装的LIbvirt,没有办法使用systemctl管理libvirtd服务,只能通过libvirtd -d的方式手动启动。然而,手动启动的 ...
分类:
其他好文 时间:
2016-11-02 20:31:53
阅读次数:
748
CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firew ...
分类:
系统相关 时间:
2016-11-02 07:51:31
阅读次数:
210