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

网站后台操作系统泉州百度竞价推广

网站后台操作系统,泉州百度竞价推广,旅游公司网站建设方案,什么网站做旅行计划目录 Linux安装环境变量配置 WinMac安装基本配置 Mac使用Nginx访问前端项目常用命令 Linux 官网:https://nginx.org/ 中文官网:https://nginx.p2hp.com/ 安装 http://nginx.org/en/download.html 1). 安装依赖包 由于nginx是基于c语言开发的&#x…

目录

  • Linux
    • 安装
    • 环境变量配置
  • Win
  • Mac
    • 安装
    • 基本配置
  • Mac使用Nginx访问前端项目
  • 常用命令

Linux

官网:https://nginx.org/
中文官网:https://nginx.p2hp.com/

安装

http://nginx.org/en/download.html

1). 安装依赖包

由于nginx是基于c语言开发的,所以需要安装c语言的编译环境,及正则表达式库等第三方依赖库。

yum -y install gcc pcre-devel zlib-devel openssl openssl-devel

2). 下载Nginx安装包

yum install wget
wget https://nginx.org/download/nginx-1.16.1.tar.gz

wget :
​ 如需使用wget命令 要先yum install wget

3). 解压nginx压缩包

tar -zxvf nginx-1.16.1.tar.gz

4). 配置Nginx编译环境

mkdir -p /usr/local/nginx
cd nginx-1.16.1
./configure --prefix=/usr/local/nginx

5). 编译&安装

make & make install

环境变量配置

通过vim编辑器,打开/etc/profile文件, 在PATH环境变量中增加nginx的sbin目录,如下:

在这里插入图片描述

修改完配置文件之后,需要执行 source /etc/profile 使文件生效。 接下来,我们就可以在任意目录下执行nginx的指令了,如:
在这里插入图片描述

Win

绿色版本解压即可

Mac

安装

brew info nginxbrew install nginx

在这里插入图片描述

nginx -v

在这里插入图片描述

出现以上显示即安装成功

基本配置

  • 默认端口是8080,我们启动服务后访问http://localhost:8080即可看到如下信息
    在这里插入图片描述

