AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-1563810

Dennis's questions

Martin Hope
Dennis
Asked: 2024-02-20 22:29:10 +0800 CST

使用 PowerShell Get-Disk 时不显示磁盘 0

  • 6
这个问题是从服务器故障迁移过来的,因为它可以在超级用户上回答。 2天前迁移 。

在我使用的一台计算机上,PowerShell cmdletGet-Disk不显示Disk 0. 但使用其他命令它会...

Get-Disk | Select Number, FriendlyName, HealthStatus, Size

Number FriendlyName    HealthStatus        Size
------ ------------    ------------        ----
     1 Kingston DT2000 Healthy      15502147584
C:\> Get-Disk -Number 0

Get-Disk : No MSFT_Disk objects found with property 'Number' equal to '0'. 
Verify the value of the property and retry.
At line:1 char:1
+ Get-Disk -Number 0
+ ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (0:UInt32) [Get-Disk], CimJobException
    + FullyQualifiedErrorId : CmdletizationQuery_NotFound_Number,Get-Disk
Get-PhysicalDisk | Select DeviceId, FriendlyName, HealthStatus, Size

DeviceId FriendlyName                     HealthStatus          Size
-------- ------------                     ------------          ----
1        Kingston DT2000                  Healthy        15502147584
0        KXG50ZNV1T02 NVMe TOSHIBA 1024GB Healthy      1024209543168
'list disk' | DiskPart

Microsoft DiskPart version 10.0.17763.1911

Copyright (C) Microsoft Corporation.
On computer: WIN-6S1H8T9U9AT

DISKPART>
  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          953 GB  1024 KB   *    *
  Disk 1    Online           14 GB  2048 KB
Get-Volume | Select DriveLetter, FileSystemLabel, HealthStatus, Size

DriveLetter FileSystemLabel HealthStatus          Size
----------- --------------- ------------          ----
                            Healthy          100663296
C                           Healthy      1023562215424
            Recovery        Healthy          523235328
D           KINGSTON        Healthy        15498014720

Get-Partition也在行动……

Get-Partition


   DiskPath: \\?\usbstor#disk&ven_kingston&prod_dt2000&rev_...

PartitionNumber  DriveLetter Offset                                     Size Type
---------------  ----------- ------                                     ---- ----
1                D           4128768                                14.43 GB IFS

有什么想法为什么Get-Disk会Get-Partition丢失Disk 0吗?

编辑 1:添加 DiskPart 输出。
编辑 2:添加了强制Get-Disk获取磁盘 0 时的错误消息。

windows
  • 1 个回答
  • 43 Views
Martin Hope
Dennis
Asked: 2022-08-18 14:45:12 +0800 CST

如何在便携式 Apache 上设置 GRAV(一个 PHP 应用程序)?

  • 5

我正在为使用普通 Markdown 文件的 Windows 10 计算机尝试一些个人 Wiki 系统,并遇到了GRAV。这是一个使用提取和删除设置的开源 CMS,大多数具有 PHP 7 的 Web 服务器都可以运行。

因为我之前尝试过 DokuWiki,所以我已经获得了MicroApache,并且认为我只需要在那里提取 GRAV-zip。但它不会启动,也许我需要一个干净的 MicroApache 下载和配置?

C:.
+---grav
\---server
    +---conf
    +---logs
    +---modules
    \---php
        \---ext

我.\server\conf\httpd.conf编辑改用 GRAV 文件夹。

# absolute minimum configuration for DokuWiki on a Stick
# change the Listen directive if you want to use a different port

Listen 8800
ServerName microapache
ServerRoot .
DocumentRoot ./../grav
ServerAdmin [email protected]

但是我在启动 MicroApache 时得到的只是一个损坏的网页......

cd server
start "Apache server" /B mapache.exe
start http://localhost:8800/
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete 
your request.

Please contact the server administrator at [email protected] to inform them of the 
time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

并且没有服务器可以停止

ApacheKill.exe

■ Killing all matching processes
■ Searching for processes matching "mapache.exe"
Error: A process with that name does not appear to be running

由于 GRAV 的大部分故障排除都是针对 Linux 的,因此我无法在我的 Windows 设置中遵循这些指南。

windows apache-http-server
  • 1 个回答
  • 30 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve