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

网站建设网络推广平台一个网站的tdk是指网站的

网站建设网络推广平台,一个网站的tdk是指网站的,郑州电商网站设计,专业建设公司网站目录 网站需求#xff1a; 思路#xff1a; 实验步骤#xff1a; 第一步#xff1a;准备工作 第二步#xff1a;新建一个存储网页的目录 第三步#xff1a;修改本地hosts映射 第四步#xff1a;修改配置文件#xff0c;建立基于http服务的网站 1)创建用户song和…目录 网站需求 思路 实验步骤 第一步准备工作 第二步新建一个存储网页的目录 第三步修改本地hosts映射 第四步修改配置文件建立基于http服务的网站 1)创建用户song和tian并修改密码为123456 2设置访问控制修改主配置文件 第五步建立基于https的/money网站 第六步重启服务并在Linux经行测试 网站需求 1.基于域名www.openlab.com可以访问网站内容为 welcome to openlab!!!2.给该公司创建三个网站目录分别显示学生信息教学资料和缴费网站基于         www.openlab.com/data网站访问教学资料         www.openlab.com/student 网站访问学生信息         www.openlab.com/money网站访问缴费网站3.要求       1学生信息网站只有song和tian两人可以访问其他网站所有用户用能访问。       2访问缴费网站实现数据加密基于https访问。 思路 1.准备工作设备的安装启动以及防火墙和SELinux的关闭         2.新建一个存储网页的目录同时建立子目录以及网页内容         3.修改本地hosts映射         4.修改配置文件: 新建/data以及/student子目录网站,         5.建立https的/money网站:         6.重启服务并在Linux经行测试。 实验步骤 第一步准备工作 [rootserver ~]# setenforce 0 [rootserver ~]# systemctl stop firewalld [rootserver ~]# yum install httpd mod_ssl [rootserver ~]# systemct1 start httpd [rootserver ~]# systemctl enable httpd 第二步新建一个存储网页的目录 [rootnode2 ~]# mkdir  -p /www/data [rootnode2 ~]# mkdir  -p /www/student [rootnode2 ~]# mkdir  -p /www/money [rootnode2 ~]# echo welcome to opemlab!   /var/www/html/index.html[rootnode2 ~]# echo Python book ,linux book   /www/data/index.html [rootnode2 ~]# echo student: Song And Tian   /www/student/index.html [rootnode2 ~]# echo give me money   /www/money/index.html 第三步修改本地hosts映射 [rootnode2 ~]# vim /etc/hosts                          192.168.17.132  www.openlab.com 第四步修改配置文件建立基于http服务的网站 1)创建用户song和tian并修改密码为123456 [rootnode2 ~]# useradd song [rootnode2 ~]# passwd song  [rootnode2 ~]# useradd tian  [rootnode2 ~]# passwd tian  2设置访问控制修改主配置文件 设置访问控制 [rootnode2 ~]# htpasswd -c /etc/httpd/passwdop song New password:                        # 登陆密码123456 Re-type new password:  Adding password for user song[rootnode2 ~]# htpasswd  /etc/httpd/passwdop tian New password:                        # 登陆密码123456          Re-type new password:  Adding password for user tian 修改主配置文件 [rootnode2 ~]# vim /etc/httpd/conf/httpd.conf   # 定位第一行 virtualhost 192.168.17.132documentroot /wwwservername 192.168.17.132directory /wwwallowoverride nonerequire all granted/directory /virtualhostvirtualhost 192.168.17.132documentroot /www/dataalias /data /www/dataservername datadirectory /www/dataallowoverride nonerequire all granted/directory /virtualhostvirtualhost 192.168.17.132documentroot /www/studentalias /student /www/studentservername studentdirectory /www/studentallowoverride noneauthuserfile /etc/httpd/passwdopauthname My privatelyauthtype basicrequire user song tian/directory /virtualhost第五步建立基于https的/money网站 创建私钥文件 [rootnode2 ~]# openssl genrsa -aes128 2048 /etc/pki/tls/private/mo.key Enter PEM pass phrase:                        # 设置密码为123456 Verifying - Enter PEM pass phrase: 创建数字证书 [rootnode2 ~]# openssl req -utf8 -new -key /etc/pki/tls/private/mo.key  -x509 -days 365 -out /etc/pki/tls/certs/mo.crt # 指名该证书用到的私钥文件-key    /etc/pki/tls/private/ftp.key Enter pass phrase for /etc/pki/tls/private/mo.key: You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter ., the field will be left blank. -----      # 证书信息 Country Name (2 letter code) [XX]:86 State or Province Name (full name) []:shanxi  Locality Name (eg, city) [Default City]:xian Organization Name (eg, company) [Default Company Ltd]:openlab Organizational Unit Name (eg, section) []:RHCE Common Name (eg, your name or your servers hostname) []:money Email Address []:IHavemoneymore.com[rootnode2 ~]#  修改ssl配置文件也可以写入主配置文件中 virtualhost 192.168.17.132:443sslengine onSSlcertificatefile /etc/pki/tls/certs/mo.crtSSLCertificateKeyFile /etc/pki/tls/private/mo.keyservername moneydocumentroot /www/moneyalias /money /www/moneydirectory /www/moneyallowoverride nonerequire all granted/directory /virtualhost 第六步重启服务并在Linux经行测试 [rootnode2 ~]# systemctl restart httpd Enter TLS private key passphrase for money:443 (RSA) : ******   在Linux上使用firefox 命令打开浏览器用域名访问 访问 访问http://www.openlab.com/data/ 访问: http://www.openlab.com/student 该步骤实验失败输入网址后会直接进入网站内部无法访问经行针对性访问。 原因未知​​​​​​​ 访问https://www.openlab.com/money/
http://wiki.neutronadmin.com/news/158195/

相关文章:

  • 外贸网站流量分析简单asp网站
  • 长春火车站到龙嘉机场怎么走网站建设高级开发语言
  • 网站开发需求统计物流网站前端模板下载
  • 正规免费网站建设公司各大网站开发的区块链
  • 登陆国外的网站要这么做网站说服力 营销型网站策划
  • 广州专业网站设计公司常见的手机网站
  • ps做网站教程株洲市民健康提醒
  • 化妆品网站模板下载浙江建设厅官方网站
  • 毕业设计网站建设企业邮箱什么样子
  • 情趣官方网站怎么做代理ppt模板免费下载素材库
  • 华企在线网站建设商洛做网站的公司电话
  • 关于门户网站改版建设报告小说类网站功能建设
  • 2018网站建设合同范本seo优化个人博客
  • 财务公司网站建设wordpress博客站搭建
  • 做网站导航一般字号是多少网站建设案例哪家好
  • 做细分行业信息网站外贸流程英文版
  • 旅游网站论文wordpress支付宝即时到帐
  • 门头沟青岛网站建设南昌二手房
  • 站群cms系统网站建设需要英语吗
  • wordpress进入站点什么是交换链接
  • 企业内部网站做庭院的网站
  • 微商做图王官方网站wdcp网站备份
  • 郴州住房和城乡建设部网站wordpress智慧面板
  • 企业网站建设的现状c 博客网站开发教程
  • 自学网站搭建中国网站开发排名
  • 自己手机怎么免费做网站wordpress的模板文件下载
  • 建设银行天津招聘网站欧模网室内设计网
  • 新乡市延津县建设局网站商城网站建设4262
  • 桓台网站建设免费logo制作
  • 免费网站备案泉州建行 网站