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

大连网站程序开发今日的新闻头条10条

大连网站程序开发,今日的新闻头条10条,北京网站维护,河南手机网站建设公司排名参考的博文:《在 Ubuntu 上使用源码安装 OpenResty》 《OpenResty 安装安装详解-Ubuntu》 《Linux学习之CentOS 7源码安装openresty》 https://openresty.org/en/download.html是官网下载网址,页面往下拉有下载的链接。 https://github.com/openresty…

参考的博文:《在 Ubuntu 上使用源码安装 OpenResty》
《OpenResty 安装安装详解-Ubuntu》
《Linux学习之CentOS 7源码安装openresty》

https://openresty.org/en/download.html是官网下载网址,页面往下拉有下载的链接。
在这里插入图片描述

https://github.com/openresty/openresty是github上的链接。
在这里插入图片描述
可以点击上图中tags进入有不同版本的页面。
在这里插入图片描述

sudo cat /etc/issue可以看到操作系统的版本是Ubuntu 20.04.4 LTSsudo lsb_release -r可以看到版本是20.04sudo uname -r可以看到内核版本是5.5.19sudo make -v可以看到版本是GNU Make 4.2.1
在这里插入图片描述

sudo apt-get install -y libpcre3-dev libssl-dev perl build-essential curl zlib1g-dev libreadline-dev libncurses5-dev libpcre3-dev安装依赖包。
在这里插入图片描述

安装完成之后如下:
在这里插入图片描述

sudo wget https://github.com/openresty/openresty/archive/refs/tags/v1.19.3.1.tar.gz下载源码压缩包。
在这里插入图片描述

sudo mkdir /openrestycode新建一个/openrestycode放置解压出来的源码。
在这里插入图片描述
sudo tar zxf v1.19.3.1.tar.gz -C /openrestycode/把源码解压到/openrestycode里边,然后使用ls -l /openrestycode看一下/openrestycode里边的文件。
在这里插入图片描述

cd /openrestycode/openresty-1.19.3.1/进入到/openrestycode/openresty-1.19.3.1/里边,ls -l看一下当前目录的文件信息。
在这里插入图片描述

sudo make执行。
在这里插入图片描述
发现报错如下:

rm: cannot remove '*.tar.bz2': No such file or directory
./util/mirror-tarballs: line 891: unix2dos: command not found
make: *** [Makefile:4: all] Error 1

在这里插入图片描述

sudo apt-get install dos2unix安装。
在这里插入图片描述

sudo make再次执行,发现又报错:

rm: cannot remove '*.tar.bz2': No such file or directory
unix2dos: converting file README-windows.txt to DOS format...
./util/mirror-tarballs: line 913: hg: command not found
make: *** [Makefile:4: all] Error 1

在这里插入图片描述

sudo apt-get install -y apt-file安装apt-file
在这里插入图片描述

sudo apt-file update更新。
在这里插入图片描述

sudo apt-file search hg输出了Finding relevant cache files to search ...E: The cache is empty. You need to run "apt-file update" first.
在这里插入图片描述

上边使用sudo apt-file search hg解决不了我的问题,我只能使用sed -n '913p' ./util/mirror-tarballs' ./util/mirror-tarballs看一下./util/mirror-tarballs第913行是什么内容,然后把hg clone粘贴到百度上查找一下,结果看到了博文《【ubuntu】hg clone使用》。
在这里插入图片描述

想要使用sudo apt-get install mercurial安装mercurial却又提示E: You don't have enough free space in /var/cache/apt/archives/.
在这里插入图片描述
有看一篇博文《ubuntu “you don‘t have enough free space in /var/cache/apt/archives‘错误解决》,找到一个大型文件删除了。

sudo apt-get install -y mercurial免确认安装mercurial
在这里插入图片描述

安装完成如下:
在这里插入图片描述

cd /openrestycode/openresty-1.19.3.1/进入到源码目录里边,sudo make再次执行编译。
在这里插入图片描述

完成之后如下:
在这里插入图片描述
cd openresty-1.19.3.1/进入到目录。
在这里插入图片描述

sudo ./configure --with-http_gzip_static_module --with-http_v2_module --with-http_stub_status_module --with-luajit --with-http_iconv_module进行配置。
在这里插入图片描述

完成如下如所示:
在这里插入图片描述

sudo make进行编译。
在这里插入图片描述

完成如下图所示:
在这里插入图片描述

sudo make install进行安装。
在这里插入图片描述

安装完成之后如下图:
在这里插入图片描述

此文章为8月Day 25学习笔记,内容来源于极客时间《Linux 实战技能 100 讲》。

http://www.dinnco.com/news/76549.html

相关文章:

  • 任县网站建设网络公司专门搜索知乎内容的搜索引擎
  • 如何用php做网站厦门百度seo
  • 西安网站建设工作室高质量外链代发
  • 常用的网站推广方法如何查看网站收录情况
  • 北流市建设局网站今日特大军事新闻
  • wordpress文章输出数正版seo搜索引擎
  • 购买一个网站多少钱seo优缺点
  • 北京网站设计与制作软件推广是什么工作
  • 南宁网站建设 传导福州百度推广排名
  • 邢台专业做网站报价网站推广和宣传的方法
  • 滚动网站模版把百度网址大全设为首页
  • 网站制作 意向单seo排名赚app
  • 北京工商注册登记网官网网络优化基础知识
  • 做几何图形和网站排名优化公司哪家靠谱
  • 学网站开发有什么好处电商平台app大全
  • 某互联网公司触屏网站html+css网页制作成品
  • 如何建设一个个人网站seo网站关键词排名优化
  • 正能量不良网站进入窗口免费阅读网推怎么做最有效
  • 单页淘客网站怎么建设安徽网络优化公司
  • 网上赚钱靠谱吗安卓优化大师官方版
  • 网站推广代运营西安seo培训学校
  • 网站建设工作的作用百度推广点击收费标准
  • 如何请人做网站网络推广优化是干啥的
  • 欧美手表网站建站系统哪个好
  • 前端做视频直播网站网站推广公司排行榜
  • 黑龙江省网站前置审批网站站长工具麻豆
  • 汉中网站开发怎么自己开发网站
  • 石家庄 外贸网站建设公司优势的seo网站优化排名
  • 网站建设那个网站好网站建立具体步骤是
  • 建设个人网站多少钱软文推广怎么做