1、执行service network restart出现以下错误Restarting network (via systemctl): Job for network.service failed. See 'systemctl status network.service' and 'journ...
分类:
Web程序 时间:
2015-03-20 10:39:17
阅读次数:
187
在 Fedora 中,貌似已经不再使用网络上总提到的 iptables 了。但关闭防火墙的方法还是一样的。 ## 关闭防火墙 Fedora中,防火墙的服务为 `firewalld` 。 sudo systemctl stop firewalld.service # 暂时关闭,重启...
分类:
其他好文 时间:
2015-03-15 02:18:52
阅读次数:
203
XvfbChangetheUser=andGroup=parameters:/etc/systemd/system/xinit.service[Unit]
Description=xinitwithxvfb
After=network.target
[Service]
User=bitlbee
Group=bitlbee
ExecStart=/usr/bin/xvfb-runbash%h/.xinitrc
[Install]
WantedBy=multi-user.targetslockLocksthes..
分类:
其他好文 时间:
2015-03-13 19:07:07
阅读次数:
431
systemd是Linux下的一款系统和服务管理器,兼容SysV和LSB的启动脚本。systemd的特性有:支持并行化任务;同时采用socket式与D-Bus总线式激活服务;按需启动守护进程(daemon);利用Linux的cgroups监视进程;支持快照和系统恢复;维护挂载点和自动挂载点;各服务间基于依赖关系..
分类:
其他好文 时间:
2015-03-13 19:06:56
阅读次数:
343
systemd里有rc-local.service,只需要再写一个rc.local的脚本即可。1、编辑/usr/lib/systemd/system/rc-local.service文件:[Unit]Description=/etc/rc.d/rc.localCompatibilityAfter=network.target[Service]Type=forkingExecStart=/etc/rc.d/rc.localstartTimeoutSec=0RemainA..
分类:
其他好文 时间:
2015-03-09 01:57:15
阅读次数:
14073
CentOS7这个版本的防火墙默认使用的是firewall,与之前的版本使用iptables不一样。所以可以按如下方便配置防火墙。 1. 关闭firewall: $?sudo?systemctl?stop?firewalld.service??????????????...
分类:
其他好文 时间:
2015-03-08 17:26:31
阅读次数:
300
1现象:ntpd老是没法开启,ntpd -d显示有个进程占用123端口。[root@vd13crmtb01 ~]# systemctl enable ntpd.service //开机自启动 调整之后重启系统,可是发现ntp并没有启动起来[root@vd13crmtb01 ~]# pgrep ...
分类:
其他好文 时间:
2015-03-06 16:15:09
阅读次数:
185
查看linux的启动系统类型目前主流的linux主要是两种sysVinit和upstart,以及最近饱受争议的systemd。那么怎么查看自己操作系统的启动系统哪?之前网上有人使用pstree命令,查看第一行来进行判断。不是特别准确。我使用ls-l/sbin/init觉得还是比较准确的。例如:centos5[root@zh..
分类:
系统相关 时间:
2015-02-27 18:53:49
阅读次数:
149
参考:http://oracle-base.com/articles/linux/linux-firewall-firewalld.php?utm_source=tuicool CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 firewall: systemctl start firewall...
分类:
其他好文 时间:
2015-02-25 15:43:56
阅读次数:
163
我正在使用的一体机是双显卡,在linux下没有很么太好的办法来切换双显卡,导致使用一会儿后就发烫,关键是这时风扇呜呜的响很吵人最后找到了下面的解决方法来关掉独立显卡见 https://github.com/marcoDallas/acpi_call_GUI_systemd
分类:
系统相关 时间:
2015-02-23 16:37:23
阅读次数:
221