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
    • 最新
    • 标签
主页 / computer / 问题

问题[services](computer)

Martin Hope
Fëanorson
Asked: 2022-11-30 04:20:04 +0800 CST

清洁/调试服务

  • 5

我有一个 shell 环境库,我在其中为我的 bash/zsh 环境(Linux 和 macOS)维护所有类型的检查和辅助函数。我喜欢定期检查自动检查我的操作系统的功能,这样我就不会忘记某些事情并始终保持一切新鲜。

今天我在我的 Raspberry 上运行一些服务,当列出所有服务时,systemctl list-units --type=service --all我注意到一些失败和not-found条目。故障很容易清理,因为它们是未清理干净的旧 pihole 和 vsftpd 服务文件。但是我应该如何处理这些not-found问题呢?是否有某些人可以简单地忽略或为他们生成基本服务文件?

pi@raspberrypi [130] % systemctl list-units --type=service --all | grep "not-found"
● auditd.service                  not-found inactive dead    auditd.service
● console-screen.service          not-found inactive dead    console-screen.service
● exim4.service                   not-found inactive dead    exim4.service
● firewalld.service               not-found inactive dead    firewalld.service
● gssproxy.service                not-found inactive dead    gssproxy.service
● kbd.service                     not-found inactive dead    kbd.service
● mountkernfs.service             not-found inactive dead    mountkernfs.service
● NetworkManager.service          not-found inactive dead    NetworkManager.service
● nfs-blkmap.service              not-found inactive dead    nfs-blkmap.service
● nfs-server.service              not-found inactive dead    nfs-server.service
● nslcd.service                   not-found inactive dead    nslcd.service
● sendmail.service                not-found inactive dead    sendmail.service
● sssd.service                    not-found inactive dead    sssd.service
● systemd-update-done.service     not-found inactive dead    systemd-update-done.service
● systemd-vconsole-setup.service  not-found inactive dead    systemd-vconsole-setup.service
● ypbind.service                  not-found inactive dead    ypbind.service
services
  • 1 个回答
  • 16 Views
Martin Hope
Sybuser
Asked: 2022-09-14 01:11:56 +0800 CST

Powershell Get-Service:如何过滤掉被禁用的服务?

  • 5

我正在尝试使用以下方式启动多个服务:

Get-Service SERVICE* | Start-Service

当 Get-Service 返回被禁用的服务时,我遇到以下错误:

    + CategoryInfo          : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
   ServiceCommandException
    + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand

如何过滤掉被禁用的服务?

powershell services
  • 1 个回答
  • 42 Views
Martin Hope
machine_1
Asked: 2022-08-19 16:11:23 +0800 CST

任务计划程序输入密码后是否启动服务?

  • 5

如果我有一项由具有“仅在用户登录时运行”属性的任务计划程序启动的服务,它是在登录屏幕上启动还是在输入有效密码后启动?

windows services
  • 1 个回答
  • 35 Views
Martin Hope
metablaster
Asked: 2021-12-24 12:22:08 +0800 CST

什么是“触发启动”服务启动类型?

  • 6

Trigger start在 Windows 服务 (services.msc) 中的“启动类型”列下提到了一些Windows 服务

我想这意味着如果服务没有运行,那么如果有什么需要服务,它将按需启动,对吗?

您对“触发器启动”的含义有任何参考吗?

windows services
  • 2 个回答
  • 525 Views
Martin Hope
Niek Jonkman
Asked: 2021-12-22 04:09:37 +0800 CST

使用 sc.exe 查询时仅返回服务状态

  • 9

使用以下命令将有关服务的信息返回到文件时:

sc.exe query MyService >> MyFileLocation\MyFile.txt

我在文件中得到以下信息:

SERVICE_NAME: MyService 
        TYPE               : 10  WIN32_OWN_PROCESS  
        STATE              : 4  RUNNING 
                                (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0

但我只需要国家。我检查了文档中的属性:

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/sc-query

但我找不到任何让我只返回状态的东西。是否可以这样做,如果可以,该怎么做?提前致谢。

powershell services
  • 2 个回答
  • 1464 Views
Martin Hope
timyc
Asked: 2021-12-20 21:44:08 +0800 CST

Windows 服务是否具有提升的权限?

  • 7

如果我使用 nssm install 使用 nssm 创建服务,该服务是否以管理员权限运行?如果是这样,我该如何撤销它?

windows services
  • 1 个回答
  • 537 Views
Martin Hope
Aibek
Asked: 2021-10-23 06:46:31 +0800 CST

当附加嵌入式视频/图像时,discord 之类的服务如何防止 IP 抓取?

  • 5

假装我已将托管在我的私人服务器上的图像或视频发布到不和谐频道。

然后该不和谐服务器中的其他人点击播放视频,或查看嵌入的消息(不点击链接,只需在应用程序中打开它)。

Discord 如何(如果有的话)防止 IP 地址等客户端信息泄露?

他们会转发视频吗?(似乎是一个非常昂贵的解决方案)

他们不显示来自不受信任来源的嵌入吗?

services discord
  • 2 个回答
  • 458 Views
Martin Hope
chizou
Asked: 2021-10-22 22:12:36 +0800 CST

Windows 10 缺少服务

  • 6

我正在尝试在我的计算机上使用智能卡,即使在另一台计算机上使用完全相同的读卡器,我也无法让它在我的一台计算机上读取。两者都运行 Windows 10 21H1。将读卡器插入非工作计算机确实会在设备管理器中安装一个设备,以便计算机可以检测到读卡器。

我注意到不同的一件事是工作计算机具有智能卡服务,但非工作计算机没有此服务。我的猜测是我需要该服务才能使其识别。但这就是我迷路的地方。到目前为止,我已经尝试运行以下命令:

DISM.exe /Online /Cleanup-image /Restorehealth
sfc /scannow

它确实修复了一些问题,但重新启动后智能卡服务仍未出现。

任何指针都非常感谢,谢谢。

windows-10 services
  • 2 个回答
  • 979 Views
Martin Hope
Minsky
Asked: 2021-07-07 22:26:30 +0800 CST

作为服务启动时进程的当前目录更改

  • 5

我已经编写了这个服务单元来运行systemd:

[Unit]
Description=NodeJS, Express server

[Service]
Type=simple
ExecStart=/usr/bin/node /home/sm/test.js
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target

test.js 相当于一个ls,这样写:

const fs = require('fs')
fs.readdir('.', (e,d)=> e ?console.log(e): console.log(d))

运行node test.js或什sudo node test.js至或node /<pathTo>/test.js从 CLI 输出脚本运行的目录。

如果这是使用systemctl启动的,它会记录根目录。

其背后的逻辑是什么?为什么日志会改变?

linux services
  • 1 个回答
  • 115 Views
Martin Hope
Bottish
Asked: 2021-02-27 10:18:43 +0800 CST

如何查看没有描述的服务?

  • 6

我有这段代码

Get-CimInstance Win32_Service | Format-List Name, Description

它向我展示了所有服务及其描述,但是当我添加

| Where-Object {$_.Description -eq ""}

向我显示哪些服务没有描述,没有出现。我能做些什么来解决这个问题吗?

整个代码是: Get-CimInstance Win32_Service | Format-List Name, Description | Where-Object {$_.Description -eq ""}

services powershell-core
  • 1 个回答
  • 41 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