linux系统日志与网络管理
2016-07-17 09:53
543 查看
linux系统日志与网络管理
1.
A. 进入防火墙配置文件:/etc/firewalld/zones/public.xml里,删除<servicename="ssh"/>
使用命令firewall-cmd --add-port=22/tcp增加端口,并通过命令firewall-cmd--list-all查看端口是否增加成功. netstat -ano|grep 22测试是否通过.
B.使用systemctl status sshd.service查看ssh服务, 使用命令systemctl stop sshd.service结束ssh服务.
C.使用systemctl statussshd. service查看服务状态,再使用命令systemctl disable sshd.service开机禁用ssh服务,
2.
内核:\S Kernel \r on an \m
发行版本:Red Hat Enterprise Linux Server release 7.2 (Maipo)
Cpu: Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 69
Model name: Intel(R) Core(TM) i5-4200U CPU @1.60GHz
Stepping: 1
CPU MHz: 2294.699
BogoMIPS: 4589.39
Hypervisor vendor: VMware
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 3072K
NUMA node0 CPU(s): 0
内存: MemTotal: 1001332 kB
MemFree: 79524 kB
MemAvailable: 233476 kB
Buffers: 220 kB
Cached: 258228 kB
SwapCached: 0 kB
Active: 448444 kB
Inactive: 160236 kB
Active(anon): 333128 kB
Inactive(anon): 25740 kB
Active(file): 115316 kB
Inactive(file): 134496 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 2097148 kB
SwapFree: 2097148 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 350228 kB
Mapped: 101308 kB
Shmem: 8636 kB
Slab: 86800 kB
SReclaimable: 33524 kB
硬盘: smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-327.el7.x86_64](local build)
Copyright (C) 2002-13, Bruce Allen,Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: VMware,
Product: VMware Virtual S
Revision: 1.0
User Capacity: 21,474,836,480 bytes [21.4 GB]
Logical block size: 512 bytes
Device type: disk
Local Time is: Tue Jul 12 23:31:49 2016 CST
SMART support is: Unavailable - device lacks SMART capability.
=== START OF READ SMART DATA SECTION ===
Error Counter logging not supported
Device does not support Self Test logging
主板: System Information
Manufacturer:VMware, Inc.
ProductName: VMware Virtual Platform
Version:None
SerialNumber: VMware-56 4d c8 92 6c 6a 58 5a-45 7e b9 af 0d 02 0b dd
UUID:92C84D56-6A6C-5A58-457E-B9AF0D020BDD
Wake-upType: Power Switch
SKUNumber: Not Specified
Family:Not Specified
Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
Manufacturer:Intel Corporation
ProductName: 440BX Desktop Reference Platform
Version:None
SerialNumber: None
AssetTag: Not Specified
1.
A. 进入防火墙配置文件:/etc/firewalld/zones/public.xml里,删除<servicename="ssh"/>
使用命令firewall-cmd --add-port=22/tcp增加端口,并通过命令firewall-cmd--list-all查看端口是否增加成功. netstat -ano|grep 22测试是否通过.
B.使用systemctl status sshd.service查看ssh服务, 使用命令systemctl stop sshd.service结束ssh服务.
C.使用systemctl statussshd. service查看服务状态,再使用命令systemctl disable sshd.service开机禁用ssh服务,
2.
内核:\S Kernel \r on an \m
发行版本:Red Hat Enterprise Linux Server release 7.2 (Maipo)
Cpu: Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 69
Model name: Intel(R) Core(TM) i5-4200U CPU @1.60GHz
Stepping: 1
CPU MHz: 2294.699
BogoMIPS: 4589.39
Hypervisor vendor: VMware
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 3072K
NUMA node0 CPU(s): 0
内存: MemTotal: 1001332 kB
MemFree: 79524 kB
MemAvailable: 233476 kB
Buffers: 220 kB
Cached: 258228 kB
SwapCached: 0 kB
Active: 448444 kB
Inactive: 160236 kB
Active(anon): 333128 kB
Inactive(anon): 25740 kB
Active(file): 115316 kB
Inactive(file): 134496 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 2097148 kB
SwapFree: 2097148 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 350228 kB
Mapped: 101308 kB
Shmem: 8636 kB
Slab: 86800 kB
SReclaimable: 33524 kB
硬盘: smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-327.el7.x86_64](local build)
Copyright (C) 2002-13, Bruce Allen,Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: VMware,
Product: VMware Virtual S
Revision: 1.0
User Capacity: 21,474,836,480 bytes [21.4 GB]
Logical block size: 512 bytes
Device type: disk
Local Time is: Tue Jul 12 23:31:49 2016 CST
SMART support is: Unavailable - device lacks SMART capability.
=== START OF READ SMART DATA SECTION ===
Error Counter logging not supported
Device does not support Self Test logging
主板: System Information
Manufacturer:VMware, Inc.
ProductName: VMware Virtual Platform
Version:None
SerialNumber: VMware-56 4d c8 92 6c 6a 58 5a-45 7e b9 af 0d 02 0b dd
UUID:92C84D56-6A6C-5A58-457E-B9AF0D020BDD
Wake-upType: Power Switch
SKUNumber: Not Specified
Family:Not Specified
Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
Manufacturer:Intel Corporation
ProductName: 440BX Desktop Reference Platform
Version:None
SerialNumber: None
AssetTag: Not Specified
相关文章推荐
- 【Linux系列】 Ubuntu系统的网络服务与此版本的网络管理器不兼容
- Bzoj1565:[NOI2009]植物大战僵尸:拓扑排序+网络流
- Linux/CentOS 同步网络时间
- opencv3接收rtsp网络视频流
- android网络编程之初体验
- ubuntu14.04安装http代理squid并设置用户名和密码
- 网络请求
- 『备忘』HttpWebRequest 在 POST 提交时, 标头(Headers)丢失原因
- 详解网络传输中的三张表,MAC地址表、ARP缓存表以及路由表
- PHP如何通过Http Post请求发送Json对象数据?
- win主机用web.config和httpd.ini实现301重定向
- Android中使用网络通信工具类
- Retrofit2.0使用
- NFS(网络文件系统的搭建)
- Android开发 HTTP 发送 Post 与 Get 请求
- HttpClient使用详解
- 局域网常用的几种网络拓扑结构及其特点。
- RxJava 与OKHttpClient实现登陆
- Tensorflow让神经网络自动创造音乐
- TCP、UDP协议,java网络通信基础