电脑计算机论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 86|回复: 0

凝思系统安装SNMP的两种命令方式

[复制链接]
匿名
匿名  发表于 2026-7-24 17:45:13 |阅读模式
凝思系统属于Debian内核,安装软件使用 apt-get或者dpkg命令

1、apt(或者apt-get)是高层自动化工具(解决依赖、联网下载)
2、dpkg用于手动安装离线包,完全不解决依赖‌。

以安装snmp为例:
1、  cd \root
       scp    snmp*.deb  snmpd*.deb     192.168.1.1:/tmp  (将  snmp和snmpd两个包复制到192.168.1.1主机)
2、192.168.1.1上
    cd /tmp
    dpkg -i  snmp**.deb
    dpkg -i  snmpd**.deb

使用iso文件作为镜像源,配置方法:
1、debian8有3张光盘,先将光盘拷贝到虚拟机里面,然后找个目录新建三个挂载点,我这里用了/home下面的file1、file2、file3作为挂载点,执行:

mount -o loop debian-8.4.0-i386-DVD-1.iso /home/file1
mount -o loop debian-8.4.0-i386-DVD-2.iso /home/file2
mount -o loop debian-8.4.0-i386-DVD-3.iso /home/file3


挂在成功后,进入/etc/apt目录下,将source.list拷贝为source.list.bk做备份,然后vim source.list,修改为:


deb file:///home/file1 jessie contrib main
deb file:///home/file2 jessie contrib main
deb file:///home/file3 jessie contrib main

保存退出,执行:apt update


发现确实识别到了仓库:

复制
1 Get:1 file: jessie Release [18.5 kB]
2 Get:2 file: jessie Release [16.3 kB]
3 Get:3 file: jessie Release [13.8 kB]
4 Reading package lists... Done
5 Building dependency tree      
6 Reading state information... Done
7 All packages are up to date.
然后就可以随便 apt install 了,又方便,又快捷
      

您需要登录后才可以回帖 登录 | 注册

本版积分规则


QQ|手机版|小黑屋|电脑计算机论坛 ( 京ICP备2022023538号-1 )

GMT+8, 2026-9-18 03:20 , Processed in 0.080967 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表