1、网络配置 注:更改以上配置后需重启network服务 2、关闭防火墙的命令操作 首选检查防火墙状态#systemctl status firewalld.service 关闭防火墙:#systemctl stop firewalld.service 再次查看状态: 3、关闭SElinux的操作 ...
分类:
系统相关 时间:
2016-10-10 09:30:07
阅读次数:
320
Linux系统的启动方式有点复杂,而且总是有需要优化的地方。传统的Linux系统启动过程主要由著名的init进程(也被称为SysV init启动系统)处理,而基于init的启动系统被认为有效率不足的问题,systemd是Linux系统机器的另一种启动方式,宣称弥补了以传统Linux SysV ini ...
分类:
系统相关 时间:
2016-10-08 16:46:10
阅读次数:
202
systemctl --user enable pulseaudio说明:安装完成后系统没有声音,用该命令可以打开。ifconfig eth0 192.168.118.1说明:给网卡设置IP地址。apt-get install ugetapt-get install aria2说明:uget是kal ...
分类:
系统相关 时间:
2016-10-06 16:59:34
阅读次数:
294
[root@localhost Desktop]# ps auxUSER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMANDroot 1 0.0 0.3 192096 7456 ? Ss 03:03 0:03 /usr/lib/systemd/syst ...
分类:
系统相关 时间:
2016-10-03 19:03:19
阅读次数:
203
systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p ...
分类:
其他好文 时间:
2016-10-03 17:15:26
阅读次数:
3229
修改网卡配置文件(操作前先备份一下该文件),/etc/sysconfig/network-scripts/ifcfg-enp0s3 ,如下: 默认该文件中还有其他配置,可以都删除或注释。 修改网关配置文件,/etc/sysconfig/networ,如下: 重启服务 systemctl restar ...
分类:
其他好文 时间:
2016-10-03 17:08:18
阅读次数:
118
docker默认要求我们使用加密的方式访问registry。 如果你搭建的私有registry是非加密的怎么办呢? 手动起守护进程的话很简单。加上这个--insecure-registry参数就行了 如果是用服务起的话就需要修改配置文件了。要创建一个叫做/etc/systemd/system/doc ...
分类:
其他好文 时间:
2016-09-30 20:44:17
阅读次数:
119
下午,开心的看着dpdk的文档,做做各种小实验。 后台正常yaourt -Syu,三个多G的下载,我总是过很久才update一次。 然后KDE窗口各种异常,我知道又在开始更x相关的东西了。可是因为X异常所以看见konsole。于是脑残的我就reboot了。。。 是reboot,不是systemctl ...
分类:
数据库 时间:
2016-09-29 20:27:22
阅读次数:
249
[Unit]Description=mongodbAfter=network.targetremote-fs.targetnss-lookup.target[Service]Type=forkingPIDFile=/mongodb_data/data/mongod.lockExecStart=/usr/local/mongodb/mongod--dbpath=/mongodb_data/data/--logpath=/mongodb_data/log/mongodb.log
--logappend--fork..
分类:
数据库 时间:
2016-09-27 20:53:26
阅读次数:
429
以centos7.2容器中运行httpd服务为例子,默认下直接运行[root@b0b2a3ed40d6/]#systemctlstarthttpd.service
FailedtogetD-Busconnection:Operationnotpermitted在网上找到的解决方法:创建Dockerfile创建一个基础镜像FROMcentos:7.2
MAINTAINERhpsfpcca@163.com
ENVcontainerd..
分类:
其他好文 时间:
2016-09-27 20:41:49
阅读次数:
295