当前位置: 首页 > 编程日记 > 正文

FreeBSD Ports加速的方法

使用代理。

在/etc/make.conf中设置:
FETCH_ENV= "HTTP_PROXY=IP[:端口]"
如果需要,在FETCH_ENV值后面加入空格,
HTTP_PROXY_AUTH=basic:*:user:password
  • 利用其他机器下载的文件...
首先,请确保2台机器cvsup的一致,然后将A机的/usr/ports/distfiles拷贝至B机的相同位置。
更有甚者……开NFS吧。
方法c:使用wget/axel加速你的port下载
以下所述功能均通过修改make.conf实现
对于wget
========
FETCH_CMD= wget
FETCH_BEFORE_ARGS= -c -t 1
FETCH_AFTER_ARGS=
DISABLE_SIZE=yes #这行是必要的,否则...
前面3行也可以换成
FETCH_CMD=wget -c -t 1
如果你要wget穿透代理服务器,请加上下面两行
FETCH_ENV=http_proxy=http://proxy2.zsu.edu.cn:3128
FETCH_ENV=ftp_proxy=http://proxy2.zsu.edu.cn:3128
或者使用其他的穿越代理工具例如proxychains 或者socks5(runsocks)
则FETCH_CMD=proxychains wget或者runsocks wget
什么?不知道wget是什么?那就先
cd /usr/ports/ftp/wget/
make install clean
对于axel
========
同样,也可以使用axel来替换fetch来进行多线程下载
FETCH_CMD=axel
FETCH_BEFORE_ARGS= -a
FETCH_AFTER_ARGS=
DISABLE_SIZE=yes
或者只写一行
FETCH_CMD=axel -a
axel 穿透代理服务器的方法与wget一致
axel在/usr/ports/ftp/axel位置
  • 添加更快的port下载站点
在make.conf文件中使用配置MASTER_SITE_OVERRIDE参数,可自行增加软件镜像以及修改镜像服务器的优先级。
如,以下是解决教育网用户下载慢的问题
MASTER_SITE_OVERRIDE= \
ftp://ftp2.tsinghua.edu.cn/mirror/FreeBSD/ports/distfiles/ \
ftp://freebsd.csie.nctu.edu.tw/pub/FreeBSD/ports/distfiles/ \
ftp://ftp.hk.freebsd.org/pub/FreeBSD/ports/distfiles/ \
ftp://ftp.freebsdchina.org/pub/FreeBSD/ports/distfiles/
计算机科学中的本意:
1)端口 (计算机系统中用于输入输出的某个端点的抽象概念)
2)移植(多指跨平台之间的代码转换和适应性修改)
<不幸的是这个词我国的大多数计算机教科书和文档都翻译错了,很多就直译为
端口>

    在BSD系统中,特指FreeBSD/NetBSD/OpenBSD的一类特殊的软件维护系
统和方式,就是Ports软件集合;在系统中的存在方式为/usr/ports目录,里面有若干分类目录,每个目录包含若干软件的维护结构,由make命令来负责
下载/更新/安装本地系统中的ports软件(在联网状态下),所以系统中ports就是一组软件的配置文件和Makefile,更广义的,是包含这些软件的当前 ports源代码。(ports是世界上最伟大的软件工程之一,整个源码树系统由全世界成千上万的自由软件开发者维护)

    相对这个得一个概念,是packages Collection,packages就是每个ports对应的本地化二进制版本,可以直接用pkg_add命令安装,或者其他的pkg系列命令进行管理。

    ports也可以直接编译成packages,只要进入某个ports的目录,执行make package就可以制作当前软件ports版本对应的packages.

相关命令:
ports:
==============================================
下载/编译: make
安装 : make install
打包 : make package
升级 :详见cvsup
查询 : cd /usr/ports && make search key="关键字"

packages:
==============================================
安装: pkg_add
删除: pkg_delete
查询: pkg_info
.................

安装应用软件:The Ports collection
本文件操作于:FreeBSD 4.4-RELEASE
--------------------------------------------------------------------------------

