Linux 基于端口的虚拟主机配置

这篇博客介绍了如何在Linux系统中进行基于端口的虚拟主机配置。内容包括挂载光盘、安装httpd服务、创建目录、编辑httpd.conf配置文件,以及启动httpd服务的过程,特别注意了在配置过程中可能出现的错误及其解决方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[whch@localhost 桌面]$ cd/mnt/cdrom

[whch@localhost cdrom]$ ll

总用量 0

[whch@localhost cdrom]$ mount /dev/cdrom/mnt/cdrom

mount: only root can do that

[whch@localhost cdrom]$ su root

密码:

[root@localhost cdrom]# mount /dev/cdrom/mnt/cdrom

mount: block device /dev/sr0 iswrite-protected,

mounting read-only

[root@localhost cdrom]# ll

总用量 0

[root@localhost cdrom]# cd /mnt/cdrom

[root@localhost cdrom]# ll

总用量 3885

dr-xr-xr-x. 3 whch whch   2048 11月 17 2011 EFI

-r--r--r--. 3 whch whch   8794 9月  2 2010 EULA

-r--r--r--. 3 whch whch  18092 6月 29 2010 GPL

dr-xr-xr-x. 3 whch whch   2048 11月 17 2011

HighAvailability

dr-xr-xr-x. 3 whch whch   2048 11月 17 2011 images

dr-xr-xr-x. 2 whch whch   2048 11月 17 2011 isolinux

dr-xr-xr-x. 3 whch whch   2048 11月 17 2011

LoadBalancer

-r--r--r--. 2 whch whch    114 11月 17 2011 media.repo

dr-xr-xr-x. 2 whch whch 649216 11月 17 2011Packages

-r--r--r--. 2 whch whch  16435 9月  2 2010 README

-r--r--r--. 3 whch whch 172833 11月 15 2011RELEASE-

NOTES-as-IN.html

-r--r--r--. 3 whch whch 178359 11月 15 2011RELEASE-

NOTES-bn-IN.html

-r--r--r--. 3 whch whch 109593 11月 15 2011RELEASE-

NOTES-de-DE.html

-r--r--r--. 3 whch whch 101919 11月 15 2011RELEASE-

NOTES-en-US.html

-r--r--r--. 3 whch whch 109920 11月 15 2011RELEASE-

NOTES-es-ES.html

-r--r--r--. 3 whch whch 114396 11月 15 2011RELEASE-

NOTES-fr-FR.html

-r--r--r--. 3 whch whch 166662 11月 15 2011RELEASE-

NOTES-gu-IN.html

-r--r--r--. 3 whch whch 168104 11月 15 2011RELEASE-

NOTES-hi-IN.html

-r--r--r--. 3 whch whch 108343 11月 15 2011RELEASE-

NOTES-it-IT.html

-r--r--r--. 3 whch whc

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值