Comments (3)
golang 在 linux 下的 exec 实现会使用 clone 创建新进程,当主程序退出时子进程会变成孤儿进程并被 init 进程(进程号为 1)接管。如果你想让程序在终端关闭后继续运行的话,你可以使用 nohup 或者 screen 防止进程被结束。
如果你想查看登录情况,你可以使用 nohup 输出日志文件,或者使用 screen 恢复命令终端,或者编写 service 文件后使用 systemctl 查看日志
from bitsrunlogingo.
感谢回答!提一个小小的意见,或许可以把如何后台运行加在readme里?
from bitsrunlogingo.
bitsrun 里的 daemon 即不归规范也不好用,已经在新版本中移除。至于如何后台运行,那是每种操作系统的知识,不属于本项目的范畴,我不想放进 readme
from bitsrunlogingo.
Related Issues (20)
- 多个网口使用同一个IP请求 HOT 10
- 多网卡模式设置问题 HOT 2
- 运行出错,状态异常: login_error HOT 2
- 双拨问题 HOT 29
- Pull Request 预请求 HOT 21
- 报错 HOT 1
- 多线多号多拨问题 HOT 7
- 请问ac_id能否自动获取 HOT 8
- 编译报错:invalid go version HOT 4
- 不能follow重定向 HOT 3
- 作者有考虑加入ipv6支持吗 HOT 3
- 登录失败,请问 enc 参数应该填哪个 HOT 16
- luci 应用崩溃 HOT 1
- 被Windows报毒了 HOT 1
- rr_code=2,不知道为啥输入的网址在运行后会多加/cgi-bin/srun_portal ,用浏览器进入http://172.31.252.106/cgi-bin/rad_user_info 也是空的,不知道是不是程序给网址加了这一段导致的 HOT 11
- 守护模式检测失败后不会尝试重新链接吗?为什么只是打印错误信息了 HOT 1
- 连接报错Nas Type Not Found HOT 6
- 脚本登录上了但上不了网 HOT 3
- 登陆出错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitsrunlogingo.