惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - Franky
I
InfoQ
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Check Point Blog
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
U
Unit 42
N
Netflix TechBlog - Medium
The Cloudflare Blog
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
B
Blog
S
Securelist
H
Hacker News: Front Page
Google Online Security Blog
Google Online Security Blog
G
Google Developers Blog

Ansible

一个 tui 的 ansible playbook 执行引擎,欢迎使用 - V2EX 分享自己写的一个 ansible role,用来部署 meilisearch 有人同时用 PVE 和 Ansible 吗,用 Ansible 来管理 PVE 上的应用还挺方便 关于《大教堂与集市中》2.12 节的疑问 有时候 bug 出现的目标环境是其他发行版本,用 vagrant 还是 docker 来虚拟环境比较好? - V2EX yum install -y docker-ce-18.09.9-3.el7 还让我确认?怎么规避这个确认 - V2EX ansible sudo su - 不支持 - V2EX 关于 AWX 执行 ansible 的原理不解的地方 ansible-playbook 的剧本和相关的二进制文件怎么存比较好? - V2EX ansbile 怎么把连接的目标 HOST IP 通过变量传递过去 - V2EX ansible 远程自动交互式命令的响应 - V2EX jenkins 和 ansible 在不同服务器,想在 jenkins 配置远程 ansible 来调用对应 playbook 和 hosts 可以吗? - V2EX ansible api 里面的 ad-hoc 和 playbook 怎么做异步 - V2EX ansible 有没有关于 passphrase 的配置的 - V2EX Python 如何将 txt 导入 excel? - V2EX 刚刚在抢 S7 鸟巢的票,想到一个问题,之前大麦网说被 80W 并发量挤爆了 - V2EX Ansible 节点边栏链接错误 - V2EX ansible 中的 check 模式和 diff 模式到底神马意思? - V2EX ansible su 切换用户问题? - V2EX 请假 ansible 里 template 模板是否支持目录呢 - V2EX 玩 Ansible 虐到自己了! - V2EX Ansible Container Ansible 使用 Dynamic inventory 的 Script 得到的所有主机信息有办法分类么? - V2EX Ansible 初学问题 - V2EX ansible 怎么关闭 ask sudo password? - V2EX 发个福利给 Ansible 的同学们,本人亲测有效 - V2EX ansible 不支持 windows 做控制端吗?我的 windows10 py3.4 用这个老是出错 - V2EX ansible 有什么优点么? - V2EX Ansible 官网的文档读起来好别扭 - V2EX Ansible 节点这么冷清? 没有人用吗? - V2EX 用 DigitalOcean 一键部署 Cisco IPSec - V2EX 有了解 ansible-playbook 的么 - V2EX
ansible 如何控制 windows 后台运行 nginx? - V2EX
yuyuyu · 2017-05-06 · via Ansible

我使用下面的命令启动

ansible web -m win_shell -a 'start nginx chdir=C:\\nginx-1.13.0'

结果命令执行完返回后,windows 上没有 nginx 的进程,但 nginx 有生成 logs,感觉是刚启动完随着 ansible 的返回又被杀掉了 我看了 ansible 官方文档 http://docs.ansible.com/ansible/win_shell_module.html 下面有说“ WinRM will not return from a command execution until all child processes created have exited. Thus, it is not possible to use win_shell to spawn long-running child or background processes. Consider creating a Windows service for managing background processes.” 但我确实要启动 nginx 并且不希望用服务的方式,不然没办法 -s reload

也尝试过运行一个 cmd 然后里面写 start nginx,还有自己写一个小程序去运行 nginx,都不行,要么是没有 nginx 进程,要么是 nginx 启动成功但 ansible 一直挂起没有返回