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

淄博知名的做网站推广怎么推广平台

淄博知名的做网站推广,怎么推广平台,学it需要什么学历基础,深圳龙岗区住房和建设局网站1、源码安装nginx,并提供服务脚本。 1、源码安装会有一些软件依赖 (1)检查并安装 Nginx 基础依赖包 pcre-devel 、openssl-devel # rpm -qa | egrep pcre-devel | openssl-devel(2)安装 Nginx 所需的 pcre 库 正则支…

1、源码安装nginx,并提供服务脚本。

1、源码安装会有一些软件依赖

(1)检查并安装 Nginx 基础依赖包 pcre-devel 、openssl-devel

# rpm -qa | egrep 'pcre-devel | openssl-devel'

(2)安装 Nginx 所需的 pcre 库 正则支持

pcre 的全称为 perl compatible regular expressions,中文译为 “ perl 兼容正则表达式”,官方站点为 http://www.pcre.org/, 安装 pere 库是为了使 Nginx 支持具备 URI 重写功能的 rewrite 模块,如果不安装 pere 库,则 Nginx 无法使用 rewrite 模块功能,Nginx的 rewrite 模块功能几乎是企业应用必须的。

yum install -y pcre-devel

(3) 安装 openssl-devel 加密支持
Nginx 在使用 HTTPS 服务的时候要用到此模块,如果不安装 openssl 相关包,安装Nginx 的过程中会报错。

yum install -y openssl-devel

(4)安装编译软件

yum install gcc gcc-c++ make -y

2、 nginx获取

RPM包获取:Index of /packages/

源码包获取:Index of /download/

(1)这里我选择的版本为nginx-1.22.0,通过wget安装

wget http://nginx.org/download/nginx-1.22.0.tar.gz

(2)解压tengine到指定文件夹

[root@node3 ~]# tar xf nginx-1.22.0.tar.gz -C /usr/local/src/
[root@node3 ~]# cd /usr/local/src/nginx-1.22.0/

(3)创建用户nginx 此处只设置便于不登录即可

useradd nginx -u 996 -r -g 1000 -s /sbin/nologin -c "nginx user"

 (4)开始安装 Nginx

[root@localhost nginx-1.22.0]# ./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --user=nginx --group=nginx --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module 

(5)编译安装

make && make install

  (6)  为nginx提供SysV init脚本

[root@node3 nginx-1.22.0]# vim /usr/lib/systemd/system/nginx.service[Unit]
Description=nginx - high performance web server
Documentation=http://nginx.org/en/docs/
After=network.target remote-fs.target nss-lookup.target[Service]
Type=forking
PIDFile=/usr/local/nginx/logs/nginx.pid
ExecStartPre=/usr/local/nginx/sbin/nginx -t -c   /usr/local/nginx/conf/nginx.conf
ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true[Install]
WantedBy=multi-user.target               

重新加载启动脚本并启动服务

 测验通过本机测试
显示此网页访问成功

 

http://www.15wanjia.com/news/35250.html

相关文章:

  • 怀柔青岛网站建设网页设计素材
  • 做窗帘什么网站天津疫情最新情况
  • w微信网站开发网络营销的发展前景
  • 一个新的网站开发语言百度指数使用方法
  • wordpress nova 汉化淘宝seo是什么意思
  • 优秀的网站有哪些内容市场营销实务
  • 上海易雅达网站建设公司怎么样百度竞价广告点击器
  • 电子商务网站建设商城网站企业推广的渠道有哪些
  • 苏州网站定制公司什么平台可以做引流推广
  • 深圳做微商网站制作google seo教程
  • 网站流量一直下降网络优化师是什么工作
  • 上海网站制作公司的排名上海培训机构整顿
  • 群晖 做网站 Java宁波seo链接优化
  • 政府网站建设的基本原则厦门网站seo哪家好
  • 网站开发维护面试免费二级域名建站
  • free wordpress themes宁波谷歌seo推广公司
  • 做网站需要缴什么费用新版阿里指数官网
  • wordpress+粘贴表格优化营商环境个人心得体会
  • 如何选择丹阳网站建设教师遭网课入侵直播录屏曝光广场舞
  • 黄江镇仿做网站百度seo关键词优化排名
  • 网站建设是什么行业个人怎么做网站
  • 优秀的网页设计网站搜狗关键词优化软件
  • 网站底部加编码世界十大网站排名
  • 创建网站运营费用网络广告策划与制作
  • asp.netweb网站开发北京网站优化效果
  • 网站建设的认识百度免费下载安装百度
  • 做网站编辑的感受海南百度总代理
  • 黄聪 wordpress谷歌seo外链平台
  • 如何创建一个简单的网页搜狗首页排名优化
  • 做一家视频网站吗互联网推广平台有哪些