Ports安装设定:
用Ports的方式安装基本的应用软件。而FreeBSD原则上会到各应用软件的总站台下载原始程序后才编译、安装,如此速度上会显得很慢。因此,我们必须设定FreeBSD只需到交大资工系(或者是台湾地区其它的mirror站)来抓取原始程序代码即可。
cp /etc/defaults/make.conf /etc/
vi /etc/make.conf  


将: # Port master sites.
#
# If you want your port fetches to go somewhere else than the default
# (specified below) in case the distfile/patchfile was not found,
# uncomment this and change it to a location nearest you.   (Don't
# remove the "/${DIST_SUBDIR}/" part.)
#
#MASTER_SITE_BACKUP?= \
#    ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
#
# If you want your port fetches to check the above site first (before
# the MASTER_SITES specified in the port Makefiles), uncomment the
# line below.   You can also change the right side to point to wherever
# you want.
#
#MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP}
#



改为: # Port master sites.
#
# If you want your port fetches to go somewhere else than the default
# (specified below) in case the distfile/patchfile was not found,
# uncomment this and change it to a location nearest you.   (Don't
# remove the "/${DIST_SUBDIR}/" part.)
#

MASTER_SITE_BACKUP?= \
    ftp://ftp.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
    ftp://ftp5.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
    ftp://ftp10.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
    ftp://ftp2.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
    ftp://ftp3.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
    ftp://ftp4.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
    ftp://ftp7.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
    ftp://ftp8.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
    ftp://ftp9.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
    ftp://ftp11.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
    ftp://ftp12.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/\
    ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/

#
# If you want your port fetches to check the above site first (before
# the MASTER_SITES specified in the port Makefiles), uncomment the
# line below.   You can also change the right side to point to wherever
# you want.
#
MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP}
#



上述站台的排列原则是,哪一台的网络联机与您的网络环境最佳者,排在第一个。

抓档案时,如果第一台抓不到,会依序向第二台询问有没有。如果都问完了,还是没有,就会到国外的原始站台去抓。不过,这种情形应该很少见到。



--------------------------------------------------------------------------------

开始用Ports安装应用软件:
cd /usr/ports/net/cvsup-without-gui; make install clean
cd /usr/ports/sysutils/portupgrade ; make install clean
cd /usr/ports/ftp/wget ; make install clean
cd /usr/ports/security/sudo ; make install clean
cd /usr/ports/shells/bash2 ; make install clean
cd /usr/ports/ftp/ncftp3 ; make install clean
cd /usr/ports/mail/imap-uw ; make install clean
cd /usr/ports/mail/qpopper ; make install clean
cd /usr/ports/security/pidentd ; make install clean
cd /usr/ports/misc/gnuls ; make install clean


其中,cvsup-without-gui 与 portupgrade 是属于系统更新( src 及 ports-tree )的工具软件,建议您一定要装。



--------------------------------------------------------------------------------

查看安装之后的结果:
pkg_info
autoconf-2.13_1     Automatically configure source code on many Un*x platforms
bash-2.05           The GNU Bourne Again Shell
gettext-0.10.35     GNU gettext package
gettext-0.10.38     GNU gettext package
gmake-3.79.1        GNU version of 'make' utility
isc-dhcp3-3.0.r11 ISC Dynamic Host Configuration Protocol client and server code
libiconv-1.7_1    A character set conversion library
libtool-1.3.4_2     Generic shared library support script
m4-1.4              GNU's m4
ncftp3-3.0.3        ftp replacement with advanced user interface
pidentd-2.8.5    An RFC1413 identification server
qpopper-4.0.3_1     Berkeley POP 3 server (now maintained by Qualcomm)
wget-1.7_3       Retrieve files from the 'net via HTTP and FTP




--------------------------------------------------------------------------------

大海捞针:搜寻某一ports
cd /usr/ports
make search key="popper" | more  
cd /usr/ports
make search key="libiconv" | grep Path: | grep libiconv  
Port: qpopper-2.53_2
Path: /usr/ports/mail/popper
Info: Berkeley POP 3 server (now maintained by Qualcomm)
Maint:   ache@freebsd.org
Index:   mail
B-deps:
R-deps:

Port: qpopper-4.0.3_1
Path: /usr/ports/mail/qpopper
Info: Berkeley POP 3 server (now maintained by Qualcomm)
Maint:   lioux@FreeBSD.org
Index:   mail ipv6
B-deps: autoconf-2.13_1 m4-1.4
R-deps:

