03 开始使用openEuler操作系统

2023-11-02

03 开始使用openEuler操作系统

3.1 目标

开始使用openEuler操作系统,能够区分GUI与CLI、学习Linux的两种登录方式、了解登录界面各项参数的含义、使用了解shell以及一些基础的快捷键、使用命令查看基本的系统信息。

3.2 Linux以及openEuler中的GUI与CLI

  • GUI(Graphical User Interface,图形用户界面),可以让用户使用鼠标作为输入工具,来进行各项操作。
  • CLI(Command Line Interface,命令行界面),用户界面字符化,用户可以使用键盘作为输入工具,来使用命令进行各项操作。
  • openEuler目前默认没有GUI界面,使用bash shell作为默认shell的CLI环境。
  • openEuler支持安装UKUI、DDE、XFCE、GNOME的GUI环境。

3.3 Linux的两种登录方式

3.3.1 本地登录

  • 控制台打开显示器,便可在本地输入账号密码进行登录。(**注意:**Linux在输入密码时为不显示状态,这属于正常情况)。
  • 对于没有启用或者安装GUI的,我们可以使用Ctrl+Alt+F[1-6]在1-6号虚拟控制台进行切换(默认登录为1号控制台)。
  • 对于安装了GUI的操作系统,1号控制台为用户选择界面,2号控制台为GUI桌面,3-6号为4个CLI虚拟控制台,一样可以使用Ctrl+Alt+F[1-6]进行切换。

3.3.2 远程登陆

  • openEuler等诸多linux都支持ssh的远程登陆,当然也可以关闭。

  • 在SecureCRT、Xshell、PuTTY及各种linux cli使用”ssh username@ip/主机名/域名(其中“/”为或的关系,如果要使用主机名,则要保证hosts文件中有定义,如果要使用域名进行登录,则要保证域名解析可达)。

  • 远程登陆端口默认为22,如果有做修改,在linux中可以使用”ssh username@ip/主机名/域名 -p 端口号”来进行登录。

  • 一些系统为了增强远程登陆的系统安全性,会不允许使用账号以及密码进行登陆,而使用公钥进行身份验证,当设置密钥配对成功时,则不需要密码便可以登陆成功。

3.4 退出登录(注销)

  • 值得注意的是,不管是远程登陆还是本地登录想要退出当前登录时,我们可以使用 exit 或者 Ctrl+d 进行退出。

3.5 openEuler登录界面参数解析

Authorized users only. All activities may be monitored and reported.

Authorized users only. All activities may be monitored and reported.
Activate the web console with: systemctl enable --now cockpit.socket

Last login: Mon Nov 28 22:28:57 2022


Welcome to 5.10.0-60.18.0.50.oe2203.x86_64

System information as of time:  2022年 11月 28日 星期一 22:33:35 CST

System load:    0.00
Processes:      153
Memory used:    8.5%
Swap used:      0%
Usage On:       7%
IP address:     192.168.0.21
IP address:     192.168.122.1
Users online:   2


[root@scfuture-21 ~]#
  • System load为系统最近1分钟的平均负载(越接近n代表负载越高,n代表操作系统cpu的核数);

  • Processes代表正在跑的进程数量;

  • Memory used代表内存使用量的百分比;

  • Swap used 代表Swap交换分区使用量的百分比;

  • Usage On代表了根分区的使用率;

  • IP address代表当前ip地址;

  • Users online代表当前连接的用户数。

此开机脚本被定义在/etc/profile.d/system-info.sh中。

[root@scfuture-21 ~]# cat /etc/profile.d/system-info.sh
#/bin/bash
#Copyright (c) [2019] Huawei Technologies Co., Ltd.
#generic-release is licensed under the Mulan PSL v2.
#You can use this software according to the terms and conditions of the Mulan PSL v2.
#You may obtain a copy of Mulan PSL v2 at:
#     http://license.coscl.org.cn/MulanPSL2
#THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
#IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
#PURPOSE.
#See the Mulan PSL v2 for more details.

# Welcome
welcome=$(uname -r)

# Memory
memory_total=$(cat /proc/meminfo | awk '/^MemTotal:/ {printf($2)}')
memory_free=$(cat /proc/meminfo | awk '/^MemFree:/ { printf($2)}')
buffers=$(cat /proc/meminfo | awk '/^Buffers:/ { printf($2)}')
cached=$(cat /proc/meminfo | awk '/^Cached:/ { printf($2)}')
sreclaimable=$(cat /proc/meminfo | awk '/^SReclaimable:/ { printf($2)}')
swap_total=$(cat /proc/meminfo | awk '/^SwapTotal:/ { printf($2)}')
swap_free=$(cat /proc/meminfo | awk '/^SwapFree:/ { printf($2)}')


if [ $memory_total -gt 0 ]
then
    memory_usage=`echo "scale=1; ($memory_total - $memory_free - $buffers - $cached - $sreclaimable) * 100.0 / $memory_total" |bc`
    memory_usage="$1.19MB%"
