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

网站建设企业的市场分析烟台网站搭建

网站建设企业的市场分析,烟台网站搭建,网站开发验证码图片不显示,网站欢迎页制作一、Apache 是什么#xff1f;Apache#xff08;全称 Apache HTTP Server#xff09;是当前最流行的开源Web服务器软件之一#xff0c;由Apache软件基金会维护。它以稳定性高、模块化设计和灵活的配置著称#xff0c;支持Linux、Windows等多平台#xff0c;是搭建个人博客…一、Apache 是什么Apache全称 Apache HTTP Server是当前最流行的开源Web服务器软件之一由Apache软件基金会维护。它以稳定性高、模块化设计和灵活的配置著称支持Linux、Windows等多平台是搭建个人博客、企业官网乃至复杂Web应用的首选工具。#apache的基本信息/etc/httpd/conf#apache的配置目录/etc/http/conf.d#子配置目录/etc/httpd/conf/httpd.conf#主配置文件/lib/systemd/system/htpd.service#启动文件:80#默认端口/var/www/html#默认发布目录index.html#默认发布文件二、安装Apache # 1. 安装Apache sudo dnf install httpd -y# 2. 放行防火墙允许HTTP/HTTPS流量 sudo firewall-cmd --permanent --add-servicehttp sudo firewall-cmd --permanent --add-servicehttps sudo firewall-cmd --reload# 3. 启动并设置开机自启 sudo systemctl enable --now httpd# 4.生成默认测试页文件 echo 172.25.254.100 /var/www/html/index.html# 5.测试 curl 172.25.254.100 172.25.254.100三、Apache的基本配置信息1.端口修改 #修改配置文件 [rootapache ~]# vim /etc/httpd/conf/httpd.conf 47 Listen 8080#刷新服务 [rootapache ~]# systemctl reload httpd#设定火墙通过 [rootapache ~]# firewall-cmd --permanent --add-port8080/tcp success[rootapache ~]# firewall-cmd --reload#检测 [rootapache ~]# netstat -antlupe | grep httpd tcp6       0      0 :::8080                 :::*                   LISTEN      0 78081      32315/httpd#访问 [rootapache ~]# curl 172.25.254.100:8080 172.25.254.1002.默认发布目录 修改selinux ——开着的话会有所影响 grubby --update-kernel ALL --args selinux0reboot ——重启getenforce Disabled#建立默认发布目录 [rootapache ~]# mkdir /web/html -p#修改配置文件 [rootapache ~]# vim /etc/httpd/conf/httpd.conf 125 DocumentRoot /web/html #指定默认发布目录位置 126 Directory /web/html 127         Require all granted #对于目录访问进行授权 128 /Directory[rootapache ~]# systemctl restart httpd[rootapache ~]# echo /web/htmls page /web/html/index.html[rootapache ~]# curl 172.25.254.100:8080 /web/htmls page 3.默认发布文件 #建立新的默认发布文件 [rootapache ~]# echo /web/html/lees page /web/html/lee.html#当没有对配置进行修改时新默认发布文件不会被默认访问 [rootapache ~]# curl 172.25.254.100:8080 /web/htmls page [rootapache ~]# curl 172.25.254.100:8080/lee.html /web/html/lees page#修改配置文件 [rootapache ~]# vim /etc/httpd/conf/httpd.conf 172 IfModule dir_module 173     DirectoryIndex lee.html index.html 174 /IfModule#重启服务 [rootapache ~]# systemctl reload httpd#测试 [rootapache ~]# curl 172.25.254.100:8080 /web/html/lees page4.https #安装mod_ssl [rootapache ~]# dnf install mod_ssl -y#建立证书和key文件目录 [rootapache ~]# mkdir /etc/httpd/certs#制作证书 [rootapache ~]# openssl req \ -newkey rsa:2048 \ -nodes \ -sha256 \ -keyout /etc/httpd/certs/timinglee.org.key \ -x509 \ -days 365 \ -out /etc/httpd/certs/timinglee.org.crtCountry Name (2 letter code) [XX]:CN State or Province Name (full name) []:Shannxi Locality Name (eg, city) [Default City]:XIAN Organization Name (eg, company) [Default Company Ltd]:timinglee Organizational Unit Name (eg, section) []:webserver Common Name (eg, your name or your servers hostname) []:www.timinglee.org Email Address []:timingleetiminglee.org#命令执行完成证书出现 [rootapache ~]# ls /etc/httpd/certs/ timinglee.org.crt timinglee.org.key#编辑主配置文件 [rootapache ~]# vim /etc/httpd/conf.d/ssl.conf86 SSLCertificateFile /etc/httpd/certs/timinglee.org.crt95 SSLCertificateKeyFile /etc/httpd/certs/timinglee.org.key#重启服务 rootapache ~]# systemctl reload httpd [rootapache ~]# netstat -antlupe | grep httpd tcp6       0     0 :::443                 :::*                   LISTEN     0 85111     33518/httpd tcp6       0     0 :::80                   :::*                   LISTEN     0 80172     33518/httpd#在浏览器中访问 https://服务器ip 5.apache的虚拟主机 修改selinux ——有所影响 grubby --update-kernel ALL --args selinux1reboot ——重启getenforce Enforcing#为每个发布站点建立默认发布目录 [rootapache ~]# mkdir -p /var/www/virtual/timinglee.org/news [rootapache ~]# mkdir -p /var/www/virtual/timinglee.org/bbs#为每个站点建立默认发布文件 [rootapache ~]# echo new.timinglee.org /var/www/virtual/timiniglee.org/news/index.html [rootapache ~]# echo bbs.timinglee.org /var/www/virtual/timiniglee.org/bbs/index.html#修改配置文件 [rootapache ~]# vim /etc/httpd/conf.d/vhosts.confVirtualHost _default_:80DocumentRoot /var/www/html /VirtualHostVirtualHost *:80ServerName bbs.timinglee.orgDocumentRoot /var/www/virtual/timiniglee.org/bbs/ /VirtualHostVirtualHost *:80ServerName news.timinglee.orgDocumentRoot /var/www/virtual/timiniglee.org/news/ /VirtualHost#刷新服务 [rootapache ~]# systemctl reload httpd#测试 1.在浏览器所在主机中手动编写本地解析文件 [rootapache ~]# vim /etc/hosts 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 #加入虚拟主机解析域名 172.25.254.100 mariadb.timinglee.org www.timinglee.org news.timinglee.org bbs.timinglee.org2.测试效果 [rootapache ~]# curl www.timinglee.org 172.25.254.100 [rootapache ~]# curl bbs.timinglee.org bbs.timinglee.org [rootapache ~]# curl news.timinglee.org new.timinglee.org
http://www.pierceye.com/news/456998/

