Observium Updating

本文详细介绍如何无缝升级Observium,包括禁用cron作业、更新社区版和订阅版、恢复配置及数据库模式更新等步骤,确保软件保持最新状态。

Updating

Observium has been designed from its initial inception to be easy and seamless to upgrade. We recommend keeping Community Edition installations updated to the latest version and updating Subscription Edition installations at least once per month.

Community Edition

Upgrade to latest Major release

Disable observium cronjobs optional

Run the following commands (as root):

cd /opt
mv observium observium_old
wget -Oobservium-community-latest.tar.gz http://www.observium.org/observium-community-latest.tar.gz
tar zxvf observium-community-latest.tar.gz
mv /opt/observium_old/rrd observium/
mv /opt/observium_old/logs observium/
mv /opt/observium_old/config.php observium/

Update DB schema:

/opt/observium/discovery.php -u

If it has been a very long time since you've updated (12 months or more), you may want to force an immediate rediscovery of all devices to make sure things are up to date :

/opt/observium/discovery.php -h all

Re-enable observium cronjobs optional

You may now delete your observium_old directory if everything has updated correctly:

rm -rf observium_old
"Updating skeletons" 是一个在使用某些 Python 调试器(如 `pydevd`、`PyCharm` 远程调试)或远程解释器时常见的提示信息。它通常出现在使用 JetBrains PyCharm 的远程调试功能、Jupyter Notebook 与远程内核交互,或者使用某些 IDE 的热重载功能时。 --- ### ✅ 问题解释: “**Updating skeletons**” 的含义是:IDE(如 PyCharm)正在将远程解释器上的模块结构(类、函数、变量等)同步到本地,以便提供代码补全、跳转定义、调试等功能。这些同步的信息被称为“skeletons”(骨架),它们是远程模块的结构信息,而不是实际代码本身。 #### 常见场景包括: - 使用 PyCharm 的 **Remote Interpreter** - 使用 Jupyter Notebook 配合远程 IPython 内核 - 使用某些调试器时(如 `pydevd`) --- ### ✅ 是否需要担心? - **正常情况**:如果你正在使用远程解释器或远程调试,这个提示是正常的,表示 IDE 正在为你同步远程模块的结构信息。 - **卡住或频繁出现**:说明远程模块很多或网络延迟高,可以优化远程环境的模块结构,或者关闭不需要的自动同步功能。 --- ### ✅ 如何关闭或优化? #### 在 PyCharm 中: 1. 打开设置: - `File > Settings`(Windows/Linux)或 `PyCharm > Preferences`(macOS) 2. 导航到: - `Build, Execution, Deployment > Debugger > Python Debugger` 3. 取消勾选: - `Gather context for code completion while debugging`(如果你不需要调试时的自动补全) 4. 或者在远程解释器中: - 减少不必要的模块导入,避免结构同步时间过长 --- ### ✅ 示例:远程调试代码(使用 PyCharm) ```python import pydevd_pycharm # 在远程机器上运行的代码 pydevd_pycharm.settrace('localhost', port=5678, stdoutToServer=True, stderrToServer=True) # 你的代码逻辑 def hello(name): print(f"Hello, {name}") hello("World") ``` ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值