else
    memory_usage=0.0%
fi

# Swap memory
if [ $swap_total -gt 0 ]
then
    swap_mem=`echo "scale=1; ($swap_total - $swap_free) * 100.0 / $swap_total" |bc`
    swap_mem="${swap_mem}%"
else
    swap_mem=0.0%
fi

# Usage
usageof=$(df -h / | awk '/\// {print $(NF-1)}')

# System load
load_average=$(awk '{print $1}' /proc/loadavg)

# WHO I AM
whoiam=$(whoami)

# Time
time_cur=$(date)

# Processes
processes=$(ps aux | wc -l)

# Users
user_num=$(users | wc -w)

# Ip address
ip_pre=""
if [ -x "/sbin/ip" ]
then
    ip_pre=$(/sbin/ip a | grep inet | grep -v "127.0.0.1" | grep -v inet6 | awk '{print $2}')
fi

echo -e "\n"
echo -e "Welcome to $welcome\n"
echo -e "System information as of time: \t$time_cur\n"
echo -e "System load: \t\033[0;33;40m$load_average\033[0m"
echo -e "Processes: \t$processes"
echo -e "Memory used: \t$memory_usage"
echo -e "Swap used: \t$swap_mem"
echo -e "Usage On: \t$usageof"
for line in $ip_pre
do
    ip_address=${line%/*}
    echo -e "IP address: \t$ip_address"
done
echo -e "Users online: \t$user_num"
if [ "$whoiam" == "root" ]
then
    echo -e "\n"
else
    echo -e "To run a command as administrator(user \"root\"),use \"sudo <command>\"."
fi

[root@scfuture-21 ~]# 

3.6 Shell以及openEuler中Shell的简介

  • Shell是一种c语言编写的命令解释程序。

  • 常见的Shell有bash、sh、csh、ksh,通常可以通过输入shell名来切换不同shell,并可以使用exit命令退回原来的shell。

[root@scfuture-21 ~]# sh
sh-5.1# exit
exit
[root@scfuture-21 ~]# 
  • openEuler默认的shell为bash。
[root@scfuture-21 ~]# echo $SHELL
/bin/bash
[root@scfuture-21 ~]# 
  • 值得一提的是,bash shell率先实现了许多高级功能,如tab补全、文件夹&可执行文件高亮等,故一般linux均采用bash为默认shell。同时bash解释程序也足够轻量,只有1.2mb左右。
[root@scfuture-21 ~]# ll -h /bin/bash
-rwxr-xr-x. 1 root root 1.2M 12月  2  2021 /bin/bash
[root@scfuture-21 ~]# 
  • Shell的默认系统提示符为:[username@hostname current_directory]# 或者[username@hostname current_directory]$ (注意,#代表超级用户,KaTeX parse error: Expected 'EOF', got '#' at position 20: …用户,判断是否为超级用户可以从#̲还是来判断,不能使用用户名判断!)。
[root@scfuture-21 ~]# 
[root@scfuture-21 ~]# su - superman


Welcome to 5.10.0-60.18.0.50.oe2203.x86_64

System information as of time:  2022年 11月 28日 星期一 22:40:19 CST

System load:    0.00
Processes:      151
Memory used:    8.6%
Swap used:      0%
Usage On:       7%
IP address:     192.168.0.21
IP address:     192.168.122.1
Users online:   2
To run a command as administrator(user "root"),use "sudo <command>".
[superman@scfuture-21 ~]$

3.7 使用命令查看基本的系统信息

  • 查看系统信息,命令如下:
# cat /etc/os-release

例如,命令和输出如下:

[root@scfuture-21 ~]# cat /etc/os-release
NAME="openEuler"
VERSION="22.03 LTS"
ID="openEuler"
VERSION_ID="22.03"
PRETTY_NAME="openEuler 22.03 LTS"
ANSI_COLOR="0;31"

[root@scfuture-21 ~]# 
  • 查看CPU信息,命令如下:

方法一:

[root@scfuture-21 ~]# lscpu
架构:                   x86_64
  CPU 运行模式:         32-bit, 64-bit
  Address sizes:         45 bits physical, 48 bits virtual
  字节序:               Little Endian
CPU:                     2
  在线 CPU 列表:        0,1
厂商 ID:                GenuineIntel
  BIOS Vendor ID:        GenuineIntel
  型号名称:             Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
    BIOS Model name:     Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
    CPU 系列:           6
    型号:               142
    每个核的线程数:     1
    每个座的核数:       2
    座:                 1
    步进:               10
    BogoMIPS:           3600.00
    标记:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp
                          lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2api
                         c movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti ssbd ibrs ibp
                         b stibp fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves arat md_clear f
                         lush_l1d arch_capabilities
Virtualization features: 
  超管理器厂商:         VMware
  虚拟化类型:           完全
Caches (sum of all):     
  L1d:                   64 KiB (2 instances)
  L1i:                   64 KiB (2 instances)
  L2:                    512 KiB (2 instances)
  L3:                    6 MiB (1 instance)
NUMA:                    
  NUMA 节点:            1
  NUMA 节点0 CPU:       0,1
Vulnerabilities:         
  Itlb multihit:         KVM: Mitigation: VMX unsupported
  L1tf:                  Mitigation; PTE Inversion
  Mds:                   Mitigation; Clear CPU buffers; SMT Host state unknown
  Meltdown:              Mitigation; PTI
  Spec store bypass:     Mitigation; Speculative Store Bypass disabled via prctl and seccomp
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Full generic retpoline, IBPB conditional, IBRS_FW, STIBP disabled, RSB filling
  Srbds:                 Unknown: Dependent on hypervisor status
  Tsx async abort:       Not affected
[root@scfuture-21 ~]#

方法二:

[root@scfuture-21 ~]# cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 142
model name      : Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
stepping        : 10
microcode       : 0xca
cpu MHz         : 1800.003
cache size      : 6144 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves arat md_clear flush_l1d arch_capabilities
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds
bogomips        : 3600.00
clflush size    : 64
cache_alignment : 64
address sizes   : 45 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 142
model name      : Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
stepping        : 10
microcode       : 0xca
cpu MHz         : 1800.003
cache size      : 6144 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves arat md_clear flush_l1d arch_capabilities
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds
bogomips        : 3600.00
clflush size    : 64
cache_alignment : 64
address sizes   : 45 bits physical, 48 bits virtual
power management:

[root@scfuture-21 ~]# 

方法三:

[root@scfuture-21 ~]# top
top - 22:47:03 up  1:02,  2 users,  load average: 0.00, 0.00, 0.00
Tasks: 145 total,   1 running, 144 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni, 99.8 id,  0.0 wa,  0.2 hi,  0.0 si,  0.0 st
MiB Mem :   3380.5 total,   2539.1 free,    284.5 used,    556.8 buff/cache
MiB Swap:   8192.0 total,   8192.0 free,      0.0 used.   2735.1 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                           
  13920 root      20   0    9904   3984   3284 R   0.3   0.1   0:00.03 top                                                                               
      1 root      20   0  168900  17020   8780 S   0.0   0.5   0:01.94 systemd                                                                           
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.01 kthreadd                                                                          
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp                                                                            
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par_gp                                                                        
      5 root      20   0       0      0      0 I   0.0   0.0   0:02.61 kworker/0:0-ata_sff                                                               
      6 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/0:0H-events_highpri                                                       
      8 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mm_percpu_wq                                                                      
      9 root      20   0       0      0      0 S   0.0   0.0   0:00.00 rcu_tasks_rude_                                                                   
     10 root      20   0       0      0      0 S   0.0   0.0   0:00.00 rcu_tasks_trace                                                                   
     11 root      20   0       0      0      0 S   0.0   0.0   0:00.01 ksoftirqd/0                                                                       
     12 root      20   0       0      0      0 I   0.0   0.0   0:02.32 rcu_sched                                                                         
     13 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 migration/0                                                                       
     14 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/0                                                                           
     15 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/1                                                                           
     16 root      rt   0       0      0      0 S   0.0   0.0   0:00.12 migration/1                                                                       
     17 root      20   0       0      0      0 S   0.0   0.0   0:00.14 ksoftirqd/1                                                                       
     19 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/1:0H-events_highpri                                                       
     22 root      20   0       0      0      0 S   0.0   0.0   0:00.01 kdevtmpfs                                                                         
     23 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 netns                                                                             
     24 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kauditd                                                                           
     29 root      20   0       0      0      0 S   0.0   0.0   0:00.00 khungtaskd                                                                        
     30 root      20   0       0      0      0 S   0.0   0.0   0:00.00 oom_reaper                                                                        
     31 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 writeback                                                                         
     32 root      20   0       0      0      0 S   0.0   0.0   0:00.04 kcompactd0                                                                        
     33 root      25   5       0      0      0 S   0.0   0.0   0:00.00 ksmd                                                                              
[root@scfuture-21 ~]# 
[root@scfuture-21 ~]# top   -----执行top后输入1
top - 22:47:35 up  1:03,  2 users,  load average: 0.00, 0.00, 0.00
Tasks: 145 total,   1 running, 144 sleeping,   0 stopped,   0 zombie
%Cpu0  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu1  :  0.0 us,  0.3 sy,  0.0 ni, 99.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :   3380.5 total,   2539.1 free,    284.5 used,    556.8 buff/cache
MiB Swap:   8192.0 total,   8192.0 free,      0.0 used.   2735.1 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                           
     12 root      20   0       0      0      0 I   0.3   0.0   0:02.37 rcu_sched                                                                         
    790 root      20   0   79156   1612   1368 S   0.3   0.0   0:00.31 irqbalance                                                                        
      1 root      20   0  168900  17020   8780 S   0.0   0.5   0:01.94 systemd                                                                           
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.01 kthreadd                                                                          
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp                                                                            
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par_gp                                                                        
      5 root      20   0       0      0      0 I   0.0   0.0   0:02.61 kworker/0:0-ata_sff                                                               
      6 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/0:0H-events_highpri                                                       
      8 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mm_percpu_wq                                                                      
      9 root      20   0       0      0      0 S   0.0   0.0   0:00.00 rcu_tasks_rude_                                                                   
     10 root      20   0       0      0      0 S   0.0   0.0   0:00.00 rcu_tasks_trace                                                                   
     11 root      20   0       0      0      0 S   0.0   0.0   0:00.01 ksoftirqd/0                                                                       
     13 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 migration/0                                                                       
     14 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/0                                                                           
     15 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/1                                                                           
     16 root      rt   0       0      0      0 S   0.0   0.0   0:00.12 migration/1                                                                       
     17 root      20   0       0      0      0 S   0.0   0.0   0:00.14 ksoftirqd/1                                                                       
     19 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/1:0H-events_highpri                                                       
     22 root      20   0       0      0      0 S   0.0   0.0   0:00.01 kdevtmpfs                                                                         
     23 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 netns                                                                             
     24 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kauditd                                                                           
     29 root      20   0       0      0      0 S   0.0   0.0   0:00.00 khungtaskd                                                                        
     30 root      20   0       0      0      0 S   0.0   0.0   0:00.00 oom_reaper                                                                        
     31 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 writeback                                                                         
     32 root      20   0       0      0      0 S   0.0   0.0   0:00.04 kcompactd0                                                                        
[root@scfuture-21 ~]# 
  • 查看内存信息,命令如下:

方法一:

[root@scfuture-21 ~]# free
               total        used        free      shared  buff/cache   available
Mem:         3461636      291740     2600036        9308      569860     2800348
Swap:        8388604           0     8388604
[root@scfuture-21 ~]# 

方法二:

[root@scfuture-21 ~]# top
top - 22:50:07 up  1:05,  2 users,  load average: 0.00, 0.00, 0.00
Tasks: 145 total,   2 running, 143 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.2 sy,  0.0 ni, 99.7 id,  0.0 wa,  0.2 hi,  0.0 si,  0.0 st
MiB Mem :   3380.5 total,   2538.6 free,    285.0 used,    556.9 buff/cache
MiB Swap:   8192.0 total,   8192.0 free,      0.0 used.   2734.6 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                           
  13895 root      20   0       0      0      0 I   0.3   0.0   0:00.56 kworker/1:1-events                                                                
      1 root      20   0  168900  17020   8780 S   0.0   0.5   0:01.94 systemd                                                                           
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.01 kthreadd                                                                          
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp                                                                            
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par_gp                                                                        
      5 root      20   0       0      0      0 I   0.0   0.0   0:02.61 kworker/0:0-ata_sff                                                               
      6 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/0:0H-events_highpri                                                       
      8 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 mm_percpu_wq                                                                      
      9 root      20   0       0      0      0 S   0.0   0.0   0:00.00 rcu_tasks_rude_                                                                   
     10 root      20   0       0      0      0 S   0.0   0.0   0:00.00 rcu_tasks_trace                                                                   
     11 root      20   0       0      0      0 S   0.0   0.0   0:00.01 ksoftirqd/0                                                                       
     12 root      20   0       0      0      0 R   0.0   0.0   0:02.50 rcu_sched                                                                         
     13 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 migration/0                                                                       
     14 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/0                                                                           
     15 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/1                                                                           
     16 root      rt   0       0      0      0 S   0.0   0.0   0:00.12 migration/1                                                                       
     17 root      20   0       0      0      0 S   0.0   0.0   0:00.14 ksoftirqd/1                                                                       
     19 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/1:0H-events_highpri                                                       
     22 root      20   0       0      0      0 S   0.0   0.0   0:00.01 kdevtmpfs                                                                         
     23 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 netns                                                                             
     24 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kauditd                                                                           
     29 root      20   0       0      0      0 S   0.0   0.0   0:00.00 khungtaskd                                                                        
     30 root      20   0       0      0      0 S   0.0   0.0   0:00.00 oom_reaper                                                                        
     31 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 writeback                                                                         
     32 root      20   0       0      0      0 S   0.0   0.0   0:00.04 kcompactd0                                                                        
     33 root      25   5       0      0      0 S   0.0   0.0   0:00.00 ksmd                                                                              
[root@scfuture-21 ~]# 
[root@scfuture-21 ~]# top    -----执行top后输入M
top - 22:49:49 up  1:05,  2 users,  load average: 0.00, 0.00, 0.00
Tasks: 145 total,   1 running, 144 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.2 sy,  0.0 ni, 99.7 id,  0.0 wa,  0.0 hi,  0.2 si,  0.0 st
MiB Mem :   3380.5 total,   2539.1 free,    284.5 used,    556.9 buff/cache
MiB Swap:   8192.0 total,   8192.0 free,      0.0 used.   2735.1 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                           
    895 root      20   0  132164  42332  17984 S   0.0   1.2   0:00.90 firewalld                                                                         
   1533 root      20   0  331972  26280  12468 S   0.3   0.8   0:00.67 lvmdbusd                                                                          
    999 root      20   0  258036  24972  12012 S   0.0   0.7   0:00.92 tuned                                                                             
    789 polkitd   20   0 2590004  23236  18644 S   0.0   0.7   0:00.18 polkitd                                                                           
    978 root      20   0  258144  20636  17680 S   0.0   0.6   0:00.27 NetworkManager                                                                    
      1 root      20   0  168900  17020   8780 S   0.0   0.5   0:01.94 systemd                                                                           
    756 root      20   0   29400  10068   7028 S   0.0   0.3   0:00.27 systemd-udevd                                                                     
    677 root      20   0   22460   9256   8300 S   0.0   0.3   0:00.16 systemd-journal                                                                   
    818 root      20   0   15852   9004   6556 S   0.0   0.3   0:00.09 systemd-logind                                                                    
   9057 root      20   0   15328   8612   7356 S   0.0   0.2   0:00.03 sshd                                                                              
   1295 root      20   0  163924   7552   3968 S   0.0   0.2   0:00.31 rsyslogd                                                                          
    822 root      20   0   14272   7236   6452 S   0.0   0.2   0:00.03 systemd-machine                                                                   
   3374 root      20   0   13896   6696   5872 S   0.0   0.2   0:00.00 sshd                                                                              
    795 root      20   0   89348   6072   5292 S   0.0   0.2   0:12.29 rngd                                                                              
   9062 root      20   0    9352   6016   3824 S   0.0   0.2   0:00.09 bash                                                                              
   8985 root      20   0   11792   5768   3728 S   0.0   0.2   0:00.02 bash                                                                              
   9061 root      20   0   15328   5488   4200 S   0.3   0.2   0:00.10 sshd                                                                              
   8978 root      20   0    9948   5416   4564 S   0.0   0.2   0:00.01 login                                                                             
    726 rpc       20   0   10884   5116   4444 S   0.0   0.1   0:00.03 rpcbind                                                                           
    777 dbus      20   0    7980   4936   3992 S   0.0   0.1   0:00.25 dbus-daemon                                                                       
   1000 root      20   0   55420   4136   3428 S   0.0   0.1   0:00.00 gssproxy                                                                          
    824 root      20   0   10864   4124   1260 S   0.0   0.1   0:00.00 restorecond                                                                       
  13922 root      20   0    9904   3996   3292 R   0.3   0.1   0:00.03 top                                                                               
   1361 root      20   0    7812   3268   2404 S   0.0   0.1   0:00.03 crond                                                                             
    732 root      16  -4    6984   3228   2680 S   0.0   0.1   0:00.01 sedispatch                                                                        
   2115 dnsmasq   20   0    8828   2444   2064 S   0.0   0.1   0:00.00 dnsmasq                                                                           
[root@scfuture-21 ~]#
  • 查看硬盘信息,命令如下:

方法一:

[root@scfuture-21 ~]# fdisk -l
Disk /dev/sda:50 GiB,53687091200 字节,104857600 个扇区
磁盘型号:VMware Virtual S
单元:扇区 / 1 * 512 = 512 字节
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
磁盘标签类型:dos
磁盘标识符:0x4ff24c22

设备       启动    起点      末尾      扇区 大小 Id 类型
/dev/sda1  *       2048   2099199   2097152   1G 83 Linux
/dev/sda2       2099200 104857599 102758400  49G 8e Linux LVM


Disk /dev/mapper/vg00-lv_root:41 GiB,44019220480 字节,85975040 个扇区
单元:扇区 / 1 * 512 = 512 字节
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节


Disk /dev/mapper/vg00-lv_swap:8 GiB,8589934592 字节,16777216 个扇区
单元:扇区 / 1 * 512 = 512 字节
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
[root@scfuture-21 ~]# 

方法二:

[root@scfuture-21 ~]# df
文件系统                    1K-块    已用     可用 已用% 挂载点
devtmpfs                  1713420       0  1713420    0% /dev
tmpfs                     1730816      12  1730804    1% /dev/shm
tmpfs                      692328    9288   683040    2% /run
tmpfs                        4096       0     4096    0% /sys/fs/cgroup
/dev/mapper/vg00-lv_root 42001520 2532084 37303676    7% /
tmpfs                     1730820       0  1730820    0% /tmp
/dev/sda1                  996780   89696   838272   10% /boot
[root@scfuture-21 ~]# 
[root@scfuture-21 ~]# df -h
文件系统                  容量  已用  可用 已用% 挂载点
devtmpfs                  1.7G     0  1.7G    0% /dev
tmpfs                     1.7G   12K  1.7G    1% /dev/shm
tmpfs                     677M  9.1M  668M    2% /run
tmpfs                     4.0M     0  4.0M    0% /sys/fs/cgroup
/dev/mapper/vg00-lv_root   41G  2.5G   36G    7% /
tmpfs                     1.7G     0  1.7G    0% /tmp
/dev/sda1                 974M   88M  819M   10% /boot
[root@scfuture-21 ~]# 

方法三:

[root@scfuture-21 ~]# mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=1713420k,nr_inodes=428355,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,size=692328k,nr_inodes=819200,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,seclabel,size=4096k,nr_inodes=1024,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime,seclabel)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,blkio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,cpu,cpuacct)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,cpuset)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,memory)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,pids)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,rdma)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,hugetlb)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,perf_event)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,freezer)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,devices)
cgroup on /sys/fs/cgroup/files type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,files)
/dev/mapper/vg00-lv_root on / type ext4 (rw,relatime,seclabel)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,nosuid,noexec,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=32,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=18845)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel,pagesize=2M)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime,seclabel)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime,seclabel)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime,seclabel)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
ramfs on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,seclabel,size=1730820k,nr_inodes=1048576)
/dev/sda1 on /boot type ext4 (rw,relatime,seclabel)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
[root@scfuture-21 ~]# 
  • 查看ip信息,命令如下:

方法一:

[root@scfuture-21 ~]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.21  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::9393:f6ae:ced9:7759  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:96:c9:d7  txqueuelen 1000  (Ethernet)
        RX packets 42632  bytes 60931074 (58.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 9811  bytes 646374 (631.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:bc:bb:cd  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@scfuture-21 ~]# 

方法二:

[root@scfuture-21 ~]# ip add list
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:96:c9:d7 brd ff:ff:ff:ff:ff:ff
    altname enp2s1
    inet 192.168.0.21/24 brd 192.168.0.255 scope global noprefixroute ens33
       valid_lft forever preferred_lft forever
    inet6 fe80::9393:f6ae:ced9:7759/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 52:54:00:bc:bb:cd brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel master virbr0 state DOWN group default qlen 1000
    link/ether 52:54:00:bc:bb:cd brd ff:ff:ff:ff:ff:ff
[root@scfuture-21 ~]# 

方法三:

[root@scfuture-21 ~]# hostname -I
192.168.0.21 192.168.122.1 
[root@scfuture-21 ~]# 
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

03 开始使用openEuler操作系统 的相关文章

  • 如何告诉 CMake 将构建文件放在哪里?

    我想告诉 CMake 将文件和文件夹输出到不同的文件夹而不是当前文件夹 我在下面讨论的是 CMake 生成的文件 文件 CMakeCache txt 目录 CMakeFiles 文件 生成文件 目录 bin 文件 cmake install
  • 容器上的“container_memory_working_set_bytes”指标和 OOM-killer 之间有什么关系?

    我试图找出并理解 OOM killer 如何在容器上工作 为了弄清楚这一点 我读了很多文章 发现 OOM killer 会根据oom score And oom score是由oom score adj以及该进程的内存使用情况 有两个指标c
  • 仅为我自己禁用和重新启用地址空间布局随机化

    我想在我的系统 Ubuntu Gnu Linux 2 6 32 41 server 上禁用地址空间布局随机化 ASLR 但是 如果我使用 sysctl w kernel randomize va space 0 我认为这一更改将影响系统上的
  • 在linux中将包含word的行从一个文件复制到另一个文件

    我想复制包含某些单词的行file1 to file2 Suppose file1 ram 100 ct 50 gopal 200 bc 40 ravi 50 ct 40 krishna 200 ct 100 file2应该只有包含 ct 的
  • 检测后台操作

    在C中 检测程序在 后台模式 下调用的方法是什么 我有一个程序想要以交互方式或在后台启动 我怎样才能检测到我不应该从标准输入读取并以 已停止 tty 输入 状态结束 我应该测试 stdin 是否已关闭 我怎样才能做到这一点 编辑 isatt
  • 是否有一种异步信号安全的方式来读取 Linux 上的目录列表?

    SUSv4 http pubs opengroup org onlinepubs 9699919799 functions V2 chap02 html tag 15 04 03 03未在其异步信号安全函数列表中列出 opendir rea
  • Linux 从设备本身运行的脚本卸载设备

    我在路径中安装了一个 iso 映像 mnt iso 在这个 iso 中我有一个安装脚本 install sh 我从 iso 运行安装脚本 最后脚本询问用户是否要卸载 iso 本身 如果用户按 y 脚本将执行以下代码 cd umount mn
  • 将任何当前目录“./”添加到Linux中的搜索路径[关闭]

    Closed 这个问题不符合堆栈溢出指南 help closed questions 目前不接受答案 如何将任何当前目录 添加到 Linux 中可执行文件的搜索路径中 我知道这是一个旧答案 但如果其他人像我一样通过谷歌偶然发现这个问题 这里
  • 您会为 Linux 推荐哪种甘特图/项目管理工具? [关闭]

    Closed 这个问题是无关 help closed questions 目前不接受答案 我需要一个可在 Linux 中运行并具有甘特图的项目管理工具 它不一定是免费的 只是不贵 我不在乎它如何存储我提供的信息 只要我可以访问它即可 我一定
  • 使用 awk 处理多个文件

    我必须使用 awk 处理大量 txt 文件 每个文件 1600 万行 我必须阅读例如十个文件 File 1 en sample 1 200 en n sample 2 10 en sample 3 10 File 2 en sample 1
  • 如何为自定义应用程序选择静态端口号?

    我们有一个自定义应用程序 需要在其自己的端口号上处理请求 我们真的不在乎这个数字是多少 尽管我们在决定后会坚持使用该端口 如何选择最不可能与用户系统上运行的其他应用程序或服务发生冲突的数字 我们应该遵循什么规则或标准吗 澄清 一旦我们选择了
  • 真实设备中的 Android strace

    我有以下情况 我想监控Android手机上的系统调用 所以 我编写了一个脚本来做到这一点 使用 Android 模拟器可以完美地工作 将应用程序的痕迹写入我的 Ubuntu 上的特定文件中 问题是当我连接一个真实的手机来分析它时 它在结果文
  • 如何将发布档案转换为 git repo

    我有一个发布档案列表 MyProject 0 9 zip MyProject 1 0 zip MyProject 1 3 tar gz MyProject 2 0 tar gz 每个文件都包含一个与存档同名的文件夹 不带文件扩展名 其中包含
  • 在 bash tee 中,正在将函数变量设置为本地函数,我该如何逃避这个问题?

    我一直坚持使用 bash scipt 它应该同时写入标准输出和文件 我正在使用函数和其中的一些变量 每当我尝试将函数重定向到文件并用 tee 在屏幕上打印时 我无法使用在函数中使用的变量 因此它们以某种方式变成本地变量 这是一个简单的例子
  • Gtk+3 &C & Glade 问题

    我尝试在 Linux 上用 C 和 Glade 制作一个简单的 Gui 程序 我编写了一个简单的程序并用 Glade 设计了一个窗口 当我运行代码时 它说 gtk test 23026 Gtk CRITICAL gtk widget sho
  • linux + ksh + 向下舍入或向上舍入 - 浮点数

    在我的 ksh 脚本中 我只需要计算整数 有时我会得到浮点数 例如 3 49 或 4 8 等 所以我需要根据以下规则将浮点数转换为整数 示例 3 49 will be 3 2 9 will be 3 4 1 will be 4 23 51
  • 如何在Linux中诊断Python进程占用CPU

    我的 python 进程在自动化脚本中的某个时刻开始在基于 Linux 的系统 Ubuntu 上占用 CPU 我正在尝试在 GDB 中调试这个问题 我对 GDB 还很陌生 是否有任何 GDB 命令可以提供有关哪个线程正在使用大部分 cpu
  • 无法从 Windows GUI 工具连接到远程 Linux 服务器上的 MySql 数据库

    我已经在 Amazon EC2 上的 Linux 服务器上设置了 mysql 数据库 这在本地效果很好 我可以登录 linux 盒子并管理 mysql 数据库 我正在尝试将本地 GUI 客户端连接到远程 mysql 但连接失败 我更新了 e
  • 如何在bash中使用kill SIGUSR2?

    我在linux中使用iptraf来监控网络流量 shell命令是 让iptraf在后台运行 iptraf s eth0 f B L traffic dat 如果我想得到结果 我必须先停止 iptraf 所以我使用 shell 命令 kill
  • sed 将带空格的行插入到特定行

    我在开头有一行空格 例如 Hello world 我想将此行插入到文件中的特定行 例如 将 hello world 插入下一个文件 hello world result hello hello world world 我正在使用这个 sed

随机推荐

  • 为什么苹果蓝牙耳机连上还是公放_如何测试蓝牙设备的延时

    蓝牙设备的延时准确测量很复杂 但是这里有个小工具 自己动手就可以做 数据一出胜过嘴炮 1 首先去下载安装superpowered latency ios 安卓版的都有 Test iOS and Android Audio Latency w
  • Javafx集成sqlite数据库

    什么是SQLite SQLite是一款非常轻量级的关系数据库系统 支持多数SQL92标准 SQLite在使用前不需要安装设置 不需要进程来启动 停止或配置 而其他大多数SQL数据库引擎是作为一个单独的服务器进程 被程序使用某种内部进程通信
  • input输入子系统分析

    input输入子系统分析 input子系统学习 总体框架分析 从事件处理过程 程序 看input子系统 对设备驱动层的分析 对事件处理层的分析 对核心处理层 input c 的分析 input子系统学习 Input子系统作为linux下很重
  • 静态代码分析工具清单:开源篇

    http hao jobbole com static code analysis tool list opensource lang utm source blog jobbole com utm medium sidebar resou
  • SaaS 系统完全开源介绍

    平台简介 芋道 以开发者为中心 打造中国第一流的快速开发平台 全部开源 个人与企业可 100 免费使用 架构图 管理后台的 Vue3 版本采用 vue element plus admin Vue2 版本采用 vue element adm
  • 为什么延时函数while()没有递减

    因为有时钟中断 1ms中断一次 如何减1
  • 【java】mybatis-plus lambda表达式符号总结

    1 函数名及用法 查询学生 QueryWrapper
  • 基于java的俄罗斯方块小游戏设计(含源文件)

    欢迎添加微信互相交流学习哦 项目源码 https gitee com oklongmm biye 题 目 小游戏开发 摘 要 俄罗斯方块是我们最常见的游戏之一 该游戏出现过在掌上游戏机 家用游戏机 手机游戏和电脑游戏中 因此俄罗斯方块也是一
  • TencentOS-tiny 内核基础组件(十 七)- 环形队列

    一 内核基础组件 环形队列 概述 环形队列本质上就是支持先入先出操作的环形buffer 是系统的一个基础组件 通常用来作为实现上层机制的底层数据容器 API讲解 编程实例 1 编写main c示例代码 USER CODE END Heade
  • Lambda表达式、函数式接口

    一 Lambda 1 1 概述 Lambda表达式是一种没有名字的函数 也可以称为闭包 是Java8发布的最重要新特性 本质上是一段匿名内部类 也可以是一段可以传递的代码 还有的叫箭头函数 1 2 优点 是匿名内部类的简写方式 使代码更加简
  • 提交表单不刷新当前页面

    使用ajax上传文件方法 众所周知ajax是使用了浏览器内部的XmlHttpRequest对象来传输XML数据的 既然是Xml的数据传输 那么传输的数据肯定是文本的 而文件上传则需要传输二进制的数据 显然用ajax是不可能的 这里要说的是用
  • Error getting 'State' for /org/freedesktop/NetworkManager/ActiveConnection/0: (19) Method "Get" wit

    虚拟机使用的是无线驱动 但是本机使用的却是有线网络 导致激活不了
  • 「2022」打算跳槽涨薪,必问面试题及答案 -- JavaScript 篇

    Hi 我是 今日与君共勉 1 深浅拷贝的区别有哪些 要说 js 的深浅拷贝 就不得不提 js 的两大数据类型 基本数据类型和引用类型 基本数据类型的变量名和值都存储在栈中 对于引用类型的变量名存储在栈中 而值存储在堆中 由于存储方式不同 所
  • tensorflow can not find libcusolver.so.8.0

    ImportError libcusolver so 8 0 cannot open shared object file No such file or directory solution export LD LIBRARY PATH
  • 【毕业设计】深度学习水果识别系统 - python CNN

    文章目录 1 前言 2 开发简介 3 识别原理 3 1 传统图像识别原理 3 2 深度学习水果识别 4 数据集 5 部分关键代码 5 1 处理训练集的数据结构 5 2 模型网络结构 5 3 训练模型 6 识别效果 7 最后 1 前言 Hi
  • 【JavaScript学习笔记】鼠标样式

    style cursor hand 手形 style cursor crosshair 十字形 style cursor text 文本形 style cursor wait 沙漏形 style cursor move 十字箭头形 styl
  • git中rejected的解决方法

    在网上搜了一下 出现这种情况的原因是因为git仓库中已经有一部分代码 所以它不允许你直接把你的代码覆盖上去 第一种解决方法是强推 即利用强覆盖方式用你本地的代码替代git仓库内的内容 git push f 第二种解决办法是先把git的东西f
  • Java面试官在面试时喜欢问哪些问题?

    作为一名技术总监 我管理的技术团队有100多人 面试的Java程序员不要太多 不同的面试官 面试的要求也不太一样 例如 有的要求表达好 会沟通 有的要求技术好 能直接上手撸代码 搞项目 有的要求人踏实 稍微带一带 能干活就行 有的要求 我的
  • 轮播图禁用手势滑动

    要禁用手势滑动 并只允许自动轮播 你可以使用autoplayDisableOnInteraction属性来实现 以下是如何在Flutter中使用flutter swiper插件进行配置 首先 在pubspec yaml文件中添加flutte
  • 03 开始使用openEuler操作系统

    文章目录 03 开始使用openEuler操作系统 3 1 目标 3 2 Linux以及openEuler中的GUI与CLI 3 3 Linux的两种登录方式 3 3 1 本地登录 3 3 2 远程登陆 3 4 退出登录 注销 3 5 op