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

怎样删除网站国外看新闻app推荐

怎样删除网站,国外看新闻app推荐,住建部小程序是什么,做喜报的网站网站代码写完之后就是项目部署#xff0c;主要包括两个方面#xff1a; 1.nginx安装与配置#xff1a; 1、Nginx 安装 系统平台#xff1a;CentOS release 6.6 (Final) 64位。 一、安装编译工具及库文件 yum -y install make zlib zlib-devel gcc-c libtool openssl open…网站代码写完之后就是项目部署主要包括两个方面 1.nginx安装与配置 1、Nginx 安装 系统平台CentOS release 6.6 (Final) 64位。 一、安装编译工具及库文件 yum -y install make zlib zlib-devel gcc-c libtool  openssl openssl-devel 二、首先要安装 PCRE PCRE 作用是让 Nginx 支持 Rewrite 功能。 1、下载 PCRE 安装包下载地址 http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz [rootbogon src]# wget http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz 2、解压安装包: [rootbogon src]# tar zxvf pcre-8.35.tar.gz 3、进入安装包目录 [rootbogon src]# cd pcre-8.35 4、编译安装  [rootbogon pcre-8.35]# ./configure [rootbogon pcre-8.35]# make  make install 5、查看pcre版本 [rootbogon pcre-8.35]# pcre-config --version 安装 Nginx 1、下载 Nginx下载地址http://nginx.org/download/nginx-1.6.2.tar.gz [rootbogon src]# wget http://nginx.org/download/nginx-1.6.2.tar.gz 2、解压安装包 [rootbogon src]# tar zxvf nginx-1.6.2.tar.gz 3、进入安装包目录 [rootbogon src]# cd nginx-1.6.2 4、编译安装 [rootbogon nginx-1.6.2]# ./configure --prefix/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre/usr/local/src/pcre-8.35 [rootbogon nginx-1.6.2]# make [rootbogon nginx-1.6.2]# make install 5、查看nginx版本 [rootbogon nginx-1.6.2]# /usr/local/webserver/nginx/sbin/nginx -v 到此nginx安装完成。 2.nginx配置 首先进入文件 cd /usr/local/nginx/conf/nginx.conf 编辑带入如下 #user nobody; worker_processes 1;#error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info;#pid logs/nginx.pid;events {worker_connections 1024; }http {include mime.types;default_type application/octet-stream;#log_format main $remote_addr - $remote_user [$time_local] $request # $status $body_bytes_sent $http_referer # $http_user_agent $http_x_forwarded_for;#access_log logs/access.log main;sendfile on;#tcp_nopush on;#keepalive_timeout 0;keepalive_timeout 65;#gzip on;server {listen 80;server_name www.itcast.cn;#charset koi8-r;#access_log logs/host.access.log main;# location / { # root html; # index index.html index.htm; # } #根目录注意html文件location / {root /var/www/ihome/static/html;index index.html;} #uwsgi配置iplocation /api {uwsgi_pass 127.0.0.1:5000;include uwsgi_params;} #静态文件配置静态文件需要迁移到此文件下location /static {alias /var/www/ihome/static;}#error_page 404 /404.html;# redirect server error pages to the static page /50x.html#error_page 500 502 503 504 /50x.html;location /50x.html {root html;}# proxy the PHP scripts to Apache listening on 127.0.0.1:80##location ~ \.php$ {# proxy_pass http://127.0.0.1;#}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ \.php$ {# root html;# fastcgi_pass 127.0.0.1:9000;# fastcgi_index index.php;# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;# include fastcgi_params;#}# deny access to .htaccess files, if Apaches document root# concurs with nginxs one##location ~ /\.ht {# deny all;#}}# another virtual host using mix of IP-, name-, and port-based configuration##server {# listen 8000;# listen somename:8080;# server_name somename alias another.alias;# location / {# root html;# index index.html index.htm;# }#}# HTTPS server##server {# listen 443 ssl;# server_name localhost;# ssl_certificate cert.pem;# ssl_certificate_key cert.key;# ssl_session_cache shared:SSL:1m;# ssl_session_timeout 5m;# ssl_ciphers HIGH:!aNULL:!MD5;# ssl_prefer_server_ciphers on;# location / {# root html;# index index.html index.htm;# }#}}注需要拷贝static文件  cp -r static /var/www/ihome/static 配置好uwsgi后启动nginxsudo sbin/nginx 如需停止sudo sbin/nginx -s stop 2.uwsgi文件创建与配置 1.进入虚拟环境workon 虚拟环境名称 2.创建文件touch uwsgi.ini 3.编辑文件 [uwsgi] #按照实际情况改动这里只是举例 # uwsgi 启动时所使用的地址与端口 socket 127.0.0.1:8001pidfile uwsgi.pid daemonize uwsgi.log # 指向网站目录 chdir /home/python/Desktop/ihome/test4# python 启动程序文件 wsgi-file test4.py# python 程序内用以启动的 application 变量名 callable app# 处理器数 processes 4# 线程数 threads 2#每次修改代码自动reload无需要手动重启 #py-autoreload 1#状态检测地址 stats 127.0.0.1:90014.启动uwsgi:   uwsgi  --ini uwsgi.ini 5.启动nginx 如需关闭uwsgi:  uwsgi  --stop uwsgi.pid
http://www.pierceye.com/news/695367/

相关文章:

  • 哪个公司建设网站好手机网站维护费
  • 中山高端网站建设wordpress调用分类文章列表
  • 营销网站的专业性诊断评价和优化做视频网站需要什么资质
  • 河南广告制作公司网站西班牙语网站设计公司哪家好
  • 做业务一般要注册哪些网站wordpress prepare
  • wordpress 鼠标经过seo网站内容优化有哪些
  • 单页网站制作视频教程深圳有哪些软件外包公司
  • 嘉兴电子商务网站建设wordpress如何添加页面子目录
  • 教育在线网站怎样做直播seo网站推广怎样
  • 响应式的网站建设一个多少钱百度域名解析
  • 东莞做网站卓诚网络免费大数据分析网站
  • 网站用什么图片格式好seo学徒招聘
  • 地区网站建设网站用户反馈
  • 网站备案背景幕布下载成都最好的seo外包
  • 荆州 商务 网站建设郑州网站建设灵秀
  • 重庆市建筑工程信息官方网站注册号域名后如何建设公司网站
  • 江门网站建设junke100深圳小企业网站建设设计制作
  • 个人域名能做网站吗江苏外贸型网站制作
  • 文登区做网站的公司琴行网站开发学术论文
  • 嵌入式网站开发学习百度seo优化收费标准
  • 网站评价及优化分析报告湖南省邵阳建设局网站
  • 网站推广是做什么的深圳市住房建设与保障局官方网站
  • qq群推广网站lamp网站开发制作
  • ui网站界面设计广州省建设监理协会网站
  • 网站界面设计教程宁波正规网站seo公司
  • 网站建设与管理中专上海注册公司注册地址
  • 清溪网站建设怎么用wordpress打开网站
  • 网站稳定性不好的原因wordpress仿站维护
  • 银行管理系统网站建设最专业的医疗网站建设
  • 网站应该怎么做住建官网查询