[Seek Help] 计网作业,如何搭建一个简易的web服务器,要求老师今天刚发的
Tofloor
poster avatar
Zch
deepin
2022-12-17 00:06
Author

image.png

捕获.PNG

Reply Favorite View the author
All Replies
晚秋(lateautumn)
Moderator
2022-12-17 00:15
#1

这得需要坛神提供支持 joy 坛神尽快回复呀!kissing_heart

Reply View the author
Lwh2008-Equinox
deepin
2022-12-17 00:37
#2

opensuse文档里面有讲过,只不过你需要把命令换成Debian适用的

Reply View the author
donaldsebleung
deepin
2022-12-17 00:40
#3

Linux 上最常用的 web 服务器大概是 Apache 吧,详情可以参考 https://jingyan.baidu.com/article/84b4f565958e8860f6da32a8.html

Reply View the author
Lwh2008-Equinox
deepin
2022-12-17 00:40
#4

https://doc.opensuse.org/

https://doc.opensuse.org/documentation/leap/reference/html/book-reference/index.html

唯一的帮助了。。。我也是个小白哈哈哈。。。

Reply View the author
云的眼泪
deepin
2022-12-17 00:55
#5

你以前发过的吧,有不少大佬回复过。

如果简单地只需要支持html,安装apache2就可以了。

sudo apt install apache2

效果如下:

起始页
image.png

我的简单网页

image.png

Reply View the author
BG7ZAG
deepin
2022-12-17 01:19
#6

web服务?用nginx呗

最简单的一键包:OneinStack - 一键PHP/JAVA安装工具

怕安全问题,可以找对应应用的官网下源码包编译

Reply View the author
蔡EEPIN
deepin
2022-12-17 01:54
#7
BG7ZAG

web服务?用nginx呗

最简单的一键包:OneinStack - 一键PHP/JAVA安装工具

怕安全问题,可以找对应应用的官网下源码包编译

牛逼,看上去比lnmp.org强大不少

Reply View the author
superJunior
deepin
2022-12-17 06:38
#8

下载caddy,运行就可以了...最多写个Caddyfile

Reply View the author
Zch
deepin
2022-12-18 04:39
#9
donaldsebleung

Linux 上最常用的 web 服务器大概是 Apache 吧,详情可以参考 https://jingyan.baidu.com/article/84b4f565958e8860f6da32a8.html

不好意思老哥 纯小白 it works之后呢

Reply View the author
Zch
deepin
2022-12-18 04:39
#10
云的眼泪

你以前发过的吧,有不少大佬回复过。

如果简单地只需要支持html,安装apache2就可以了。

sudo apt install apache2

效果如下:

起始页
image.png

我的简单网页

image.png

不好意思老哥 纯小白 it works之后呢

Reply View the author
Zch
deepin
2022-12-18 04:42
#11
BG7ZAG

web服务?用nginx呗

最简单的一键包:OneinStack - 一键PHP/JAVA安装工具

怕安全问题,可以找对应应用的官网下源码包编译

不太会用 有教程吗老哥

Reply View the author
Zch
deepin
2022-12-18 04:51
#12
云的眼泪

你以前发过的吧,有不少大佬回复过。

如果简单地只需要支持html,安装apache2就可以了。

sudo apt install apache2

效果如下:

起始页
image.png

我的简单网页

image.png

那些网络服务该怎么设置

Reply View the author
云的眼泪
deepin
2022-12-18 16:58
#13
Zch

那些网络服务该怎么设置

如果没有特殊要求一般不用配置,使用电脑的IP就可以访问

服务器根目录位置在/var/www/html

具体配置较多,可百度“apache2配置”

参考这个

Reply View the author
吉吉如律令
deepin
2022-12-18 20:42
#14

原来校园网是这么个结构

Reply View the author
kero990
deepin
2022-12-19 19:50
#15

一般来说不会手动配置服务的,就算你勉强全终端配置好了,管理也是大问题

一般都是用面板的啊,比如最著名的宝塔面板,不过最近不知道有啥问题,大家都不用宝塔了,但是替代品也很多。建议你先用个虚拟机玩玩宝塔,你就明白了。

宝塔的替代品看这里:

https://www.bilibili.com/read/mobile?id=20507364

https://www.laoliublog.cn/22116.html

Reply View the author