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

淄博知名的做网站推广茶叶网络营销策划方案

淄博知名的做网站推广,茶叶网络营销策划方案,网页制作专业搜题,做网站有名的公司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.mmbaike.com/news/32305.html

相关文章:

  • 网站设计的思想学生没钱怎么开网店
  • python网站开发学习全网推广哪家正宗可靠
  • 比较好的网站建设平台广告推广赚钱在哪接
  • 怎么做单向网站链接百度电话销售
  • 做影视网站用什么源码网络推广工作室
  • ao主题wordpress上海百度移动关键词排名优化
  • 网站建设的流程怎么写青岛网站建设方案服务
  • 做网站会遇到什么问题中国做网站的公司排名
  • 一起做网店类似网站网页设计教程
  • 天津建委招标网站推广排名seo
  • 租赁网站开发网站搭建外贸
  • 医院网站建设招标微指数查询
  • 广西优化网站 优帮云兰州网络推广
  • 做淘宝要用到哪些网站网络运营师
  • 网站设计建设收费标准百度网站排名搜行者seo
  • 龙华网站建设全包seo推广需要多少钱
  • 站内信息 wordpress营销战略
  • 淮安做网站的公司搜索引擎推广步骤
  • 上海做淘宝网站建设百度一下你就知道手机版
  • 做国外网站什么好互联网金融
  • 网站建设公司 技术评估太原百度公司地址
  • 企业信息公开网查询系统公司网站优化方案
  • 网站开发钱包怎么在百度发布信息
  • 怎么按照屏幕比例做网站适应大数据精准营销
  • 大学网页设计作业长沙优化排名
  • 新闻网站运做公司怎么做网站推广
  • wordpress .htaccess下载seo是什么意思蜘蛛屯
  • 工信部网站备案查询 验证码错误个人网站设计
  • 怎样给网站做推广凡科建站的优势
  • 制作一个网站就等于制作一个网页在线seo