linux安装时 dev sda4,VMvare在CentOS7.4安装iscsi共享盘

2023-10-27

VMvare

CentOS7.4

安装

iscsi

共享盘

1.

在节点

1

上添加一个

20g

的存储并

reboot

1.1

查看新添加的磁盘

[root@xmc1 ~]# fdisk -l

Disk /dev/sda: 32.2 GB, 32212254720 bytes, 62914560 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk label type: dos

Disk identifier: 0x000b28d9

Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *        2048      411647      204800   83  Linux

/dev/sda2          411648    62914559    31251456   8e  Linux LVM

Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

从上面看出是

sdb

1.2

sdb

分为

8G+12G

两个盘(

ocr+data

)

[root@xmc1 iscsi]# fdisk /dev/sdb

Welcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.

Be careful before using the write command.

Device does not contain a recognized partition table

Building a new DOS disklabel with disk identifier 0xfa692b5c.

Command (m for help): n

Partition type:

p   primary (0 primary, 0 extended, 4 free)

e   extended

Select (default p): p

Partition number (1-4, default 1):

First sector (2048-41943039, default 2048):

Using default value 2048

Last sector, +sectors or +size{K,M,G} (2048-41943039, default 41943039): +8G

Partition 1 of type Linux and of size 8 GiB is set

Command (m for help): n

Partition type:

p   primary (1 primary, 0 extended, 3 free)

e   extended

Select (default p): p

Partition number (2-4, default 2):

First sector (16779264-41943039, default 16779264):

Using default value 16779264

Last sector, +sectors or +size{K,M,G} (16779264-41943039, default 41943039):

Using default value 41943039

Partition 2 of type Linux and of size 12 GiB is set

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

Syncing disks.

2.

检查安装

iscsi

相关软件

2.1

安装

iscsi

客户端软件

#yum -y install iscsi-initiator-utils

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

Package iscsi-initiator-utils-6.2.0.874-4.el7.x86_64 already installed and latest version

Nothing to do

[root@xmc1 ~]# systemctl restart iscsi

[root@xmc1 ~]# systemctl enable iscsi

2.2

修改主机识别号

# cd /etc/iscsi/

[root@xmc1 iscsi]# cp initiatorname.iscsi initiatorname.iscsi.bak

root@xmc1 iscsi]# vi initiatorname.iscsi

[root@xmc1 iscsi]# more initiatorname.iscsi

InitiatorName=iqn.1994-05.com.redhat:xmc1

[root@xmc2 iscsi]# cp initiatorname.iscsi initiatorname.iscsi.bak

[root@xmc2 iscsi]# vi initiatorname.iscsi

[root@xmc2 iscsi]# more initiatorname.iscsi

InitiatorName=iqn.1994-05.com.redhat:xmc2

2.3

安装

iscsi

软件并启动

# yum install targetcli*

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

Package targetcli-2.1.fb46-1.el7.noarch already installed and latest version

Nothing to do

[root@xmc1 ~]# systemctl status target

target.service - Restore LIO kernel target configuration

Loaded: loaded (/usr/lib/systemd/system/target.service; disabled; vendor preset: disabled)

Active: inactive (dead)

[root@xmc1 ~]# systemctl start target

[root@xmc1 ~]# systemctl enable target

[root@xmc1 ~]# systemctl status target

target.service - Restore LIO kernel target configuration

Loaded: loaded (/usr/lib/systemd/system/target.service; disabled; vendor preset: disabled)

Active: active (exited) since Thu 2020-10-08 22:39:38 CST; 3s ago

Process: 2885 ExecStart=/usr/bin/targetctl restore (code=exited, status=0/SUCCESS)

Main PID: 2885 (code=exited, status=0/SUCCESS)

Oct 08 22:39:38 xmc1 systemd[1]: Starting Restore LIO kernel target configuration...

Oct 08 22:39:38 xmc1 systemd[1]: Started Restore LIO kernel target configuration.

[root@xmc1 ~]# systemctl enable target

