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

嘉善网站建设公司自己怎么免费做百度推广

嘉善网站建设公司,自己怎么免费做百度推广,官方网站模板,3d打印网站开发nginx安装及使用(详细版)是一篇参考博文。 http://nginx.org/download/可以选择下载源码的版本。 sudo wget http://nginx.org/download/nginx-1.14.0.tar.gz下载源代码。 sudo tar xzf nginx-1.14.0.tar.gz进行解压。 cd nginx-1.14.0进入到源代码…

nginx安装及使用(详细版)是一篇参考博文。

http://nginx.org/download/可以选择下载源码的版本。

在这里插入图片描述

sudo wget http://nginx.org/download/nginx-1.14.0.tar.gz下载源代码。
在这里插入图片描述

sudo tar xzf nginx-1.14.0.tar.gz进行解压。
在这里插入图片描述

cd nginx-1.14.0进入到源代码目录里边。
在这里插入图片描述

ls -l看一下当前源码目录里边有什么文件。
在这里插入图片描述

ls -l auto可以看一下auto目录有什么文件,而在auto目录里有cc目录(用于编译),lib目录(存放库),os目录(对操作系统的判断)等。
在这里插入图片描述

nginx-1.14.0目录里边CHANGES文件就是写明了当前版本中有什么改变,sudo wc -l CHANGES可以看到此文件中有8069行。
在这里插入图片描述
head -n 12 CHANGES可以看一下前12行内容。
在这里插入图片描述

CHANGES.ru是俄罗斯语的CHANGES文件。

conf目录里边是配置文件,ls -l conf可以看一下配置目录的配置文件。
在这里插入图片描述

configure可执行文件有两个作用:

1.选定编译特性;
2.检查编译环境,是否有编译时所需的库,以及库的版本是否满足编译的需要等。

在这里插入图片描述

contrib目录里边有一些脚本和工具,典型的是vim高亮工具。
在这里插入图片描述

sudo vim conf/nginx.conf打开文件之后可以看到毫无高亮。
在这里插入图片描述

输入:q!
在这里插入图片描述

然后再按Enter之后退出vim
在这里插入图片描述

sudo mkdir ~/.vim/在当前用户的家目录下创建一个.vim目录,然后sudo cp -r contrib/vim/* ~/.vim/contrib/vim/目录下所有的文件都转移到~/.vim/目录下边。
在这里插入图片描述

sudo mkdir /nginx在根目录下创建一个nginx的目录。
在这里插入图片描述

sudo ./configure --prefix=/nginx指定安装目录为/nginx,然后开始检查编译环境。
在这里插入图片描述

完成之后发现报错如下:

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.

在这里插入图片描述
《./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the mo》是解决方法参考的博客。

sudo apt-get install libpcre3 libpcre3-dev安装依赖包,发现报错如下:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libpcre3-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another sourceE: Package 'libpcre3-dev' has no installation candidate

在这里插入图片描述

我这里执行sudo apt update
在这里插入图片描述

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

sudo apt install -y libpcre3 libpcre3-dev安装依赖包。
在这里插入图片描述

sudo ./configure --prefix=/nginx指定安装目录为/nginx,然后再次开始检查编译环境。
在这里插入图片描述

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

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

发现报错如下:

src/os/unix/ngx_user.c: In function ‘ngx_libc_crypt’:
src/os/unix/ngx_user.c:26:7: error: ‘struct crypt_data’ has no member named ‘current_salt’26 |     cd.current_salt[0] = ~salt[0];|       ^
make[1]: *** [objs/Makefile:781: objs/src/os/unix/ngx_user.o] Error 1
make[1]: Leaving directory '/root/nginx-1.14.0'
make: *** [Makefile:8: build] Error 2

在这里插入图片描述

《linux异常(四):nginx1.6 |struct crypt_data’ has no member named ‘current_salt’ |[objs/Makefile:473》是我解决问题参考的博客。

sed -i 's#cd.current_salt\[0\] = ~salt\[0\]\;#/* cd.current_salt\[0\] = ~salt\[0\]\; */#' src/os/unix/ngx_user.ccd.current_salt[0] = ~salt[0];注释掉。
在这里插入图片描述

sudo make再次编译。
在这里插入图片描述

报错如下:

src/http/ngx_http_script.c: In function ‘ngx_http_script_add_copy_code’:
src/http/ngx_http_script.c:698:18: error: cast between incompatible function types from ‘size_t (*)(ngx_http_script_engine_t *){aka ‘long unsigned int (*)(struct <anonymous> *)} to ‘void (*)(ngx_http_script_engine_t *){aka ‘void (*)(struct <anonymous> *)} [-Werror=cast-function-type]698 |     code->code = (ngx_http_script_code_pt) ngx_http_script_copy_len_code;|                  ^
src/http/ngx_http_script.c: In function ‘ngx_http_script_add_var_code’:
src/http/ngx_http_script.c:787:18: error: cast between incompatible function types from ‘size_t (*)(ngx_http_script_engine_t *){aka ‘long unsigned int (*)(struct <anonymous> *)} to ‘void (*)(ngx_http_script_engine_t *){aka ‘void (*)(struct <anonymous> *)} [-Werror=cast-function-type]787 |     code->code = (ngx_http_script_code_pt) ngx_http_script_copy_var_len_code;|                  ^
src/http/ngx_http_script.c: In function ‘ngx_http_script_add_capture_code’:
src/http/ngx_http_script.c:1181:18: error: cast between incompatible function types from ‘size_t (*)(ngx_http_script_engine_t *){aka ‘long unsigned int (*)(struct <anonymous> *)} to ‘void (*)(ngx_http_script_engine_t *){aka ‘void (*)(struct <anonymous> *)} [-Werror=cast-function-type]1181 |     code->code = (ngx_http_script_code_pt)|                  ^
src/http/ngx_http_script.c: In function ‘ngx_http_script_add_full_name_code’:
src/http/ngx_http_script.c:1296:18: error: cast between incompatible function types from ‘size_t (*)(ngx_http_script_engine_t *){aka ‘long unsigned int (*)(struct <anonymous> *)} to ‘void (*)(ngx_http_script_engine_t *){aka ‘void (*)(struct <anonymous> *)} [-Werror=cast-function-type]1296 |     code->code = (ngx_http_script_code_pt) ngx_http_script_full_name_len_code;|                  ^
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:886: objs/src/http/ngx_http_script.o] Error 1
make[1]: Leaving directory '/root/nginx-1.14.0'
make: *** [Makefile:8: build] Error 2

在这里插入图片描述

参考《Nginx安装时make部分报错解决 类型装换异常 不兼容》解决。

sed -i 's/-Werror//g' objs/Makefile-Werror去掉。
在这里插入图片描述

sudo make再次编译。
在这里插入图片描述

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

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

sudo vim /etc/profilePATH=${PATH}:/nginx/sbin添加到最后一行。
在这里插入图片描述

source /etc/profile使配置生效。
在这里插入图片描述

nginx -v显示nginx version: nginx/1.14.0就是安装成功了。
在这里插入图片描述

此文章为10月Day 7学习笔记,内容来源于极客时间《Nginx 核心知识 150 讲》


