当前位置: 首页 > 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://www.huolong8.cn/news/158195/

相关文章:

  • 做分析报表的网站qq群推广网站
  • 做微信平台网站网站 支持建设单位
  • 网站怎么不要钱自己做个人网站建立教程
  • 无锡网站建设软件开发花样云做网站怎样
  • 陕西住房城乡建设部网站楚雄州城乡建设局网站
  • 零代码自助建站平台建设银行青海省分行招聘网站
  • 5a景区网站建设记事本做网站怎么加图片
  • 设计网站 知乎互联网营销师培训基地
  • 辽宁住房建设厅网站首页dw怎么做网站轮播图
  • 营销型网站一般有哪些内容建设摩托车官网中国官网报价大全
  • 如何自己做淘宝网站阿里云网站建设方案书填写
  • 家具企业网站建设网站运营职责
  • 炒股配资网站建设网站的性能特点
  • 在网站中动态效果怎么做济南网站建设服务公司
  • 静态网站 后台广州环保网站建设
  • 闸北区网站建设网页我要建立一个网站
  • 中国城乡和住房建设部网站设计logo网站哪个好
  • 网站建设文字教程亦庄做网站
  • 太原制作响应式网站抚顺市建设银行网站
  • 网站建设开发公司推荐指数360浏览器屏蔽某网站怎么做
  • 做网站网页需要学些什么网页设计的基本原则有哪些
  • 可以做哪些网站有哪些内容学网站ui设计
  • 第一代网站建设技术wordpress amp
  • 最好的网站代运营公司小程序制作用华网天下推荐
  • 重庆电商网站建设费用东莞做网站哪家最好
  • 什么网站可以做饼图建设个网站
  • 为什么公司网站打开很慢wordpress排版乱 了
  • 北京做网站报价新手织梦网建设网站
  • 免费画图网站宿城区住房和城乡建设局网站
  • 网站软文代写建设厅官方网站企业库