Created symlink from /etc/systemd/system/multi-user.target.wants/target.service to /usr/lib/systemd/system/target.service.

2.4

建立两个块存储

ocr_server,data_server,

使用新添加的硬盘

/dev/sdb1

/dev/sdb2

[root@xmc1 /]# targetcli

targetcli shell version 2.1.fb46

Copyright 2011-2013 by Datera, Inc and others.

For help on commands, type 'help'.

/> /backstores/block

/backstores/block> create ocr_server /dev/sdb1

Created block storage object ocr_server using /dev/sdb1.

/backstores/block> create data_server /dev/sdb2

Created block storage object data_server using /dev/sdb2.

2.5

建立

target

ID

注意

iqn

的名称一定要与

initiatorname.iscsi

里的一样如下

/backstores/block> cd /iscsi

/iscsi> create iqn.1994-05.com.redhat:xmc1

Created target iqn.1994-05.com.redhat:xmc1.

Created TPG 1.

Global pref auto_add_default_portal=true

Created default portal listening on all IPs (0.0.0.0), port 3260.

2.6

配置连接到此

iqn

上的设备

/iscsi> ls

o- iscsi ................................................................................ [Targets: 1]

o- iqn.1994-05.com.redhat:xmc1 ........................................................... [TPGs: 1]

o- tpg1 ................................................................... [no-gen-acls, no-auth]

o- acls .............................................................................. [ACLs: 0]

o- luns .............................................................................. [LUNs: 0]

o- portals ........................................................................ [Portals: 1]

o- 0.0.0.0:3260 ......................................................................... [OK]

/iscsi> cd iqn.1994-05.com.redhat:xmc1/tpg1/acls

/iscsi/iqn.19...mc1/tpg1/acls> create iqn.1994-05.com.redhat:xmc2

Created Node ACL for iqn.1994-05.com.redhat:xmc2

/iscsi/iqn.19...mc1/tpg1/acls> create iqn.1994-05.com.redhat:xmc1

Created Node ACL for iqn.1994-05.com.redhat:xmc1

2.7

设置具体的磁盘和

LUN

联系在一起

/iscsi/iqn.19...hat:xmc1/tpg1> cd luns

/iscsi/iqn.19...mc1/tpg1/luns> pwd

/iscsi/iqn.1994-05.com.redhat:xmc1/tpg1/luns

/iscsi/iqn.19...mc1/tpg1/luns> create /backstores/block/ocr_server

Created LUN 0.

Created LUN 0->0 mapping in node ACL iqn.1994-05.com.redhat:xmc1

Created LUN 0->0 mapping in node ACL iqn.1994-05.com.redhat:xmc2

/iscsi/iqn.19...mc1/tpg1/luns> create /backstores/block/data_server

Created LUN 1.

Created LUN 1->1 mapping in node ACL iqn.1994-05.com.redhat:xmc1

Created LUN 1->1 mapping in node ACL iqn.1994-05.com.redhat:xmc2

2.8

配置

target

监听

ip

和端口并保存所有配置

/iscsi/iqn.19...mc1/tpg1/luns> cd /iscsi/iqn.1994-05.com.redhat:xmc1/tpg1/portals/

/iscsi/iqn.19.../tpg1/portals> ls

o- portals .............................................................................. [Portals: 1]

o- 0.0.0.0:3260 ............................................................................... [OK]

/iscsi/iqn.19.../tpg1/portals> delete 0.0.0.0 3260

Deleted network portal 0.0.0.0:3260

/iscsi/iqn.19.../tpg1/portals> create 192.168.5.10

Using default IP port 3260

Created network portal 192.168.5.10:3260.

/iscsi/iqn.19.../tpg1/portals> create 192.168.5.20

Using default IP port 3260

Created network portal 192.168.5.20:3260.

/iscsi/iqn.19.../tpg1/portals> ls

o- portals .............................................................................. [Portals: 2]

o- 192.168.5.10:3260 .......................................................................... [OK]

o- 192.168.5.20:3260 .......................................................................... [OK]

