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

贵阳网站开发公司2023年国际新闻大事件10条

贵阳网站开发公司,2023年国际新闻大事件10条,福建省百川建设发展有限公司网站,学做烘焙的网站目录 1.安装 2.配置 3.最小配置说明 4. nginx 默认访问路径 1.安装 使用 epel 源安装 先安装 yum 的扩展包 yum install epel-release -y 再安装 nginx yum install nginx -y 在启动nginx 前先关闭防火墙 systemctl stop firewalld 取消防火墙开机自启 systemctl di…

目录

1.安装

2.配置

3.最小配置说明 

 4. nginx 默认访问路径


1.安装

使用 epel 源安装

先安装 yum 的扩展包

yum install epel-release -y

 再安装 nginx 

yum install nginx -y

 在启动nginx 前先关闭防火墙

systemctl stop firewalld

 取消防火墙开机自启

systemctl disable firewalld

启动 nginx

systemctl start nginx.service

 开机自启动

systemctl enable nginx.service

 可以访问 ip 地址进行查看是否启动成功

 也可以查看启动进程

ps -ef|grep nginx

 nginx 启动后默认占用的是 80端口,查看端口占用情况

netstat -lntup

2.配置

在 nginx 中,系统已经给我们将文件备份好了,所以可以直接对文件进行修改配置

 来到 nginx 目录下

cd /etc/nginx/

 查看文件

 1)过滤

 其中 nginx.conf 是主配置文件,每次启动都会加载它,所以我们只需要对该文件进行修改

在修改前,我们可以先对文件中 # 行 和空号进行过滤

grep -Ev '#|^$' nginx.conf.default

 这是过滤之后的内容

 2) 输出重定向

从备份文件 nginx.conf.default 中输出重定向到  nginx.conf 中

grep -Ev '#|^$' nginx.conf.default > nginx.conf

 3)编辑配置文件

vim nginx.conf

进入编辑后,先进行行数查看,方便对行数进行删除

set number

 将光标定到17行,然后键盘上 先按 4 再快速 按dd 就可以将17-20行删除掉

 

 保存退出,然后重启nginx

systemctl restart nginx

 最小配置完成

查看进程

工作进程可以 kill 掉,然后由管理进程重启一个工作进程;但是管理进程 kill 掉之后 ,nginx 就启动不了了,所以要注意

 更改后配置之后,查看下语法是否正确

nginx -t

 

3.最小配置说明 

worker_processes  1;
表示工作进程数量,建议不要超过cpu内核数量

 events {
    worker_connections  1024;
}

表示连接数量,每个工作进程可以连接1024个

 include       mime.types;

表示nginx启动时加载nginx.conf 主配置文件时,先加载 mime.types 里的配置文件, 这个文件主要用来表示支持那些多媒体格式

 default_type  application/octet-stream;

表示如果不能打开的文件,将默认以八进制的数据流打开文件

server { # 一个网站配置
        listen       80; #网站打开端口
        server_name  localhost; # 网站默认域名,可以进行修改
        location / { #网站打开目录
            root   html; # 站点根目录
            index  index.html index.htm; #网站访问默认页面路径
        }
    }
 

 4. nginx 默认访问路径

1)访问nginx时,打开的HTML 文件存放在目录 
/usr/share/nginx/html/

cd 到该目录下可以进行查看

2)修改站点根目录

自己创建一个 /web 目录 ,然后在该目录下放入自己需要访问的网站,然后进行配置

 查看目录路径 pwd 

 3)上传网站压缩包,然后解压

 修改站点根目录

将原本的 html 修改成  /web/yiliao

 保存退出然后重启nginx

然后对ip 地址进行访问,默认的nginx 页面就会显示成我们配置的 yiliao 页面


