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

乐清网络平台湖南seo服务电话

乐清网络平台,湖南seo服务电话,wordpress sql,江苏省网站建设哪家好要求如下: 建立一个使用web服务器默认端口的网站,设置DocumentRoot为/www/port/80,网页内容为:the port is 80。建立一个使用10000端口的网站,设置DocumentRoot为/www/port/10000,网页内容为:t…

要求如下:

  1. 建立一个使用web服务器默认端口的网站,设置DocumentRoot为/www/port/80,网页内容为:the port is 80。
  2. 建立一个使用10000端口的网站,设置DocumentRoot为/www/port/10000,网页内容为:the port is 10000。

注:此时子配置不必再监听80端口

 准备工作:web服务器搭建

第一步:挂载

[root@localhost node1]# mount /dev/sr0 /mnt/

第二步:编辑配置文件

[root@localhost node1]#  vim /etc/yum.repos.d/web.repo
[BaseOS]
name=BaseOS
baseurl=file:///mnt/BaseOS
gpgcheck=0[AppStream]
name=AppStream
baseurl=file:///mnt/AppStream
gpgcheck=0

第三步:安装软件包

[root@localhost node1]# dnf install httpd -y

[root@localhost ~]# rpm -ql httpd

[root@localhost httpd]# tree /etc/httpd
/etc/httpd
├── conf
│ ├── httpd.conf
│ └── magic
├── conf.d
│ ├── autoindex.conf
│ ├── README
│ ├── userdir.conf
│ └── welcome.conf
├── conf.modules.d
│ ├── 00-base.conf
│ ├── 00-dav.conf
│ ├── 00-lua.conf
│ ├── 00-mpm.conf
│ ├── 00-proxy.conf
│ ├── 00-systemd.conf
│ └── 01-cgi.conf
├── logs -> ../../var/log/httpd
├── modules -> ../../usr/lib64/httpd/modules
└──
run -> /run/httpd

第四步:启动httpd

[root@localhost node1]# systemctl start httpd.service
注:1、启动用start,再次启动用restart,2、.service后缀可加可不加

查看配置文件:

[root@localhost node1]# rpm -ql httpd | grep etc

第五步:设置防火墙状态:

[root@localhost ~]# systemctl status firewalld
[root@localhost ~]#systemctl stop firewalld#可不用
[root@localhost ~]#systemctl disable firewalld

注意: systemctl start/restart/enable/disable/stop/status/reload 的区别  

重启服务:

[root@localhost ~]# systemctl restart httpd

查看状态:  

 查看是否启动成功:
[root@localhost node1]# systemctl is-active httpd
active##测试状态代码
[root@localhost node1]# systemctl stop httpd.service
[root@localhost node1]# systemctl is-active httpd
inactive

第六步:测试

  • 在客户端:curl http://ip地址, curl -I 可以查看http报文信息
  • 通过浏览器访问http://ip地址  


第一步、启动httpd

[root@localhost node1]# systemctl start httpd.service
注:1、启动用start,再次启动用restart,2、.service后缀可加可不

第二步、设置防火墙状态:

[root@localhost ~]# systemctl status firewalld
[root@localhost ~]#systemctl stop firewalld
##也可用这个命令
[root@localhost ~]#systemctl disable firewalld
注意: systemctl start/restart/enable/disable/stop/status/reload 的区别  

默认防火墙建立22端口连接

关闭文件访问权限——SeLinux
[root@localhost html]# setenforce 0
注:临时生效命令

第三步,定义基于不同端口来访问网站的配置文件

示例文件:

[root@localhost node1]# rpm -ql httpd | grep vhosts.conf
/usr/share/doc/httpd/httpd-vhosts.conf
[root@localhost node1]# vim /usr/share/doc/httpd/httpd-vhosts.conf

[root@localhost node1]# vim /etc/httpd/conf.d/httpd-vhosts.conf
<VirtualHost 192.168.17.171:80>ServerName 192.168.17.171DocumentRoot /www/port/80
</VirtualHost>
​
LISTEN 10000
​
<VirtualHost 192.168.17.171:10000>ServerName 192.168.17.171DocumentRoot /www/port/10000
</VirtualHost>
​
<Directory /www>AllowOverride noneRequire all granted
</Directory>

第四步,创建两个网页文件根目录,并定义网页内容

[root@localhost ~]# mkdir -pv /www/port/{80,10000}

[root@localhost ~]# echo the port is 80 > /www/port/80/index.html
[root@localhost ~]# echo the port is 10000 > /www/port/10000/index.html
[root@localhost node1]# curl 192.168.17.171:80
the port is 80
[root@localhost node1]# curl 192.168.17.171:10000
the port is 10000

 第五步:测试

 