保存

/iscsi/iqn.19.../tpg1/portals> cd /

/> saveconfig

Last 10 configs saved in /etc/target/backup.

Configuration saved to /etc/target/saveconfig.json

[root@

xmc1

/]# iscsiadm -m discovery -t st -p 192.168.5.10

192.168.5.20:3260,1 iqn.1994-05.com.redhat:xmc1

192.168.5.10:3260,1 iqn.1994-05.com.redhat:xmc1

[root@

xmc2 i

scsi]# iscsiadm -m discovery -t st -p 192.168.5.10

192.168.5.20:3260,1 iqn.1994-05.com.redhat:xmc1

192.168.5.10:3260,1 iqn.1994-05.com.redhat:xmc1

3.

客户端登录服务验证

[root@xmc1 /]# iscsiadm -m node -T iqn.1994-05.com.redhat:xmc1 -p 192.168.5.10:3260 -l

Logging in to [iface: default, target: iqn.1994-05.com.redhat:xmc1, portal: 192.168.5.10,3260] (multiple)

Login to [iface: default, target: iqn.1994-05.com.redhat:xmc1, portal: 192.168.5.10,3260] successful.

[root@xmc2 iscsi]# iscsiadm -m node -T iqn.1994-05.com.redhat:xmc1 -p 192.168.5.10:3260 -l

Logging in to [iface: default, target: iqn.1994-05.com.redhat:xmc1, portal: 192.168.5.10,3260] (multiple)

Login to [iface: default, target: iqn.1994-05.com.redhat:xmc1, portal: 192.168.5.10,3260] successful.

注意要查看

iscsi

target

的状态是否正常:

systemctl status iscsi/target

[root@xmc1 ~]# fdisk -l

Disk /dev/sda: 32.2 GB, 32212254720 bytes, 62914560 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk label type: dos

Disk identifier: 0x000b28d9

Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *        2048      411647      204800   83  Linux

/dev/sda2          411648    62914559    31251456   8e  Linux LVM

Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk label type: dos

Disk identifier: 0xfa692b5c

Device Boot      Start         End      Blocks   Id  System

/dev/sdb1            2048    16779263     8388608   83  Linux

/dev/sdb2        16779264    41943039    12581888   83  Linux

Disk /dev/mapper/centos-root: 29.9 GB, 29850861568 bytes, 58302464 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mapper/centos-swap: 2147 MB, 2147483648 bytes, 4194304 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/sdc: 8589 MB, 8589934592 bytes, 16777216 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 4194304 bytes

Disk /dev/sdd: 12.9 GB, 12883853312 bytes, 25163776 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 4194304 bytes

如上

/dev/sdc

即为共享的

/dev/sdb1

,在节点

2

如下

[root@xmc2 ~]# fdisk -l

Disk /dev/sdb: 8589 MB, 8589934592 bytes, 16777216 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 4194304 bytes

Disk /dev/sdc: 12.9 GB, 12883853312 bytes, 25163776 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 4194304 bytes

4.

设置开机自启动

#vi iscsi.sql

添加如下命令

#!/bin/bash

iscsiadm -m node -T iqn.1994-05.com.redhat:xmc1 -p 192.168.5.10:3260 -l

#chmod +x iscsi.sql

#cd /etc/rc.d

# chmod +x rc.local

#vi rc.local

添加脚本

/root/iscsi.sql

至此,安装rac的共享盘问题解决。

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

