service 相关问题

服务是一种长期运行的可执行文件,它执行特定的功能,并且不需要用户干预。

如何在serviceA.service失败后停止systemd linux serviceB.service

我正在运行 2 个 systemd 服务 - serviceA.service 和 serviceB.service。在我的场景中,serviceA.service 在启动时失败,显示 - 已加载:已加载(/etc/systemd/system/serviceA.service;已禁用;...

回答 1 投票 0

Registry.CurrentUser.OpenSubKey 返回 HKEY_USER 密钥

在我的 Windows 7 测试机中,我有一个注册表项“MyApp”,它在 HKEY_CURRENT_USER\Software 下可见。 在 HKEY_USERS 下还有一个名为“S-1-5-21-xxxx-1000”的键,子键为“Software”...

回答 0 投票 0

Powershell 服务在循环中找不到 SQL 服务,但在 get-service 下运行时服务在那里

我们在供应商工具中跟踪 SQL 服务,但我们无法再访问这些服务。所以我正在尝试 Powershell,这是我的新手。当我运行它时,SQL 服务错误提示 Get-Service: Cannot...

回答 1 投票 0

ngrok 作为服务:无法让日志记录工作

使用 ngrok v3.3.0,Windows 10 专业版。 我将 ngrok 作为 Windows 服务运行,并将日志记录设置为本地记录到磁盘(见下文)。当我启动该服务时,它确实创建了一个空日志文件,但是......

回答 0 投票 0

如何让 Rscript 在 Azure Batch 节点上运行

我在 Azure Batch 中运行 R 脚本时遇到问题,我使用 ubuntu 创建了一个 Pool 并在节点上安装了 R 包。 Rscript 和 R 命令在 Node.js 上运行良好。 当我使用管道自定义运行 Rscript

回答 0 投票 0

从服务器接收到的身份验证标头.. BASIC - WFC - NET CORE

我使用 WCF(连接服务)和 .NET CORE,我想调用 wfc 服务并发送 xml...但是当执行服务时, 这抛出下一个异常 “接收到的身份验证标头......

回答 2 投票 0

Azure openAI 的资源部署失败

我访问 Azure OpenAI 服务的申请已获批准。 我尝试在我的资源组中创建新的 Azure OpenAI 资源,但失败了。 我检查了订阅中的日志,然后...

回答 0 投票 0

Linux:如何使守护进程/服务可用于 xinetd?

任何人都知道服务器需要进行哪些更改才能与 xinetd 一起工作? 服务器是在 Linux 上运行的 .NET 邮件服务器。 请参阅本文底部以供参考: Lumisoft 邮件服务器 F...

回答 2 投票 0

当用户删除通知时停止媒体会话服务 Media3

我正处于将我的应用程序从 Exoplayer 迁移到 jetpack Media3 的阶段,我想在用户删除通知后停止我的 MediaSessionService 但在 MediaNotification.Provider 我们合作...

回答 0 投票 0

我想要一个由系统服务执行的 yarn 命令

我在浏览器中使用 Dashy 作为主页。您可以添加和管理要显示在仪表板上的项目。 但是每次您进行更改时,您都必须重建 dashy 以使任何更改生效。 我写了一个

回答 0 投票 0

无法在 kubernetes 服务中添加 ipv6 类型的负载均衡器 IP

我在 GKE 上,我正在尝试公开一个使用 IPV6 地址的应用程序。 这是我的服务.yaml api版本:v1 种类:服务 元数据: 注释: cloud.google.com/neg: '{"ingress"...

回答 0 投票 0

如何将我的 [ngClass] 条件转移到一个单独的 ts 文件中作为所有组件的可重用代码,而不是在每个 html 文件中重复它?

目前我的代码正在运行。但是,我的 [ngClass] 条件非常庞大。在 html 的许多组件中重复它使得在需要任何更改时难以维护并使...

回答 1 投票 0

.NET 3rd Party Dependency Decoupling and versioning

我们有一个 .Net 服务可以访问我们必须引用的第三方 API DLL。这个第 3 方 API 有几个不同的版本。即 5.9、5.10、5.11。即使调用相同,t...

回答 1 投票 0

如何知道什么时候应该调用服务

我有 2 个 React 组件和一个服务。 第一个反应成分如下 const DG= () => { const { wsManager } = useContext(AppContext); 使用效果(()=> { 常量 tbsInstance = wsMan...

回答 1 投票 0

即使应用程序在后台/未打开,我如何从服务器触发反应本机应用程序(在 android 中运行)中的代码?

我需要运行一些代码来从服务器远程使用 React Native 应用程序来控制手机的音量。我如何确保即使应用程序在后台,或者即使它没有打开......

回答 0 投票 0

收到意向后如何启动服务?

我正在为 Sleep as Android 制作一个可穿戴插件。它使用基于意图的 API,例如,在收到 com.urandroid.sleep.watch.START_TRACKING 后,应用程序应该每 2 分钟发送一次意图 wi...

回答 0 投票 0

当通话处于响铃状态时检测来电 InCallService android

我正在使用 InCallService 在我的应用程序中拨打电话。它可以很好地处理来电和去电。 onCallAdded() 在我接听或拨打电话时被调用。 呼叫服务: 公开课 CallService e...

回答 0 投票 0

如何编辑具有相同对象角度的对象数组的数据?

我正在使用服务在不属于父子关系的组件之间共享数据 customer-form-data.html 文件 我正在使用服务在不属于父子关系的组件之间共享数据 customer-form-data.html 文件 <div class="container-fluid"> <div class="row"> <div class="col-12"> <!-- from start from here --> <form #f="ngForm" name="customerForm"> <div> <label for="" class="from-label">Customer Name:</label> <input type="text" class="form-control" [(ngModel)]="custName" name="custName" autocomplete="off"> </div> <div> <label for="" class="form-label">Customer email:</label> <input type="email" class="form-control" id="contactEmail" [(ngModel)]="custEmail" name="custEmail" autocomplete="off" > </div> <app-customer-address-data #address></app-customer-address-data> <div class="mt-2 "> <label for="" class="me-3">Customer status:</label> <select name="" id="" (change)="selectedDropDownValue($event)"> <option value="Active" selected>Active</option> <option value="Inactive">Inactive</option> </select> </div> <button type="submit" class="btn" (click)="onclickSubmit()" [disabled]="!custName || !custEmail">Submit Data</button> </form> <hr> <!-- form end here --> </div> customer-form-data.ts 文件 export class CustomerFormDataComponent implements OnInit { id: number = 0; custName!: string; custEmail!: string; @ViewChild(CustomerAddressDataComponent, { static: true }) child!: CustomerAddressDataComponent; selectedStatusValue!: string; @ViewChild('f') customerDetailForm!: NgForm; customerData: customerListInterface[] = []; editedObject!: customerListInterface; constructor(public userDataservice: UserDataService) {} ngOnInit(): void { this.customerData = this.userDataservice.userData; // default value for status dropdown this.selectedStatusValue = 'Active'; // edit data functionality using subsriver to fill up the from on click on edit data button this.userDataservice.editData.subscribe((user) => { // here i get object of selected item {id: 1, name: 'heli', email: '[email protected]', address:'india', status: 'active'} and then i fill up it to form input this.id = user.id; this.custName = user.name; this.custEmail = user.email; this.child.addressData = user.address; this.selectedStatusValue = user.status; }); } selectedDropDownValue(event: any) { this.selectedStatusValue = event.target.value; } // onclick on submit onclickSubmit() { this.customerData.push({ id: this.id++, name: this.custName, email: this.custEmail, address: this.child.addressData, status: this.selectedStatusValue, }); this.customerDetailForm.reset(); this.child.addressData = ''; } 所以事情是当编辑数据按钮单击表行并且数据填充到表单中时 adter 编辑数据当用户单击此处提交数据时它应该比较表单的 id 与对象数组的现有 id userdata.service.ts 文件 export class UserDataService { userData: customerListInterface[] = []; editData = new EventEmitter<customerListInterface>(); } 客户数据表.html <table class="table"> <thead class="border"> <tr > <th scope="col">Customer Name </button></th> <th scope="col">Customer email</th> <th scope="col">Customer address</th> <th scope="col">status</th> <th></th> </tr> </thead> <tbody > <!-- itterate over array --> <tr *ngFor="let data of customerFilteredArray"> <td> {{ data.name }} </td> <td> {{ data.email }} </td> <td class="addressData"> {{ data.address }} </td> <td>{{ data.status}}</td> <td> <button type="button" class="btn btn-primary editButton" (click)="editData(data)">Edit Data</button> </td> </tr> </tbody> </table> 客户数据表.ts 文件 export class CustomerDataTableComponent { isAssending: boolean = false; customerDataArray: customerListInterface[] = []; customerFilteredArray: customerListInterface[] = []; constructor(private userDataService: UserDataService) {} ngOnInit(): void { this.customerDataArray = this.userDataService.userData; this.customerFilteredArray = this.customerDataArray; } // get the value of editdata row and index of selected edit value editData(event: any) { this.userDataService.editData.emit(event); } } 全球界面 export interface customerListInterface { id: number; name: string; email: string; address: string; status: string; } 现在我的问题是当单击编辑按钮时我如何编辑数据,该按钮在表格行内可用我之前做了哪个索引但这是错误的方法 我有一个基本的理解,我可以通过比较 id 的值来实现,如果行 id 和对象 id 都相同,那么它将被编辑,否则它将把数据存储在新行中,并将对象存储在数组中 我试过了,但我无法实现,我只是想不通如何使用按钮内的对象单击并将其与对象数组的其他 id 进行比较

回答 0 投票 0

在启动时使用服务运行 Mono 应用程序

当ubuntu系统启动时,我启动test.exe的服务失败(使用systemctl status Testprog.service): 在 System.Windows.Forms.XplatUIX11..ctor () 在 System.Windows.Forms.XplatUIX11.

回答 0 投票 0

千眼集成与 PagerDuty 服务不可用

登录到 ThousandEyes 并导航至警报 -> 警报规则 ->(选择警报规则) -> 单击通知选项卡,然后编辑集成将带您进入一个弹出窗口以选择...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.