Linux查看服务器参数的方法
当Linux操作系统在运行的时候就会表征出各种各样参数信息,这些参数对于开发者们来说是非常重要的,那么你知道Linux怎么查看服务器参数吗?
下面我们就去看看Linux查看服务器参数的方法。
一、CPU大小
- [root@www.linuxidc.com ~]# more /proc/cpuinfo
- 可以看到详细内容或:
- [root@www.linuxidc.com ~]# cat /proc/cpuinfo |grep "model name" && cat /proc/cpuinfo |grep "physical id"
- model name: Intel(R) Xeon(TM) CPU 2.80GHz model name: Intel(R) Xeon(TM) CPU 2.80GHz
- model name: Intel(R) Xeon(TM) CPU 2.80GHz model name: Intel(R) Xeon(TM) CPU 2.80GHz
- physical id : 0 physical id : 0 physical id : 3 physical id : 3
- [root@www.linuxidc.com ~]#
- 说明:Linux下可以在/proc/cpuinfo中看到每个cpu的详细信息。但是对于双核的cpu,在cpuinfo中会看到两个cpu。常常会让人误以为是两个单核的cpu。
- 其实应该通过Physical Processor ID来区分单核和双核。而Physical Processor ID可以从cpuinfo或者dmesg中找到.
- flags 如果有 ht 说明支持超线程技术判断物理CPU的个数可以查看physical id 的值,相同则为同一个物理CPU 可以看到上面,
- 这台机器有两个双核的CPU,ID分别是0和3,大小是2.8G。
- 二、内存大小
- [root@www.linuxidc.com ~]# cat /proc/meminfo |grep MemTotal
- MemTotal: 1034612 kB
- [root@www.linuxidc.com ~]#
- 三、硬盘大小
- [root@www.linuxidc.com ~]# fdisk -l |grep Disk
- Disk /dev/sda: 300.0 GB, 300000000000 bytes
- [root@www.linuxidc.com ~]#
以上内容就关于Linux查看服务器参数的方法,想要学习的朋友们,赶快把Linux查看服务器参数的方法这篇文章收入囊中吧!
我司的美国精品ip段:
104.192.87.1
104.192.87.2
104.192.87.3
104.192.87.4
104.192.87.5
104.192.87.6
104.192.87.7
104.192.87.8
104.192.87.9
104.192.87.10
104.192.87.11
104.192.87.12
104.192.87.13
104.192.87.14
104.192.87.15
104.192.87.16
104.192.87.17
104.192.87.18
104.192.87.19
104.192.87.20
104.192.87.21
104.192.87.22
104.192.87.23
104.192.87.24
104.192.87.25
104.192.87.26
104.192.87.27
104.192.87.28
104.192.87.29
104.192.87.30
104.192.87.31
104.192.87.32
104.192.87.33
104.192.87.34
104.192.87.35
104.192.87.36
104.192.87.37
104.192.87.38
104.192.87.39
104.192.87.40
104.192.87.41
104.192.87.42
104.192.87.43
104.192.87.44
104.192.87.45
104.192.87.46
104.192.87.47
104.192.87.48
104.192.87.49
104.192.87.50
104.192.87.51
104.192.87.52
104.192.87.53
104.192.87.54
104.192.87.55
104.192.87.56
104.192.87.57
104.192.87.58
104.192.87.59
104.192.87.60
104.192.87.61
104.192.87.62
104.192.87.63
104.192.87.64
104.192.87.65
104.192.87.66
104.192.87.67
104.192.87.68
104.192.87.69
104.192.87.70
104.192.87.71
104.192.87.72
104.192.87.73
104.192.87.74
104.192.87.75
104.192.87.76
104.192.87.77
104.192.87.78
104.192.87.79
104.192.87.80
104.192.87.81
104.192.87.82
104.192.87.83
104.192.87.84
104.192.87.85
104.192.87.86
104.192.87.87
104.192.87.88
104.192.87.89
104.192.87.90
104.192.87.91
104.192.87.92
104.192.87.93
104.192.87.94
104.192.87.95
104.192.87.96
104.192.87.97
104.192.87.98
104.192.87.99
104.192.87.100
104.192.87.101
104.192.87.102
104.192.87.103
104.192.87.104
104.192.87.105
104.192.87.106
104.192.87.107
104.192.87.108
104.192.87.109
104.192.87.110
104.192.87.111
104.192.87.112
104.192.87.113
104.192.87.114
104.192.87.115
104.192.87.116
104.192.87.117
104.192.87.118
104.192.87.119
104.192.87.120
104.192.87.121
104.192.87.122
104.192.87.123
104.192.87.124
104.192.87.125
104.192.87.126
104.192.87.127
104.192.87.128
104.192.87.129
104.192.87.130
104.192.87.131
104.192.87.132
104.192.87.133
104.192.87.134
104.192.87.135
104.192.87.136
104.192.87.137
104.192.87.138
104.192.87.139
104.192.87.140
104.192.87.141
104.192.87.142
104.192.87.143
104.192.87.144
104.192.87.145
104.192.87.146
104.192.87.147
104.192.87.148
104.192.87.149
104.192.87.150
104.192.87.151
104.192.87.152
104.192.87.153
104.192.87.154
104.192.87.155
104.192.87.156
104.192.87.157
104.192.87.158
104.192.87.159
104.192.87.160
104.192.87.161
104.192.87.162
104.192.87.163
104.192.87.164
104.192.87.165
104.192.87.166
104.192.87.167
104.192.87.168
104.192.87.169
104.192.87.170
104.192.87.171
104.192.87.172
104.192.87.173
104.192.87.174
104.192.87.175
104.192.87.176
104.192.87.177
104.192.87.178
104.192.87.179
104.192.87.180
104.192.87.181
104.192.87.182
104.192.87.183
104.192.87.184
104.192.87.185
104.192.87.186
104.192.87.187
104.192.87.188
104.192.87.189
104.192.87.190
104.192.87.191
104.192.87.192
104.192.87.193
104.192.87.194
104.192.87.195
104.192.87.196
104.192.87.197
104.192.87.198
104.192.87.199
104.192.87.200
104.192.87.201
104.192.87.202
104.192.87.203
104.192.87.204
104.192.87.205
104.192.87.206
104.192.87.207
104.192.87.208
104.192.87.209
104.192.87.210
104.192.87.211
104.192.87.212
104.192.87.213
104.192.87.214
104.192.87.215
104.192.87.216
104.192.87.217
104.192.87.218
104.192.87.219
104.192.87.220
104.192.87.221
104.192.87.222
104.192.87.223
104.192.87.224
104.192.87.225
104.192.87.226
104.192.87.227
104.192.87.228
104.192.87.229
104.192.87.230
104.192.87.231
104.192.87.232
104.192.87.233
104.192.87.234
104.192.87.235
104.192.87.236
104.192.87.237
104.192.87.238
104.192.87.239
104.192.87.240
104.192.87.241
104.192.87.242
104.192.87.243
104.192.87.244
104.192.87.245
104.192.87.246
104.192.87.247
104.192.87.248
104.192.87.249
104.192.87.250
104.192.87.251
104.192.87.252
104.192.87.253
104.192.87.254
104.192.87.255