linux安装时 dev sda4,VMvare在CentOS7.4安装iscsi共享盘 的相关文章

  • 【uni-app】【Android studio】手把手教你运行uniapp项目到Android App

    最开始想写一个自定义背景的弹窗 因为要用到项目的好几个地方 不希望每个地方都需要引入 而且只需要放张图片 加个关闭按钮和功能按钮就行 类似这种效果 开始写的时候找了一篇博客 写的很详细 但是这个是Vue2的 uniapp实现自定义弹窗组件
  • 轴上键槽怎么标注

    百度知道 https zhidao baidu com question 1638366488494069980 html
  • MATLAB图像拼接算法及实现

    论文关键词 图像拼接 图像配准 图像融合 全景图 论文摘要 图像拼接 image mosaic 技术是将一组相互间重叠部分的图像序列进行空间匹配对准 经重采样合成后形成一幅包含各图像序列信息的宽视角场景的 完整的 高清晰的新图像的技术 图像
  • java引用ScriptEngine解析表达式实现计算器功能

    包名 import javax script 使用 String str 2 6 7 ScriptEngine se new ScriptEngineManager getEngineByName JavaScript try double
  • 大数据技术原理与应用(复习)

    大数据 第一章 大数据的四个基本特性 p8 4V 数据量大 Volume 数据类型繁多 Variety 处理速度快 Velocity 价值密度低 Value 举例说明大数据的关键技术 p16 数据采集与预处理 利用ETL工具将分布在异构数据
  • Python123题目解析

    老样子 复习第一位 持续更新 慢慢附加知识点 python123 英寸和厘米的交互 升级版 描述 虽然我国已经很好的普及了国际单位制 而在现实生活中 仍然有很多地方采用了英制单位来描述 例如 我们买一台65寸的电视 这个地方的寸指的就是英寸
  • 编写测试用例的测试方法(等价类、判定表、边界值、正交排列法、场景法)

    一 等价类划分法 1 应用场合 在程序中 有数据输入的地方适合使用等价类划分法进行测试 方法思想 范围 将大量数据划分成若干的范围 等价类 再从每个范围中抽取少量代表数据进行测试 抽样测试 2 两个概念 1 有效等价类 对程序来说 正确的
  • Gerrit合并分支cherry-pick后提交代码push报错,43366 closed问题处理

    Gerrit合并分支cherry pick后提交代码push报错 43366 closed问题处理 这个问题是我cherry pick别的分支代码时遇到的 至于如何cherry pick代码可以参考 链接 如何cherry pick分支代码
  • html字符串转json

    业务场景 后端返回给前端的数据中 有html格式的字符串 如下 font color red 我是提示信息 font 后端使用fastjson data toJsonString 响应给前端 但是格式不是标准的json格式 如 msg fo
  • Qt 的信号与槽

    QT的信号与槽的三种实现方式 3种方式 1 直接在设计选项卡中拖动连接控件 然后选择控件间的关联函数 2 头文件mainwindows h中 ifndef MAINWINDOW H define MAINWINDOW H include
  • jdk8 api

    JDK 8是Java开发工具包的第8个主要版本 它于2014年3月18日发布 JDK 8 API是Java开发人员使用的程序包 类 接口和注释的集合 用于创建Java程序 它包括Java核心库 如java lang和java util 以及
  • MSP430F5529学习笔记(2)——点亮LED

    TI官方MSP430F5529开发板原理图和中文开发手册 MSP430F5529学习笔记 1 环境配置 目录 原理图和中文开发手册获取方法 点亮LED1 分析电路图 写程序 点亮LED1 1 首先我们需要告诉单片机 P1 0是输入还是输出
  • 二叉树的链式存储结构及(C语言)实现

    上一节讲了二叉树的顺序存储 通过学习你会发现 其实二叉树并不适合用数组存储 因为并不是每个二叉树都是完全二叉树 普通二叉树使用顺序表存储或多或多会存在空间浪费的现象 本节我们学习二叉树的链式存储结构 图 1 普通二叉树示意图 如图 1 所示
  • Makefile语法

    下面来介绍Makefile的基本语法 12 2 1 引入文件 OpenWrt 使用三个 makefile 的子文件 分别为 Include TOPDIR rules mk Include INCLUDE DIR kernel mk Incl
  • 14-5 使用 xml 完成布局

    14 3 小节中 helloworld程序创建窗口使用代码创建 此外 也可使用 xml 完成窗口布局 代码仅仅用来处理数据逻辑 实现布局和数据处理相分离 布局的 ui 代码 builder ui
  • JumpServer开源堡垒机安装配置

    JumpServer开源堡垒机安装与配置 一 简介 二 下载与安装 2 1 下载 2 2 安装 2 3 其他 一 简介 JumpServer 堡垒机帮助企业以更安全的方式管控和登录各种类型的资产 支持 官网地址 https www jump
  • windows文件服务器 文件方案,windowsserver2008文件服务器搭建2种方案.docx

    文件服务器搭建的两种方案范光华制作 文件服务器搭建的两种方案范光华制作 文件服务器搭建的两种方案 搭建目的 1 实现企业文件共享与传输 提高工作效率 2 提高企业访问文件的安全性 搭建环境 1 windows server 2008 R2
  • Navicat Premium 安装 & 注册

    Navicat Premium 一 Navicat Premium的安装 1 暂时关闭windows的病毒与威胁防护弄完再开 之后安装打开过程中弹窗所有警告全部允许 不然会被拦住 2 下载安装包 解压 链接 https pan baidu
  • 爬虫抓取图片:下载高质量图片

    目录 1 抓取图片简介 2 准备工作 3 分析Unsplash网站结构 4 编写图片爬虫

