一、配置防火墙,开启FTP服务器需要的端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable fire ...
分类:
其他好文 时间:
2016-11-13 16:18:15
阅读次数:
281
一:概述CentOS7继承了RHEL7的新的特性,例如强大的systemctl,而systemctl的使用也使得以往系统服务的/etc/init.d/的启动脚本的方式就此改变,也大幅提高了系统服务的运行效率。但服务的配置和以往也发生了极大的不同。CentOS7的服务systemctl脚本存放在:/usr/lib/systemd/,..
分类:
其他好文 时间:
2016-11-10 14:56:25
阅读次数:
364
systemctl命令是系统服务管理器指令,它实际上将 service 和 chkconfig 这两个命令组合到一起。 实例: 启动nfs服务:systemctl start nfs-server.service 设置开机自启动:systemctl enable nfs-server.service ...
分类:
其他好文 时间:
2016-11-10 11:54:27
阅读次数:
203
第八章一、系统服务的控制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
因为要给特殊的虚拟机关联文件指定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