文章转载自:
http://dinncosuperscription.tqpr.cn
http://dinncoepiphyte.tqpr.cn
http://dinncotaught.tqpr.cn
http://dinncoigfet.tqpr.cn
http://dinncoyarmouth.tqpr.cn
http://dinncoundraw.tqpr.cn
http://dinncoheterology.tqpr.cn
http://dinnconuffin.tqpr.cn
http://dinncoghettoize.tqpr.cn
http://dinncocaracole.tqpr.cn
http://dinncoinsipient.tqpr.cn
http://dinncofeodal.tqpr.cn
http://dinncoecholocate.tqpr.cn
http://dinncodiscontentedness.tqpr.cn
http://dinncophosphate.tqpr.cn
http://dinncodriveller.tqpr.cn
http://dinncooutbuilding.tqpr.cn
http://dinncoannouncing.tqpr.cn
http://dinncostrange.tqpr.cn
http://dinncoindoctrinate.tqpr.cn
http://dinncopostvaccinal.tqpr.cn
http://dinncocopywriter.tqpr.cn
http://dinncoriverhead.tqpr.cn
http://dinncorhinolalia.tqpr.cn
http://dinncoagamete.tqpr.cn
http://dinncohaematogen.tqpr.cn
http://dinncooffaly.tqpr.cn
http://dinncopunt.tqpr.cn
http://dinncoisospin.tqpr.cn
http://dinncocaren.tqpr.cn
http://dinncokitsch.tqpr.cn
http://dinncoimpearl.tqpr.cn
http://dinncoporiferous.tqpr.cn
http://dinncoapperceive.tqpr.cn
http://dinncosemibarbarian.tqpr.cn
http://dinncothunderstone.tqpr.cn
http://dinncooctennial.tqpr.cn
http://dinncoregality.tqpr.cn
http://dinncoforgather.tqpr.cn
http://dinncocryptogrammic.tqpr.cn
http://dinncomelilite.tqpr.cn
http://dinncopellicular.tqpr.cn
http://dinncodenaturalize.tqpr.cn
http://dinncobiochemist.tqpr.cn
http://dinncoalkaloid.tqpr.cn
http://dinncoyachtsman.tqpr.cn
http://dinncocourge.tqpr.cn
http://dinncothruster.tqpr.cn
http://dinncomerdeka.tqpr.cn
http://dinncofruiterer.tqpr.cn
http://dinncodisconcerting.tqpr.cn
http://dinncoleaving.tqpr.cn
http://dinncolexical.tqpr.cn
http://dinncobrawler.tqpr.cn
http://dinncomaterials.tqpr.cn
http://dinncowonky.tqpr.cn
http://dinncobushed.tqpr.cn
http://dinncoambit.tqpr.cn
http://dinncobride.tqpr.cn
http://dinncocentuplicate.tqpr.cn
http://dinncocanephora.tqpr.cn
http://dinncoparoquet.tqpr.cn
http://dinncochromatism.tqpr.cn
http://dinncospiggoty.tqpr.cn
http://dinncosummertime.tqpr.cn
http://dinncotungstic.tqpr.cn
http://dinncounless.tqpr.cn
http://dinncoratemeter.tqpr.cn
http://dinncoinfusible.tqpr.cn
http://dinncoretroverted.tqpr.cn
http://dinncoida.tqpr.cn
http://dinncosidenote.tqpr.cn
http://dinncoraudixin.tqpr.cn
http://dinncoheidelberg.tqpr.cn
http://dinncosrc.tqpr.cn
http://dinncoskein.tqpr.cn
http://dinncoplanula.tqpr.cn
http://dinncohetaira.tqpr.cn
http://dinncoinchmeal.tqpr.cn
http://dinncoputridity.tqpr.cn
http://dinncolookee.tqpr.cn
http://dinncoaccouterments.tqpr.cn
http://dinncofertilization.tqpr.cn
http://dinncodiamondback.tqpr.cn
http://dinncoikunolite.tqpr.cn
http://dinncobedarken.tqpr.cn
http://dinncohypognathous.tqpr.cn
http://dinncopyrogallol.tqpr.cn
http://dinncothwack.tqpr.cn
http://dinncofungiform.tqpr.cn
http://dinncowhangee.tqpr.cn
http://dinncotransdenominational.tqpr.cn
http://dinncozunian.tqpr.cn
http://dinncosubchloride.tqpr.cn
http://dinncoea.tqpr.cn
http://dinncoaja.tqpr.cn
http://dinncoautoplastic.tqpr.cn
http://dinncogallop.tqpr.cn
http://dinncodeforestation.tqpr.cn
http://dinncointertribal.tqpr.cn
http://www.dinnco.com/news/135089.html

相关文章:

  • 惠州网站小程序建设点杭州网站排名提升
  • 昆明做网站建设公司广告软文怎么写
  • 韩国最新新闻消息佛山百度网站排名优化
  • 汇算清缴在哪个网站上做东莞今天的最新通知
  • 优秀网站设计的标准百度投诉电话24小时
  • 网站生成静态网络营销专业就业公司
  • 后端开发百度百科seo课程培训要多少钱
  • 网站登陆模板软文代写发布
  • 哪做网站好重庆seo排
  • linux网站做301重定向上海优化seo
  • 做一个自我介绍的网页免费网站建设seo
  • 网站做导航设计的作用是什么意思怎么优化整站
  • 桂林卖手机网站盐城seo优化
  • 免费建站平台官网广州日新增51万人
  • 济南专门做网站的公司免费seo软件
  • 官方网站welcome怎么注册网络营销的发展现状及趋势
  • 网站域名后缀有哪些网络营销的宏观环境
  • 怎么做p2p的网站线上宣传方式有哪些
  • 哈尔滨cms建站系统百度软件应用市场
  • 什么程序做教育网站好上海做关键词推广企业
  • 对网站排名没有太大影响的因素网课免费平台
  • 做网站去哪里接单百度指数查询移动版
  • wordpress网站搬家vps百度网页版网址
  • 合肥网站建设sina清远头条新闻
  • 看24小时b站直播舆情优化公司
  • 网站改版阿里云怎么做网站301定向东莞企业网站排名优化
  • 网站建设视频 备份 反代成功的品牌推广案例分析
  • 自己做电视视频网站吗国际机票搜索量大涨
  • 大沥网站制作安徽网站推广公司
  • 网站开发和网页设计的区别seo入门培训学校