首页 > Windows开发 > 详细

filebeat7.5.2 在 windows server 2008 R2 设置系统服务报错

时间:2020-06-01 22:19:49      阅读:147      评论:0      收藏:0      [点我收藏+]

今天在windows server 2008 R2 设置filebeat为系统服务报错(在 windows 10 、windows server 2012、windows server 2019下安装均正常),内容如下

PS D:\ELK\filebeat-7.5.2> .\install-service-filebeat.ps1
无法加载文件 D:\ELK\filebeat-7.5.2\filebeat\install-service-filebeat.ps1,因为在此系统中禁止执行脚本。有关详细信
get-help about_signing"
所在位置 行:1 字符: 31
+ .\install-service-filebeat.ps1 <<<<
    + CategoryInfo          : NotSpecified: (:) [], PSSecurityException
    + FullyQualifiedErrorId : RuntimeException

powershell不允许执行任何可执行脚本的, 网上查找并测试可用以下方法

PS D:\ELK\filebeat-7.5.2> PowerShell.exe -ExecutionPolicy RemoteSigned -File .\install-service-filebeat.

Status   Name               DisplayName
------   ----               -----------
Stopped  filebeat           filebeat


PS D:\ELK\filebeat-7.5.2>

 

filebeat7.5.2 在 windows server 2008 R2 设置系统服务报错

原文:https://www.cnblogs.com/leohe/p/13027739.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!