Port:软件名称,Path:路径,Info:讯息,Maint:维护者,Index:类型。
cd /usr/ports
make search key="libiconv" | grep Path: | grep libiconv  




--------------------------------------------------------------------------------

ports-tree的更新
cd /usr/ports

fetch ftp://freebsd.csie.nctu.edu.tw/pub/CVSup/cvsupfile-ports
cvsup -g -L 2 cvsupfile-ports

我以HiNet-ADSL在FreeBSD 4.2-RELEASE上至NCTU更新ports,共花费了01:07:00。
而在苗栗县网中,以FreeBSD 4.6-RELEASE至NCTU更新ports,只花费了00:05:00。

这个更新的内容默认值是全部的ports,所需耗费的时间相对就很长。您可以只选择其中的一部份来更新即可,只要改cvsupfile-ports档案最底下的那一行(ports-all)。 ports-base: /usr/ports/... misc files at the top of /usr/ports
ports-archivers: /usr/ports/archivers archiving tools
ports-audio: /usr/ports/audio sound support
ports-benchmarks: /usr/ports/benchmarks benchmarks
ports-cad: /usr/ports/cad CAD tools
ports-comms: /usr/ports/comms communication software
ports-databases: /usr/ports/databases databases
ports-devel: /usr/ports/devel development utilities
ports-editors: /usr/ports/editors editors
ports-emulators: /usr/ports/emulators emulators for other OSes
ports-games: /usr/ports/games games
ports-graphics: /usr/ports/graphics various graphics utilities
ports-japanese: /usr/ports/japanese Japanese software.
ports-lang: /usr/ports/lang programming languages
ports-mail: /usr/ports/mail mail software
ports-math: /usr/ports/math numerical computation software
ports-misc: /usr/ports/misc miscellaneous utilities
ports-net: /usr/ports/net networking software
ports-news: /usr/ports/news USENET news software
ports-plan9: /usr/ports/plan9 various programs from Plan9
ports-print: /usr/ports/print printing software
ports-russian: /usr/ports/russian Russian software
ports-security: /usr/ports/security ``security'' utilities, for better or for worse
ports-shells: /usr/ports/shells various UN*X shells
ports-sysutils: /usr/ports/sysutils system utilities
ports-www: /usr/ports/www software related to the world wide web
ports-x11: /usr/ports/x11 X11 software






--------------------------------------------------------------------------------

用 ports 安装的软件,遇有该软件版本更新时如何处置?
请先做「ports-tree的更新」的动作,之后再分别执行下列三道指令:
portsdb -Uu

pkgdb -F

portupgrade -acCv

备注:执行 portsdb -Uu 时,会有令人觉得当机的味道。别耽心,耐心的稍等一下下就好。



--------------------------------------------------------------------------------

portupgrade时,改变预设的编译安装选项
编辑 /usr/local/etc/pkgtools.conf
MAKE_ARGS = {
'databases/mysql323-*' =>; 'WITH_CHARSET=big5',
'databases/mysql323-*' =>; 'SKIP_INSTALL_DB=yes',
'databases/phpmyadmin' =>; 'MYADMDIR?=www/data/phpMyAdmin',
'www/apache13' =>; 'WITH_APACHE_SUEXEC=yes',
}

mysql 安装时,预设不支持中文;而phpMyAdmin预设的安装路径则在www/data.default/phpMyAdmin,与apache不同,害我装了之后找好久才找到。



--------------------------------------------------------------------------------

版本冲突时
pkgdb -F
Duplicated origin: sysutils/portupgrade - portupgrade-20020706 portupgrade-20020805
Unregister any of them? [no] yes

Unregister portupgrade-20020706 keeping the installed files intact? [no] no



--------------------------------------------------------------------------------

portupgrade 强制更新 (操作于 FreeBSD 4.6.2-RELEASE )

未更新 PORTS-TREE 前,portupgrade 已安装的版本:
pkg_info | grep portupgrade
portupgrade-20020429 Very powerful FreeBSD ports/packages upgrading tool and mor