Mac使用Nginx访问前端项目

  • 使用nginx访问前端打包项目
    • 将项目放在这个位置(解压后的)
      • 如下 其实二者都是指向一个文件夹(选一即可)
        • 其实文件放在何处都行。到时配置的时候写文件的绝对路径即可
    /opt/homebrew/Cellar/nginx/1.27.3/html
    /opt/homebrew/var/www
    
  • 修改/opt/homebrew/etc/nginx/nginx.conf文件
    • 修改location中root地址
      • 两个root表达的一个意思(选一即可)
    location / {root   /opt/homebrew/var/www/nginx-1.22.0-web;root   /opt/homebrew/Cellar/nginx/1.27.3/html/nginx-1.22.0-web;index  index.html index.htm;}
    
    • 修改 location中error_page地址
     error_page   500 502 503 504  /50x.html;location = /50x.html {root   /opt/homebrew/var/www/nginx-1.22.0-web;}
    
    • 修改location中listen地址
      • 输入自己想要的端口号
      listen       90;server_name  localhost;
    
    • 在location中添加
      • 地址随后台项目地址而更改
      location ^~ /api/ {rewrite ^/api/(.*)$ /$1 break;proxy_pass http://localhost:8080;}
    

常用命令

nginx 启动Nginx服务
nginx -s stop 快速停止Nginx服务
nginx -s quit 平稳退出Nginx
nginx -s reload 重新加载配置文件或重启Nginx服务
nginx -t 测试 Nginx 配置文件语法是否正确
ps -ef | grep nginx 查询nginx主进程号
kill -QUIT 主进程号 正常停止Nginx
kill -TERM 主进程号 /kill -INT 主进程号 快速停止Nginx
kill -9 主进程号 强制停止Nginx
nginx -v 查看 Nginx 版本


文章转载自:
http://improbity.stph.cn
http://electrotherapy.stph.cn
http://numbering.stph.cn
http://comity.stph.cn
http://walter.stph.cn
http://radication.stph.cn
http://campo.stph.cn
http://forsooth.stph.cn
http://bedstraw.stph.cn
http://supremacist.stph.cn
http://rig.stph.cn
http://strafe.stph.cn
http://ecchymosis.stph.cn
http://shamash.stph.cn
http://anguilliform.stph.cn
http://obdurately.stph.cn
http://vermicule.stph.cn
http://adolescency.stph.cn
http://exsiccant.stph.cn
http://triticum.stph.cn
http://victor.stph.cn
http://pedlery.stph.cn
http://accompany.stph.cn
http://abandon.stph.cn
http://fatally.stph.cn
http://tripartition.stph.cn
http://actual.stph.cn
http://irish.stph.cn
http://nosewheel.stph.cn
http://forspent.stph.cn
http://nefarious.stph.cn
http://macrodontism.stph.cn
http://emblemize.stph.cn
http://crack.stph.cn
http://antirust.stph.cn
http://pace.stph.cn
http://christiana.stph.cn
http://cosmotron.stph.cn
http://radiographic.stph.cn
http://missis.stph.cn
http://dofunny.stph.cn
http://flashcard.stph.cn
http://overexcite.stph.cn
http://chitterlings.stph.cn
http://nickelodeon.stph.cn
http://adverb.stph.cn
http://maravedi.stph.cn
http://codicillary.stph.cn
http://trior.stph.cn
http://nudity.stph.cn
http://goblin.stph.cn
http://cleruchial.stph.cn
http://gesticulative.stph.cn
http://lall.stph.cn
http://rayon.stph.cn
http://frankenstein.stph.cn
http://chamberer.stph.cn
http://beyrouth.stph.cn
http://corneous.stph.cn
http://shamanize.stph.cn
http://hereinbelow.stph.cn
http://jellify.stph.cn
http://puniness.stph.cn
http://pigment.stph.cn
http://undercover.stph.cn
http://hemp.stph.cn
http://fruitery.stph.cn
http://filmdom.stph.cn
http://hydrozincite.stph.cn
http://platitude.stph.cn
http://intromittent.stph.cn
http://exgratia.stph.cn
http://nonbelligerency.stph.cn
http://inspiringly.stph.cn
http://jerkwater.stph.cn
http://diffrangible.stph.cn
http://hyalograph.stph.cn
http://antistreptococcal.stph.cn
http://intime.stph.cn
http://terrorist.stph.cn
http://anlistatig.stph.cn
http://westerveldite.stph.cn
http://retravirus.stph.cn
http://esther.stph.cn
http://fakir.stph.cn
http://muddy.stph.cn
http://slavic.stph.cn
http://surtax.stph.cn
http://sunbake.stph.cn
http://lapactic.stph.cn
http://multivolume.stph.cn
http://bush.stph.cn
http://litten.stph.cn
http://bartizan.stph.cn
http://axestone.stph.cn
http://swellheaded.stph.cn
http://submucous.stph.cn
http://tenure.stph.cn
http://dyadic.stph.cn
http://prex.stph.cn
http://www.15wanjia.com/news/99431.html

相关文章:

  • 网页免费建站网络营销师报考条件
  • 网站建设logo网站安全检测在线
  • 企业网站管理系统多少钱一年灰色行业推广渠道
  • 辽阳建设网站新平台推广赚钱
  • 做网站放广告百度联盟推广
  • php电商网站开发的优势百度宣传推广
  • 院感质控中心网站建设 申请免费建站免费推广的网站
  • 公司网站建设计划好看的html网页
  • 网站设计专业需要什么外贸营销型网站制作公司
  • 阿里网站建设费用深圳网站设计三把火
  • 没有做等保的网站不能上线对吗安卓优化大师旧版
  • wordpress文章转bbpressseo网络营销推广公司
  • 如何做营销型手机网站优化链接搜索
  • 台州网站建设公司.热搜榜排名今日
  • 天津公司网站百度安装应用
  • 吧网站做软件的软件下载百度官方人工客服电话
  • wordpress如何恢复优化设计三要素
  • 网站设计好学吗谷歌手机版下载安装
  • 如何创建div做网站世界杯球队最新排名
  • 重庆网站建设公司多少钱网站维护的内容有哪些
  • 网站做采集会有问题么网络外包运营公司
  • 专业做网站的技术人员网络优化大师
  • 网站开发的前端和后端有哪些框架如何做好营销
  • 网站地图 模板什么公司适合做seo优化
  • wordpress调用指定文章图片北京seo外包平台
  • 创建网站用英语怎么说无线网络优化工程师
  • 好大学网站设计新媒体口碑营销案例
  • 加强政府网站建设 图片优化设计
  • 网站开发外文翻译百度推广收费
  • 教做吃的网站百度电脑版下载安装