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

嘉兴企业网站建设wordpress数据库备份到本地

嘉兴企业网站建设,wordpress数据库备份到本地,旅游网站模板素材,网站服务器建设价格1.下载 nginx官网下载 Index of /download/ 2.解压 这里我下载的1.25.3版本#xff0c;系统是ubuntu 解压 tar -zxvf nginx-1.25.3.tar.gz 3.编译安装 安装前需要执行安装一些系统依赖 3.1安装PCRE库 ubuntu#xff1a;执行以下命令 sudo apt-get install libpcre…1.下载 nginx官网下载 Index of /download/ 2.解压 这里我下载的1.25.3版本系统是ubuntu 解压 tar -zxvf nginx-1.25.3.tar.gz 3.编译安装 安装前需要执行安装一些系统依赖 3.1安装PCRE库 ubuntu执行以下命令 sudo apt-get install libpcre3 libpcre3-dev centos执行以下命令 sudo yum install pcre pcre-devel不安装会报错 ./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-pcrepath option. 3.2 安装Zlib 官网zlib Home Site 将tar包上传服务器上传路径自定义 3.2.1 解压 tar -zxvf zlib-1.3.tar.gz 3.2.2 安装 进入解压目录zlib-1.3 cd zlib-1.3 执行三条安装命令 ./configure make make install 不安装zlib就安装nginx会报错 ./configure: error: the HTTP gzip module requires the zlib library. You can either disable the module by using --without-http_gzip_module option, or install the zlib library into the system, or build the zlib library statically from the source with nginx by using --with-zlibpath option. 3.3 安装SSL模组依赖 一般nginx都需要ssl模组此版本nginx不安装ssl组件不会报错之前版本可能会报错 ubuntu安装 sudo apt-get install libssl-dev centos安装 sudo yum install openssl openssl-devel 3.4 安装Nginx 再次进入nginx解压目录安装nginx--prefix命令是我指定的安装目录你们运行的时候自己指定一下nginx的安装目录 ./configure --prefix/home/software/nginx/install --with-http_ssl_module 安装命令 make make install 4 配置Nginx开机自启 在目录/lib/systemd/system创建文件nginx.service vim /lib/systemd/system/nginx.service 注意修改/home/software/nginx/install/sbin/路径为你安装nginx的路径 ExecStart/home/software/nginx/install/sbin/nginx ExecReload/home/software/nginx/install/sbin/nginx reload ExecStop/home/software/nginx/install/sbin/nginx quit 配置文件内容注意修改nignx命令位置 # Stop dance for nginx # # # ExecStop sends SIGSTOP (graceful stop) to the nginx process. # If, after 5s (--retry QUIT/5) nginx is still running, systemd takes control # and sends SIGTERM (fast shutdown) to the main process. # After another 5s (TimeoutStopSec5), and if nginx is alive, systemd sends # SIGKILL to all the remaining processes in the process group (KillModemixed). # # nginx signals reference doc: # http://nginx.org/en/docs/control.html # [Unit] DescriptionA high performance web server and a reverse proxy server Documentationman:nginx(8) Afternetwork.target[Service] Typeforking ExecStart/home/software/nginx/install/sbin/nginx ExecReload/home/software/nginx/install/sbin/nginx reload ExecStop/home/software/nginx/install/sbin/nginx quit PrivateTmptrue TimeoutStopSec5 KillModemixed[Install] WantedBymulti-user.target 修改完成后 4.1 启动nginx服务 systemctl enable nginx.service 4.2 重启nginx服务 systemctl restart nginx 4.3 查看Nginx状态 systemctl status nginx 5 Nginx配置 #user nobody; worker_processes 2;#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;sendfile on;keepalive_timeout 65;#gzip on;server {listen [::]:80 default_server;server_name _;return 301 https://$host$request_uri;#charset koi8-r;#access_log logs/host.access.log main;location / {root html;index index.html index.htm;}error_page 500 502 503 504 /50x.html;location /50x.html {root html;}}server {listen 443 ssl;server_name localhost;#修改你的证书存放位置ssl_certificate /home/software/nginx/install/cert/anakkix.cn_bundle.pem;ssl_certificate_key /home/software/nginx/install/cert/anakkix.cn.key;ssl_session_cache shared:SSL:1m;ssl_session_timeout 5m;ssl_ciphers HIGH:!aNULL:!MD5;ssl_prefer_server_ciphers on;location / {proxy_set_header Host $host;proxy_pass http://localhost:8080; # 当你访问80端口可以实现向8080端口转发root html;index index.html index.htm;}} }
http://www.ihoyoo.com/news/32641.html

相关文章:

  • 京东网站建设案例论文在线网页设计网站
  • 一家专门做印刷的网站热点军事新闻
  • 网站地图制作工具网站架构图的制作
  • 中山网站设计服务深圳公司注册服务
  • 陕西科技网站建设网站建设中 模板素材
  • 网站诊断结论福建省建设资格注册中心网站
  • 虚拟币挖矿网站开发软件公司名字起名大全
  • 打不开wordpress站点惠州网站建设咨询
  • 广西南宁做网站网站建设方案 预算
  • 网站网站模板电子商务网站推广案例
  • 电商网站开发哪里好微信如何做商城网站
  • 物流信息网站建设网页设计公司怎么开
  • 网站开发公司徐州知名的环保行业网站开发
  • seo网站推广怎么收费宁波网站建设的价格表
  • 遵义公司网站搭建多少钱电商法规定企业网站必须做3年
  • 做h5的网站哪个好经销商城建站
  • 无锡建设网站的公司做网站都需要哪些软硬件
  • 做商城网站应该注意什么如何填写网站开发验收单
  • asp网站开发的主要困难网站制作岗位职责
  • 大数据网站怎么做的济南做网站得多少钱
  • 陕西有没有做网站普查公司wordpress后台系统
  • 加强网站互动交流平台建设自查重庆网站建设公司的网站
  • 合阳县建设局网站简洁大气摄影网站
  • 南京市高淳县建设厅网站wordpress个人博客模板
  • 做网站建设需要会哪些seo怎么做自己的网站
  • 大型网站改版wordpress 下载 主题
  • 甘肃农产品网站建设网络服务器系统是什么
  • 专业视频网站开发合肥做淘宝网站推广
  • 养殖p2p网站建设ui培训费
  • 南阳高质量建设大市网站网站优化招聘