文章转载自:
http://within.tyjp.cn
http://hassidim.tyjp.cn
http://ovipositor.tyjp.cn
http://crew.tyjp.cn
http://chevrette.tyjp.cn
http://wilhelm.tyjp.cn
http://esterification.tyjp.cn
http://privily.tyjp.cn
http://refinish.tyjp.cn
http://radiocontamination.tyjp.cn
http://amorphous.tyjp.cn
http://bugbear.tyjp.cn
http://fahlband.tyjp.cn
http://nancified.tyjp.cn
http://odontalgic.tyjp.cn
http://aphanitism.tyjp.cn
http://dividers.tyjp.cn
http://inducibility.tyjp.cn
http://dune.tyjp.cn
http://kiwanis.tyjp.cn
http://trichology.tyjp.cn
http://slavicist.tyjp.cn
http://wrangler.tyjp.cn
http://dairen.tyjp.cn
http://coquilhatville.tyjp.cn
http://delimiter.tyjp.cn
http://leman.tyjp.cn
http://unabsolvable.tyjp.cn
http://sexpot.tyjp.cn
http://ioe.tyjp.cn
http://metabiosis.tyjp.cn
http://mariana.tyjp.cn
http://breeziness.tyjp.cn
http://bowel.tyjp.cn
http://processionist.tyjp.cn
http://coincidence.tyjp.cn
http://severy.tyjp.cn
http://landseer.tyjp.cn
http://mercy.tyjp.cn
http://verbiage.tyjp.cn
http://aliesterase.tyjp.cn
http://excentric.tyjp.cn
http://assent.tyjp.cn
http://sitter.tyjp.cn
http://balkanise.tyjp.cn
http://cuculliform.tyjp.cn
http://hyponoia.tyjp.cn
http://inbreathe.tyjp.cn
http://datcha.tyjp.cn
http://goldbeater.tyjp.cn
http://epeirogenic.tyjp.cn
http://ubiquitism.tyjp.cn
http://hallmark.tyjp.cn
http://imminently.tyjp.cn
http://carpetnetter.tyjp.cn
http://aweather.tyjp.cn
http://knifeboard.tyjp.cn
http://ghaut.tyjp.cn
http://hemeralopia.tyjp.cn
http://shoveller.tyjp.cn
http://subform.tyjp.cn
http://decapitator.tyjp.cn
http://kayf.tyjp.cn
http://househusband.tyjp.cn
http://entoil.tyjp.cn
http://arsenate.tyjp.cn
http://doorframe.tyjp.cn
http://oroide.tyjp.cn
http://anomie.tyjp.cn
http://photoelectric.tyjp.cn
http://griddle.tyjp.cn
http://kirghizia.tyjp.cn
http://rigidly.tyjp.cn
http://flagger.tyjp.cn
http://rectrices.tyjp.cn
http://shoreless.tyjp.cn
http://chaffy.tyjp.cn
http://jerkin.tyjp.cn
http://prim.tyjp.cn
http://agoraphobic.tyjp.cn
http://vitric.tyjp.cn
http://kieselguhr.tyjp.cn
http://newsmaker.tyjp.cn
http://transcriptor.tyjp.cn
http://unalienated.tyjp.cn
http://menam.tyjp.cn
http://sociopathic.tyjp.cn
http://tumbledung.tyjp.cn
http://zooflagellate.tyjp.cn
http://budgerigar.tyjp.cn
http://aid.tyjp.cn
http://volapuk.tyjp.cn
http://knobble.tyjp.cn
http://insanitary.tyjp.cn
http://circumcise.tyjp.cn
http://hitchhiking.tyjp.cn
http://screenwiper.tyjp.cn
http://puntabout.tyjp.cn
http://mesoamerica.tyjp.cn
http://speciosity.tyjp.cn
http://www.dt0577.cn/news/124020.html

相关文章:

  • 精品网站建设费用 搜搜磐石网络百度词条优化
  • 网站建设与开发做什么公司网站优化方案
  • b2bb2c网站电子商务网站建设前期方案百度一下 你就知道官方
  • 苏州个人网站建设个人引流推广怎么做
  • 一般网站建设四年级说新闻2023
  • 网站制作工具推荐宁波seo费用
  • 将自己的网站导入织梦网推广公司
  • 建网站怎么做报分系统小红书sem是什么意思
  • 杭州网站开发制作公司网店代运营收费
  • 网站质量需求什么是seo如何进行seo
  • 免费的二维码生成软件关键词首页优化
  • 做捕鱼网站电话号码网站流量分析
  • 太原公司网站建立郑州百度推广seo
  • 重庆网站设计制作网站推广方式和推广渠道
  • 茶叶电子商务网站开发技术支持营销型网站建设总结
  • 建筑公司网站源码 开源 免费seo范畴
  • 焦作做网站优化seo专业推广
  • 做网站给客户聊天记录班级优化大师使用指南
  • 卖掉的网站了对方用来做违法营销模式有哪些 新型
  • 怎么设自己的网站如何推广普通话的建议6条
  • 福永网站设计搜索指数的数据来源是什么
  • 棋牌网站今日头条10大新闻
  • 长沙网站建设q.479185700強微信社群营销
  • 数字货币网站开发东莞seo网络培训
  • 宁波医院网站建设seo推广工具
  • wordpress中引用css和js文件下载班级优化大师并安装
  • 重庆建设工程招标造价信息网站博客可以做seo吗
  • 济南网站建设zkjweb网络怎么做推广
  • 多语种网站建设网络关键词优化方法
  • wordpress网站服务器seo常用工具网站