更新 PORTS-TREE 之后,PORTS 中 portupgrade 的版本:
grep \PORTVERSION= /usr/ports/sysutils/portupgrade/Makefile

PORTVERSION= 20020805


执行 portupgrade 后,portupgrade 自己并未更新。

强制以新的portupgrade取代旧的portupgrade-20020429
portupgrade -o /usr/ports/sysutils/portupgrade portupgrade-20020429


再检查一遍portupgrade 安装的版本:
pkg_info | grep portupgrade

portupgrade-20020805 Very powerful FreeBSD ports/packages upgrading tool and mor


--------------------------------------------------------------------------------

FreshPorts
http://freshports.org/
每一个ports都有专人负责,其更新也是非常迅速,这儿有第一手数据。



--------------------------------------------------------------------------------

网络上的相关文件:
http://freebsd.sinica.edu.tw/~statue/handbook/ports.html
http://freebsd.sinica.edu.tw/pipermail/freebsd-taiwan-doc/2001-April/000013.html
http://www.lsps.tp.edu.tw/~gsyan/freebsd2001/ports.html
http://ohaha.ks.edu.tw/ports.htm
http://ohaha.ks.edu.tw/portupgrade.htm
http://ohaha.ks.edu.tw/portexec.htm
http://www.study-area.net/freebsd/how_to_use_ports_package/how_to_use_ports.htm
http://freebsd.csie.nctu.edu.tw/handbook.big5/handbook197.html



--------------------------------------------------------------------------------

其它:
make install : 安装所选定的 Port
make deinstall : 移除已安装的 Port
make reinstall : 移除之后再安装一次
make clean : 安装完毕后移除 make 数据夹下的档案
make distclean : 移除安装后的源文件,以节省磁盘空间

make install
make install clean
make install clean distclean

转载于:https://blog.51cto.com/firesk/201822

相关文章:

AngularJS ng-if使用

示例中&#xff0c;根据ng-if指令显示不同任务状态&#xff0c;以及判断任务是否可以操作 <div ng-app"NgifDemoApp" ng-controller"NgifDemoContrl as vm"><h1>任务列表</h1><table class"table"><thead><tr&…

一、Tableau基础

有关函数的官方文档&#xff1a;https://onlinehelp.tableau.com/current/pro/desktop/zh-cn/functions_functions_string.htm 注意事项&#xff1a; 1.记录数:是Tableau自动给每行观测值赋值为1。 2.维度的字段&#xff0c;是不能用于计算的&#xff0c;若是要用于计算&#x…

关于OGNL表达式中的%,$,#

OGNL表达式非常强大&#xff5e;其中#、%、$这三个符号在OGNL表达式中经常出现&#xff0c;而这三种符号也是开发者不容易掌握和理解的部分&#xff0c;要认真区分。1&#xff0e;#符号的用途一般有三种。 1)访问非根对象属性&#xff0c;例如示例中的#session.msg表达式&#…

JavaWeb项目第三次总结_成绩查询的实现

查询图书的功能实现 如何知道浏览器往服务器传入的参数 1、在编写好查询页面后&#xff0c;使用火狐浏览器的friebug &#xff08;全部—>POST—>参数&#xff09; 2、编写GradeListServlet&#xff0c;重写doGet&#xff08;&#xff09;和doPOST&#xff08;&#x…

cisco路由交换系统测试命令

路由交换系统测试命令通用测试命令&#xff1a;ping X.X.X.X &#xff1a;标准ping命令&#xff0c;用于测试设备间的物理连通性ping &#xff1a;扩展ping命令&#xff0c;也用于设备间的物理连通性&#xff0c;扩展ping命令还支持灵活定义ping命令的参数&#xff0c;比…

jquery下拉菜单

