####################3.日志分析工具journal####################systemd-journald##进程名称####################[root@localhost~]#cd/root/Desktop/[root@localhostDesktop]#psaux|grepjournaldroot3650.20.2411642608?Ss21:290:00/usr/lib/systemd/systemd-journaldroot295..
分类:
系统相关 时间:
2016-10-21 17:02:28
阅读次数:
443
systemctl命令1.什么是服务?service服务就是在系统中运行的软件,这个软件主要是对外提供某项功能,那么我们把这一类软件叫做服务2.服务管理,systemctl命令systemctlstart服务名称###开启服务stop。。。。###关闭服务restart。。。。###重启服务reload。。。。###重新加在服..
分类:
其他好文 时间:
2016-10-19 14:52:11
阅读次数:
166
<<<第十单元练习题>>>1.配置desktop主机和server主机的日志服务要求如下:*)desktop主机中的日志全部定向到/var/log/westos文件中*)时时同步desktop主机中的所有日志到server中5.配置系统中的systemd-journal程序,使journal命令可以查看到关机前的日志1.d..
分类:
其他好文 时间:
2016-10-18 23:27:26
阅读次数:
267
由于centos安装完毕后一般给root只有50G左右,而home牛大, 所以多数时候需要把home弄小,root给扩展大一点 折腾一下 首先切好用户到root用户登陆,我用的systemctl set-default muilti-user.target方式切换到字符ui,然后登陆到root用户 ...
分类:
其他好文 时间:
2016-10-18 15:55:37
阅读次数:
695
以下以root用户执行 1、安装: # yum install samba samba-client -y 2、设置开机启动: # systemctl enable smb.service ln -s '/usr/lib/systemd/system/smb.service' '/etc/syste ...
分类:
其他好文 时间:
2016-10-18 02:16:29
阅读次数:
263
一、CentOS的Services使用了systemd来代替sysvinit管理 1、systemd的服务管理程序: systemctl是主要的工具,它融合之前service和chkconfig的功能于一体。可以使用它永久性或只在当前会话中启用/禁用服务。 systemctl可以列出正在运行的服务状 ...
分类:
其他好文 时间:
2016-10-18 01:41:32
阅读次数:
246
WonCloud9下载地址: https://download.owncloud.org/community/owncloud-9.1.1.zip //安装配置数据库 #yum install mariadb-server mariadb# systemctl start mariadb# syst ...
分类:
其他好文 时间:
2016-10-17 14:32:29
阅读次数:
159
一、Centos CentOS 7 默认没有使用iptables,所以无法通过编辑iptables的配置文件来开启端口。 CentOS 7 采用了 firewalld 防火墙,首先使用如下命令开启firewalld。 #systemctl start firewalld 假设我们要查询是否开启了21 ...
分类:
系统相关 时间:
2016-10-17 09:11:58
阅读次数:
213
openssh-serverpstree查看初始化systemctl进程的查看以及管理1.systemd系统初始化程序,系统开始的第一个进程,pid=12.systemctl命令systenctllist-units列出当前系统服务的状态systenctllist-unit-files列出服务的开机状态systenctlstatussshd查看指定服务的状态systenctlstop..
分类:
系统相关 时间:
2016-10-12 23:40:59
阅读次数:
188
Onper-vm#systemctlstopdhcpd#systemctldisabledhcpd#tzselect//timezoneselection[root@workstation~]#yum-yinstallntp#vim/etc/ntp.conf//#server0,1,2,3,restrict192.168.85.0mask255.255.255.0nomodifynotrapserverasia.pool.ntp.orgiburst#systemctlrestartntpd#systemctl..
分类:
其他好文 时间:
2016-10-12 23:09:32
阅读次数:
172