随机推荐

  • stm32使用PWM时,关闭PWM引脚会出现高电平解决方案

    现在使用TIM3来产生PWM波形 并通过软件打开 关闭PWM以实现调制波形 做法是 打开 TIM Cmd TIM3 ENABLE 关闭 TIM Cmd TIM3 DISABLE 跟踪到TIM Cmd之后 发现直接操作寄存器就可以了 TIMx
  • 从Random Walk(随机游走)到Graph Embedding(DeepWalk,LINE,Node2vec,SDNE,Graph2vec,GraphGAN)

    前言 本文转载自csdn博主上杉翔二系列博客并外加一些自己收集的资料 在这里仅作为自己学习之用 原文链接 https blog csdn net qq 39388410 article details 87904974 1 随机游走 普通数
  • idea java 插件开发_Intellij IDEA插件开发入门详解

    现今的IDE尽管有如 洪水猛兽 般强大 但要知道再强大的IDE也没法提供给使用者想要的一切功能 所以IDE一般都提供有API接口供开发者自行扩展 下面以Intellij IDEA 12下的插件开发为例 来看一下如何进一步增强IDE以适应开发
  • ROS自学实践(6):ROS进行激光SLAM建图——gmapping

    本节主要记录运行ROS自带的SLAM建模包gmapping方法 为后续理解这些代码 建立自己的SLAM算法打下基础 基于粒子滤波算法 二维栅格地图 需要里程计信息 1 通过命令行安装gmapping包 sudo apt get instal
  • win10下qt 中没有代码提示框了怎么办?

    在这里我也找了好久 发现是跟你装的输入法有冲突了 所以代码提示没有了 请你切换到英文的输入下 把你的输入法换成标准的英文输入输入状态 图片如下 换成这样就可以提示了 如图所示完美解决不能提示的问题 好了完美解决问题 在这里我放上我讲的几个课
  • Elasticsearch搜索详解(六):文本检索

    文本检索是关系型数据库 如 MySQL 的弱项 而恰恰是 ES 的强项 前一篇文章已经提到了 match term 除此之外还有multi match match phrace 等 分别的含义是 match 从一个字段中检索关键字 包括模糊
  • react中setState即时更新解决方案

    博主在做一个前端项目时 需要根据props中的状态来修改state中的状态 由于react中setState更新状态不能及时显示到页面 博主总结如下可及时更新state中的方法 1 componentWillReceiveProps 2 g
  • Mybatis:xml配置和基本增删改查

    目录 一 环境配置 environments 1 事务管理器 transactionManager 2 数据源 dataSource 3 属性 property 4 设置 settings 5 类型别名 typeAliases 二 安装My
  • net.ipv4.tcp_tw_reuse是干嘛的?

    文章目录 前言 准备工作 sd01的配置 sd02的配置 开始测试 关闭net ipv4 tcp tw reuse 打开net ipv4 tcp tw reuse 关闭客户端的net ipv4 tcp timestamps 关闭服务器端的n
  • Nacos+Node基础教程

    简介 Nacos是一个更易于构建云原生应用的动态服务发现 配置管理和服务管理平台 功能 动态配置服务 动态配置服务让您能够以中心化 外部化和动态化的方式挂历所有环境的配置 动态配置消除了配置变更时 重新部署应用和服务的需要 配置中心化管理让
  • 如何将子窗口的值传到父窗口去调用

    这是我当初的问题 现在我想实现这样一个功能 现在父窗口有一个select控件 同时有一个 增加 按钮 点击按钮 弹出一个窗口 这时弹出窗口也有一个table 同时有一个 确认 按钮 table中有若干项 每一行对应一条记录 并有一个chec
  • 前端VUE项目部署到远程服务器

    文章目录 1 基础介绍 2 准备VUE项目 3 服务器安装 nginx服务器 4 启动nginx 5 修改nginx 配置 6 打包部署VUE项目 1 基础介绍 VUE项目 前后端分离 前后端部署到同一个服务器上 服务器 腾讯云轻量应用服务
  • 关于order by后面接条件查询

    适用场景 如表tab a 有三个字段 如果field1非空则按升序排列 如果field1是空再排field2 如果 field2非空升序排列 如果field2是空再排field3 如果field3非空则升序排列 如果field3是空 例子1
  • linux+应用程序运行日志,Linux 系统运行着许多子系统和应用程序。您可以使用系统日志记录从启动时就收集有关运行中系统的数据。有时...

    概述 在本教程中 您将学习以下内容 配置 syslog 守护程序 了解标准设施 优先级和操作 配置日志轮换 了解 rsyslog 和 syslog ng 系统内部发生了什么 Linux 系统运行着许多子系统和应用程序 您可以使用系统日志记录
  • c++ 双端队列 deque用法解析

    1 deque的作用 deque即双端队列 它的用法非常强大 可以代替栈stack 队列queue 向量容器vector等等 因为它能像栈一样后进先出 也能像queue一样先进先出 还能像vector一样随机访问 同时支持sort lowe
  • java模糊查询代码_Java模糊查询方法详解

    这篇文章主要为大家详细介绍了Java模糊查询方法的实现 实例教你如何用Java做模糊查询结果 感兴趣的小伙伴们可以参考一下 当我们需要开发一个方法用来查询数据库的时候 往往会遇到这样一个问题 就是不知道用户到底会输入什么条件 那么怎么样处理
  • 【机器学习】太香啦!只需一行Python代码就可以自动完成模型训练!

    自动化机器学习 Auto ML 是指数据科学模型开发的管道组件自动化 AutoML 减少了数据科学家的工作量并加快了工作流程 AutoML 可用于自动化各种管道组件 包括数据理解 EDA 数据处理 模型训练 超参数调整等 对于端到端机器学习
  • 小米 adb 驱动_ADB禁用系统应用

    第一步 下载ADB压缩包 并解压到根目录下 自己百度找ADB包 第二步 在ADB目录下 shift 鼠标右键 打开powershell 并输入cmd 第三步 手机进入开发者模式 百度 并打开USB调试 数据线连接电脑和手机 要安装好驱动 在
  • 解决idea项目没有蓝色小方块

    导入项目后 把项目中的几个子moudle复制了一份 作为一个新模块 结果发现 项目右下角没有 蓝色小方块 因此造成maven不能识别 如下图 解决方式 在右边侧栏 maven 面板 点击 选择该项目中的pom xml文件即可
  • linux安装时 dev sda4,VMvare在CentOS7.4安装iscsi共享盘

    VMvare 在 CentOS7 4 安装 iscsi 共享盘 1 在节点 1 上添加一个 20g 的存储并 reboot 1 1 查看新添加的磁盘 root xmc1 fdisk l Disk dev sda 32 2 GB 322122