自己写的一个菜单(因为是初学 不知道能不能算无限级)jquery $(document).ready(function(){ $("ul li").hover(function(){ $(this).find("ul:first").show();//鼠标滑过查找li下面的第一个ul然后显示&#xff1b;},function(){ …

MongoDB update修改器: 针对Fields的$修改器 $inc $set $unset

MongoDB update修改器: $inc $set $unset $push $pull $pop 针对Fields的$修改器 $set&#xff1a; { $set: { key: value } } $set:{"gender":"男"} 解释: $set 是update时的关键字,表示我要设置gender属性的值为"男" 如果该条Documents没有gen…

都是些什么人!

都是些什么人&#xff01;转载于:https://www.cnblogs.com/liyugeng/p/7877615.html

IO流(二)转换流、序列化、commons-IO框架

转换流 介于字符流和字节流之间的流 字节流与字节流相互转换 OutputStreamWriter 输出流&#xff0c;按照指定的字符集编码&#xff0c;把字符流转化成字节数据 编码&#xff1a;把字符数据转换成字节数据&#xff1b; 解码&#xff1a;把字节数据转换成字符数据 二进制数据—&…

Http之Get/Post请求区别

今天在网上看了一些关于http 协议中get 和Post的文章。在此做一个总结&#xff0c;当是做一个笔记吧。 一、什么是HTTP-GET和HTTP-POST HTTP-GET和HTTP-POST是使用HTTP的标准协议动词&#xff0c;用于编码和传送变量名/变量值对参数&#xff0c;并且使用相关的请求语义。每个HT…

[vb+mo] visual baisc 6.0 基于mapobjects 2.4 开发的数字化校园电子地图

程序的源代码下载地址: https://docs.google.com/ 请安装VB6.0企业版(不是企业版运行会报错,因为缺少相应的控件)和ESRI MO2.4 程序的质量一般,因为时间仓促,主要是毕业设计时间仓促.希望大家多多改进.有什么问题可以发邮件欢迎交流. 程序的主窗口代码: 通用变量定义Private l…

vsftp部署

1.安装该软件需要使用最高用户&#xff08;root&#xff09;进行安装&#xff0c;否则不能进行。 2.首先用命令检查VSFTP是否已经安装。chkconfig --list | grep vsftpd 3.安装vsftp。yum install –y vsftpd 4.启动vsftp。service vsftpd start 5.添加一个ftp用户。useradd f…

线程、线程匿名内部类、解决线程不安全的方式

线程 线程&#xff1a;正在运行的程序&#xff0c;是程序的执行路径&#xff1b;多线性 进程&#xff1a;是应用程序的载体&#xff0c;程序运行在虚拟机中。一个应用软件对应一个进程。 一个进程包含多个线程&#xff0c;一个线程对应一个进程。 好处&#xff1a;提高软件的运…

工作流编程循序渐进(9:使用本地服务在宿主和工作流之间通信)

工作流编程循序渐进&#xff08;9&#xff1a;使用本地服务在宿主和工作流之间通信&#xff09; 作者 朱先忠 &#xff3b;摘要&#xff3d;在本篇中&#xff0c;首先详细分析本地服务有关概念&#xff0c;探讨本地服务在工作流运行时、工作流实例及工作流宿主间的地位及作用…

使用Properties连接数据库

使用Properties连接数据库 要注意的是&#xff1a; 1.通过配置文件来连接数据库时&#xff0c;连接信息要以 mysql.XXX开头,否则会提示异常。 java.sql.SQLException: Access denied for user localhost (using password: YES)生成配置文件的实现代码 1、创建写入配置信息工…

两边横线,中间标题

<!DOCTYPE html> <html> <head> <title>两边横线&#xff0c;中间标题</title> <meta http-equiv"Content-Type" content"text/html; charsetutf-8" /> <style type"text/css"> <!--ul { mar…

交换机基础配置

请同学们下载附件中的实验并完成。转载于:https://blog.51cto.com/coffee0546/204093

python高级-模块(14)

一、python中的模块 有过C语言编程经验的朋友都知道在C语言中如果要引用sqrt函数&#xff0c;必须用语句#include <math.h>引入math.h这个头文件&#xff0c;否则是无法正常进行调用的。 那么在Python中&#xff0c;如果要引用一些其他的函数&#xff0c;该怎么处理呢&am…

RabbitMQ学习系列二:.net 环境下 C#代码使用 RabbitMQ 消息队列

上一篇已经讲了Rabbitmq如何在Windows平台安装&#xff0c;不懂请移步&#xff1a;RabbitMQ学习系列一&#xff1a;windows下安装RabbitMQ服务 一、理论&#xff1a; .net环境下&#xff0c;C#代码调用RabbitMQ消息队列&#xff0c;本文用easynetq开源的.net Rabbitmq api来实…

一步步学会使用ASP.NET 4 WEB应用程序中使用URL Routing(翻译)

创建路由 路由就是将URL路径映射到具体的物理文件。若要将路由添加到网站中&#xff0c;请使用 RouteCollection.MapPageRoute 方法将它们添加到RouteTable类的静态Routes属性。 将用于添加路由的方法添加到 Global.asax 文件中 如果网站还没有 Global.asax 文件&#xff0c;…

Properties持久的属性集

Properties 属性集合继承了Hashtable 属性包括属性名和属性值&#xff08;键值对keyvalue&#xff09; 作用 可以存储多个键值&#xff0c;与map相似可以把键值对存储到文件中可以把文件中的键值对读取到Properties对象中 构造方法&#xff1a; Properties() 创建一个无默认…

让你二十年后仍是人才

1.不管坐什么位置&#xff0c;都要保持学习的习惯出社会工作十年到十五年左右&#xff0c;会有一种「上下卡住」的闭塞感与无力感。因为&#xff0c;这个阶段的上班族虽然拥有一定的资历与经验&#xff0c;工作也得心应手&#xff0c;但上面有比自己更资深的前辈压着&#xff0…

Django ORM操作

Django ORM操作 一般操作 看专业的官网文档&#xff0c;做专业的程序员&#xff01; 必知必会13条 <1> all(): 查询所有结果<2> get(**kwargs): 返回与所给筛选条件相匹配的对象&#xff0c;返回结果有且只有一个&#xff0c;如果符合筛选…

ChineseCalendar类[转]

///<summary>///Title: ChineseCalendar类 ///Description: 中文日期工具类 ///author 万灵杰[作者] ///version 1.0.0.0 ///date 2009年7月30日 ///modify ///date ///</summary>publicclassChineseCalendar { privatestaticrea…

程序员的自我救赎---13.1:职场招聘与面试心得

《前言》 《目录》 &#xff08;一&#xff09; Winner2.0 框架基础分析 &#xff08;二&#xff09;PLSQL报表系统 &#xff08;三&#xff09;SSO单点登录 &#xff08;四&#xff09; 短信中心 &#xff08;五&#xff09;钱包系统 &#xff08;六&#xff09;GPU支付中心 &…

网络编程 UDP通信的过程 TCP通信过程 多线程文件上传

网络概述 协议 在网络之间传出数据时需要按照指定的标准来传输&#xff0c;标准中规定了数据的格式、大小、传输的方式、传输速率。形成统一规范—>按照规范开发的代码—>协议&#xff08;应用层、传输层、网络层、链路层&#xff09; InetAddress类 用来分装网络地址…

set debug mode for flex builder

1. 要具备debug功能&#xff0c;我们必须要首先安装Flash Player Debug 版本。windows版本2. 安装好debug版本后&#xff0c;我们还需要添加日志的配置文件mm.cfg。该配置文件存放的目录如下&#xff1a;Macintosh OS X MacH D:Library:Application Support:macromedia:mm.cfgM…

XML 解析XML文档 XML约束

XML 什么是XML Extensible Markup Language&#xff08;可扩展的标记语言&#xff09;他是一个语言&#xff0c;有自己的语法&#xff0c;和Java以及其他的编程无关“标记” 在文件中包含类似于张三 &#xff0c;这种用尖括号括起来的叫标记&#xff0c;使用来标记数据的。标…

Host Only、NAT和Bridge三种网络连接

Host Only、NAT和Bridge三种网络连接 在安装好了Linux镜像之后&#xff0c;如何连接物理机和虚拟机呢&#xff1f;这就需要网络连接&#xff0c;网络连接有三种&#xff1a;HostOnly、NAT、Bridge&#xff0c;它们都可用于Guest虚拟机和Host物理机之间的网络通信。 一、三者的不…

OSPF 提升 一 ----基础

ospf ccnp内容 一 link-state protocols IGP 开放式的最短路径优先协议 公有协议支持中到大型的网络 spf算法 链路状态协议1.传送的LSA link status advertisement 链路状态通告 包换拓扑信息具体包括&#xff1a;网段的前缀 掩码 连接的路由器的…