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

西宁做网站君博领先广东短视频seo搜索哪家好

西宁做网站君博领先,广东短视频seo搜索哪家好,WordPress底部自定义插件,商品网站建设实验记录第十六次7.29 1.静态页面 1安装httpd [rootweb ~]# yum -y install httpd 2.真机访问页面 [rootweb html]# echo 静态html文件 index.html 传入照片再次访问 静态资源#xff0c;根据开发着保存在项目资源目录中的路径访问静态页面的资源 2.Apache 1.安…第十六次7.29 1.静态页面 1安装httpd [rootweb ~]# yum -y install httpd 2.真机访问页面 [rootweb html]# echo 静态html文件 index.html 传入照片再次访问 静态资源根据开发着保存在项目资源目录中的路径访问静态页面的资源 2.Apache 1.安装http [roothttp ~]# yum -y install httpd 2.查看安装情况及安装的资源文件 [roothttp ~]# rpm -ql httpd 3.查看配置文件 [roothttp ~]# vim /etc/httpd/conf/httpd.conf 4.启动httpd服务 [roothttp ~]# systemctl start httpd 5.查看端口 [roothttp ~]# netstat -lnput|grep http tcp6       0     0 :::80                   :::*                   LISTEN     1503/httpd       不能直接停用防火墙可以单独打开端口 查看防⽕墙是否启⽤若启⽤则设置 apache服务可通⾏规则 [roothttp ~]# firewall-cmd --zonepublic --add-servicehttp #设置防火墙方向apache success 打开服务器不会马上生效需要重启或重新加载服务 停用防火墙或者打开指定端口 [roothttp ~]# firewall-cmd --zonepublic -add-port80/tcp --permanet 6.页面写入 [roothttp ~]# touch /var/www/html/index.html [roothttp ~]# mkdir /var/www/html/img/ [roothttp ~]# vim /var/www/html/index.html !doctype html htmlheadmeta charsetutf-8title正方形/titlestylediv{background-color:red;width:120px;height:120px;}   /style/head bodydiv正方形/div  img srcimg/1.jpg/body /html [roothttp ~]# systemctl reload httpd   #重载配置单 7.真机测试 静态文件如果无法在浏览器上访问就一定无法加载在页面上 3. 1.下载nginx [rootnginx ~]# wget https://nginx.org/download/nginx-1.27.0.tar.gz 2.解压 [rootnginx ~]# tar -zxvf nginx-1.27.0.tar.gz 3.开启编译nginx [rootnginx nginx-1.27.0]# cd nginx-1.27.0 [rootnginx ~]# yum -y install pcre-devel openssl-devel make gcc gcc-devel ./configure --prefix/usr/local/nginx --usernginx --groupnginx --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-stream [rootnginx nginx-1.27.0]# make make install [rootnginx nginx-1.27.0]# useradd -s /bin/nologin -M nginx [rootnginx nginx]# cp -r conf/ conf.bak [rootnginx nginx]# ./sbin/nginx [rootnginx nginx]# netstat -lnput|grep nginx tcp       0     0 0.0.0.0:80             0.0.0.0:*               LISTEN     14100/nginx: master ​ 4.开放端口 [rootnginx nginx]# firewall-cmd --zonepublic --add-port80/tcp --permanent success 5.重载防火墙 [rootnginx nginx]# firewall-cmd --reload success 6.启动和关闭nginx服务 [rootnginx nginx]# ln -s /usr/local/nginx/sbin/nginx /usr/bin/ [rootnginx nginx]# ls -l /usr/bin/nginx lrwxrwxrwx. 1 root root 27 7月 29 16:15 /usr/bin/nginx - /usr/local/nginx/sbin/nginx [rootnginx nginx]# nginx   #80端口被占用 nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) ^C [rootnginx nginx]# nginx -s stop [rootnginx nginx]# netstat -lnput|grep nginx [rootnginx nginx]# nginx [rootnginx nginx]# netstat -lnput|grep nginx   #已启用 tcp       0     0 0.0.0.0:80             0.0.0.0:*               LISTEN     14194/nginx: master ./nginx #启动 ./nginx -s stop #关闭 ./nginx -s reload #重新启动 指令在命令行使用是因为在$PATH目录中能找到这个可执行文件 7.脚本启动nginx服务 [rootnginx nginx]# vim ~/nginx.sh #!/bin/bash /usr/local/sbin/nginx /dev/null netstat -lnput|grep nginx if [ $? -eq 0 ];thenecho ningx正在执行或者是80被占用 ​ fi [rootnginx nginx]# nginx [rootnginx nginx]# source ~/nginx.sh tcp       0     0 0.0.0.0:80             0.0.0.0:*               LISTEN     14232/nginx: master ningx正在执行或者是80被占用 [rootnginx nginx]# nginx -s stop [rootnginx nginx]# source ~/nginx.sh ​ 8. [rootnginx nginx]# vim /usr/lib/systemd/system/nginx.service [Unit] Descriptionnginx Afternetwork.target ​ [Service] Typeforking PIDFile/usr/local/nginx/logs/nginx.pid ExecStart/usr/local/nginx/sbin/nginx ExecReload/usr/local/nginx/sbin/nginx -s reload ExecStop/usr/local/nginx/sbin/nginx -s stop PrivateTmpFlase ​ [Install] WantedBymulti-user.target ​ [rootnginx nginx]# systemctl daemon-reload [rootnginx nginx]# systemctl stop nginx [rootnginx nginx]# systemctl restart nginx ​ 9.真机测试 监控模块 [rootnginx nginx]# vim /usr/local/nginx/conf/nginx.conf   #添加47       location /status{48         stub_status on;49         access_log off;50 }51 [rootnginx nginx]# nginx 虚拟配置
http://www.hkea.cn/news/14587230/

相关文章:

  • 青岛网站制作方案提升学历的重要性与意义
  • 个人网页设计概述厦门做网站优化的公司
  • 优化设计官方网站wordpress qps
  • 安徽省住房和建设厅网站国际网站如何推做推广
  • 网站建设兆金手指下拉域名比价网
  • 网站备案 中国内蒙古建设厅网站
  • php网站源码免费下载怎么建立一个免费网址
  • 桂林做网站的公司哪家最好电商网站开发 思维导图
  • 济南市建设执业资格注册中心网站网站建设服务器可以租吗
  • 宁国市网站关键词优化外包网站项目建设的组织机构
  • seo干什么郑州网站优化平台
  • 如何介绍网站模板下载威县做网站哪家好
  • 商业网站怎么做网站海外推广建设
  • 新手网站设计定价湖南优化电商服务有限公司
  • 推荐一本学做网站的书做网站怎么兼职
  • 视频直播sdk快速接入赤峰seo
  • 软装潢.企业网站建设网站搜索查询
  • 什么是网站名称文件夹别人冒用我们公司做的网站怎么关掉
  • 温州营销网站制作联系电话烟台企业展厅设计公司
  • 西安手机网站案例Wordpress 实名认证
  • 小说网站建设方案书ppt雄安做网站优化
  • 合肥网站建设培训室内设计公司名字大全
  • 创意设计作品欣赏汕头网站时优化
  • 亚马逊站外推广网站怎么做WordPress苏醒模板免费
  • 福田大型商城网站建设网站正在建设中 图片
  • 建筑工程找工作哪个网站好北京网页设计与制作
  • 网站建设header企业所得税税率2019
  • 广州市企业网站建设做网站要不要交税
  • 网站建设与管理课程标准深圳网站公司排名
  • 网站建设如何插音乐高清logo网站