相关文章:

  • 怎么问客户做不做网站企业网站源码 多语言
  • wordpress网站基础知识信息网络公司经营范围
  • 智汇隆网站建设wordpress建字段
  • 广东专业商城网站建设软文投稿平台有哪些
  • 广告公司起什么名字好seo教程有什么
  • 搭建网站什么意思网站制作网址
  • 哈尔滨站建筑松原市建设局网站
  • 浙江网站建设 seo深圳建设岗位证书报名网站
  • c 做彩票网站想在网上做开发网站接活儿
  • 医疗网站建设基本流程图怎样进行文化建设
  • 在深圳学网站设计我想创业做网站
  • seo网站优化公司住房和城乡建设厅证书查询
  • 江苏建设通网站创业项目
  • 亚马逊电商网站南通做网络网站
  • 做网站交易装备可以么上海企业信息查询公示系统
  • 浙江网站建设而梦幻西游源码论坛
  • 网站建设类织梦模板做网站 对方传销
  • 做外贸比较好的网站莱芜信息港房产网
  • 胶州建设局网站做电影网站怎样赚钱
  • 物流的网站模板免费下载网站你懂我意思正能量晚上下载
  • 做外贸的阿里巴巴网站是哪个更好网络宣传网站建设价格
  • 网站入侵怎么做网站开发相关英文单词
  • 实验室网站建设方案阳西网络问政平台官网
  • 岳阳网站开发建设网站域名注册申请
  • 营销型网站建设ppt网站程序开发后怎么上线
  • 鞍山做网站哪家好制作网站技术
  • 中国建设银行山西省分行网站wordpress永久免费
  • 设计网络网站做国外网站 国外人能看到吗
  • 融安有那几个网站做的比较好的创建网站大约
  • 浙江联科网站建设选择宁波seo优化公司