跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[分享创造] ngxctl:又又又一个重写了 ngxtop 的 nginx 工具,并增加了一些新的功能

发表于

背景

很多年前的一个 repo ngxtop 我感觉还是比较有用的,但是在我的环境上面并不能正常运行。因此对这个进行了重写

功能与设计会参考之前,但是不仅仅只是参考。目前功能与设计都很不完善,只实现了 top 统计这个核心功能。 之前仅个人使用,现在已经上传到 pypi ,分享出来,看看大家还有什么好的点子。

安装

# Install from PyPI
pip install ngxctl

# Install from Tencent Cloud source
pip install ngxctl --index-url https://mirrors.cloud.tencent.com/pypi/simple --trusted-host mirrors.cloud.tencent.com

使用简介:

  • top 统计
ngxctl top


# 支持的参数与用例可以参考
ngxctl top -h
  • 查看 nginx 的日志文件
ngxctl files
  • 查看配置了哪些参数
ngxctl vars

结语

  1. 更详细的一些说明可以看看 pypi 的主页 https://pypi.org/project/ngxctl/
  2. 这个是内部的工具转型对外开放,设计上会有很多不完善的地方,请轻喷
  3. 代码还没有开源,在我个人的代码仓库上。github 账号有点问题,国庆期间弄了一次还没有成功,而且还在看如何保持两边的代码同步。没弄过这玩意,后面肯定会开源,毕竟 github 也是宣传的一种途径
  4. 目前用爱发电,也希望有一天能商业化,能赚一点就是一个突破

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.