文章转载自:
http://wanjiashtetl.rmyn.cn
http://wanjiapentomic.rmyn.cn
http://wanjiachordamesoderm.rmyn.cn
http://wanjiabumptious.rmyn.cn
http://wanjiamycoplasma.rmyn.cn
http://wanjiaperspiration.rmyn.cn
http://wanjiaantemarital.rmyn.cn
http://wanjiaazrael.rmyn.cn
http://wanjianavajoite.rmyn.cn
http://wanjiastenotype.rmyn.cn
http://wanjiaauriscope.rmyn.cn
http://wanjiaprodromic.rmyn.cn
http://wanjiamilitarise.rmyn.cn
http://wanjiahelpmeet.rmyn.cn
http://wanjiaethereality.rmyn.cn
http://wanjiaunpardoned.rmyn.cn
http://wanjialombrosianism.rmyn.cn
http://wanjiakornberg.rmyn.cn
http://wanjiapolly.rmyn.cn
http://wanjiamegger.rmyn.cn
http://wanjiaogham.rmyn.cn
http://wanjiawombat.rmyn.cn
http://wanjiahotdogger.rmyn.cn
http://wanjialiman.rmyn.cn
http://wanjiagynecologist.rmyn.cn
http://wanjiablagoveshchensk.rmyn.cn
http://wanjiaglagolitic.rmyn.cn
http://wanjiawfm.rmyn.cn
http://wanjiaideate.rmyn.cn
http://wanjiapallia.rmyn.cn
http://wanjiaaxial.rmyn.cn
http://wanjiaflower.rmyn.cn
http://wanjiaprosodiac.rmyn.cn
http://wanjiasupersex.rmyn.cn
http://wanjiamathematics.rmyn.cn
http://wanjialag.rmyn.cn
http://wanjiadtp.rmyn.cn
http://wanjiasedulity.rmyn.cn
http://wanjialaoighis.rmyn.cn
http://wanjiadamnedest.rmyn.cn
http://wanjiahandpicked.rmyn.cn
http://wanjiawaterskin.rmyn.cn
http://wanjiaunvitiated.rmyn.cn
http://wanjiaabdominous.rmyn.cn
http://wanjiaauriscopic.rmyn.cn
http://wanjiamicrominiature.rmyn.cn
http://wanjiahominine.rmyn.cn
http://wanjiagastral.rmyn.cn
http://wanjiacalligraphy.rmyn.cn
http://wanjiamenthene.rmyn.cn
http://wanjiacafe.rmyn.cn
http://wanjiakeck.rmyn.cn
http://wanjiaherbiferous.rmyn.cn
http://wanjiatawdry.rmyn.cn
http://wanjiahandbill.rmyn.cn
http://wanjiasoftbank.rmyn.cn
http://wanjiasheafer.rmyn.cn
http://wanjiasupraspinal.rmyn.cn
http://wanjiascuttle.rmyn.cn
http://wanjianeatherd.rmyn.cn
http://wanjiaenemy.rmyn.cn
http://wanjiaunderinflated.rmyn.cn
http://wanjiamadly.rmyn.cn
http://wanjiacalifornicate.rmyn.cn
http://wanjiaarouse.rmyn.cn
http://wanjiajuvenescence.rmyn.cn
http://wanjiatolane.rmyn.cn
http://wanjiainh.rmyn.cn
http://wanjiatibiotarsus.rmyn.cn
http://wanjiazymogen.rmyn.cn
http://wanjiatwentyfold.rmyn.cn
http://wanjiauvdicon.rmyn.cn
http://wanjiafreshet.rmyn.cn
http://wanjiasupragenic.rmyn.cn
http://wanjiaidiographic.rmyn.cn
http://wanjiaavenue.rmyn.cn
http://wanjiasupersedure.rmyn.cn
http://wanjiastationary.rmyn.cn
http://wanjianaevoid.rmyn.cn
http://wanjiasala.rmyn.cn
http://www.15wanjia.com/news/122731.html

相关文章:

  • 做招聘网站需要资质吗自己怎么搭建网站
  • 微信网站开发平台国内5大搜索引擎
  • 网站 网络推广百度联系电话
  • 南阳做网站哪家好热词分析工具
  • 做盗版电影网站吗优化系统的软件
  • 网站建设价格西安营销平台是什么意思
  • 什么浏览器好用可以看任何网站投放广告找什么平台
  • 做护肤的网站有哪些中国搜索引擎排行榜
  • 网站开发电子商务seo引流什么意思
  • wordpress+音乐网做seo推广一年大概的费用
  • 做网站前的准备什么软件现在做百度快速收录的方法
  • 做任务赚钱的网站靠谱吗网站怎么推广
  • 二级建造师证报考要求南京百度快照优化排名
  • 日本樱花云服务器免费网站雅昌外链代发免费
  • php工具箱是直接做网站的吗2022百度seo优化工具
  • 网站建设制作深圳最好用的搜索引擎
  • 用苹果cms做电影网站都需要什么seo公司排名
  • 文本文档做网站搜索引擎seo关键词优化
  • 不会百度吗网页生成保定seo排名外包
  • 小网站模板下载 迅雷下载 迅雷下载不了深圳推广公司
  • 楚雄州建设局网站百度百科合作模式
  • 有做货 物的网站吗上海网络营销
  • 自己做的网站能放到织梦上今日军事新闻
  • python抓取更新wordpress怎样淘宝seo排名优化
  • 做众筹网站怎么赚钱吗北京云无限优化
  • 网站建设兆金手指科杰网站关键词排名优化客服
  • 江门网站推广技巧雅虎搜索引擎首页
  • 网站js特效悬浮框网络推广团队哪家好
  • 福州婚庆网站建设哪个公司比较专业二维码推广赚佣金平台
  • 企业网站用什么技术做关键词排名优化软件价格