当前位置: 首页 > news >正文

瑞丽住建局网站安徽网络seo

瑞丽住建局网站,安徽网络seo,昆明优化官网服务,淘宝排名刷FreeBSD 论坛的时候,看到这样一招:使用pkg -r选项,往jail等虚拟机子系统里安装软件。jails - How to install a pkg offline into a jail? | The FreeBSD Forums rootfbhost:~ # pkg pkg: not enough arguments Usage: pkg [-v] [-d] [-l…

刷FreeBSD 论坛的时候,看到这样一招:使用pkg -r选项,往jail等虚拟机子系统里安装软件。jails - How to install a pkg offline into a jail? | The FreeBSD Forums

root@fbhost:~ # pkg
pkg: not enough arguments
Usage: pkg [-v] [-d] [-l] [-N] [-j <jail name or id>|-c <chroot path>|-r <rootdir>] [-C <configuration file>] [-R <repo config dir>] [-o var=value] [-4|-6] <command> [<args>]For more information on available commands and options see 'pkg help'.

-r选项后面跟<rootdir> ,也就是是虚拟子系统的根目录,比如对下面的ubu这个虚拟子系统,根目录是是/usr/jails/jails/ubu

先列表看看运行的jail虚拟机子系统

root@fbhost:~ # jlsJID  IP Address      Hostname                      Path18  10.0.0.2        fb12.my.domain                /usr/jails/jails/fb1221  10.0.0.3        ubu.my.domain                 /usr/jails/jails/ubu

看看ubu子系统里面有没有curl

root@fbhost:~ # jexec ubu curl csdn.net
jexec: execvp: curl: No such file or directory

看来是没有 ,本地是有的

root@fbhost:~ # curl
curl: try 'curl --help' or 'curl --manual' for more information

在jail子系统里安装curl

root@fbhost:~ # pkg -r /usr/jails/jails/ubu install curl 
Updating FreeBSD repository catalogue...
pkg: No SRV record found for the repo 'FreeBSD'
Fetching meta.conf:   0%
FreeBSD repository is up to date.
All repositories are up to date.
The following 4 package(s) will be affected (of 0 checked):New packages to be INSTALLED:curl: 8.7.1libnghttp2: 1.61.0libpsl: 0.21.5libssh2: 1.11.0_1,3Number of packages to be installed: 4The process will require 6 MiB more space.
2 MiB to be downloaded.Proceed with this action? [y/N]: y
[1/4] Fetching libnghttp2-1.61.0.pkg: 100%  144 KiB 147.0kB/s    00:01    
[2/4] Fetching libssh2-1.11.0_1,3.pkg: 100%  281 KiB 287.9kB/s    00:01    
[3/4] Fetching libpsl-0.21.5.pkg: 100%   64 KiB  65.6kB/s    00:01    
[4/4] Fetching curl-8.7.1.pkg: 100%    1 MiB   1.6MB/s    00:01    
Checking integrity... done (0 conflicting)
[1/4] Installing libnghttp2-1.61.0...
[1/4] Extracting libnghttp2-1.61.0: 100%
[2/4] Installing libssh2-1.11.0_1,3...
[2/4] Extracting libssh2-1.11.0_1,3: 100%
[3/4] Installing libpsl-0.21.5...
[3/4] Extracting libpsl-0.21.5: 100%
[4/4] Installing curl-8.7.1...
[4/4] Extracting curl-8.7.1: 100%

现在再来看看jail里面是否装好了

root@fbhost:~ # jexec ubu curl csdn.net
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>openresty</center>
</body>
</html>

果然,ubu这个虚拟子系统里的curl已经装好了,pkg -r真的非常方便。因为Jail虚拟容器和PKG软件包管理系统都是FreeBSD的原生应用,所以它们之间配合非常默契,不用到jail子系统里,直接在host主机也能使用pkg向jail子系统安装各种软件。

http://www.hkea.cn/news/571381/

相关文章:

  • 鲜花培训网站建设网站推广要点
  • 情趣内衣怎么做网站如何制作网页
  • 网站交互技术百度推广登陆后台
  • 网站的推广和宣传方式各行业关键词
  • 腾讯云服务器网站建设淘宝推广哪种方式最好
  • 大专网站建设论文找个免费的网站
  • 移动端网站开发流程图seopeix
  • 购物网站制作免费太原seo招聘
  • 怎么建设食品网站济南seo外包公司
  • 建设网站有哪些seopeix
  • 桂林市工程建设项目招标网站莆田百度快照优化
  • 金华网站建设大型网页建设农产品网络营销
  • wordpress free cdn长沙百度快速优化
  • 网页界面设计首页seo快速优化软件网站
  • 和凡科网类似的网站四川省人民政府
  • 北辰网站建设如何推广引流
  • ps网页模板网站seo外包公司
  • 常平镇仿做网站快速排名刷
  • 青浦建设网站公司app推广代理加盟
  • wordpress 在线pdf优化关键词的正确方法
  • 网站悬浮窗口网站关键词全国各地的排名情况
  • 做网站得叫什么优化关键词排名
  • 丰县住房与城乡建设部网站太原网站制作优化seo公司
  • 微信如何做微商城网站建设手机网站智能建站
  • 网站尾部分页数字怎么做推广app大全
  • 建筑设计软件有哪些优化网站建设
  • 网站开发 word文件预览医疗器械龙头股
  • 电子商务网站建设花费南宁百度seo排名价格
  • 做公司网站要注意哪些问题真正免费建站网站
  • 在线服务器代理杭州seo网络公司