免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Web hosting with NGINX
- [Instructor] Nginx is a popular Web server. In this video, we'll take a brief look at installing it and using it. Here on Ubuntu Server, we can install it with apt install nginx. Nginx, by default, serves up a site on port 80 from the directory var/ww/html. To make sure network peers can see the site, we'll need to open up that port on the firewall with ufw allow 80/tcp. I've already done that for the previous video, but it doesn't hurt anything to do it again here. I also have a site from the previous video already stored in var/www/html, so when I visit the server's address, I see that being provided to me. Nginx's configuration is kept in var/nginx/nginx.conf, and its sites are defined in the etc/nginx/sites-available directory. We can take a look at the definition for this default site, the one running on port 80, called default. Here, we can see where the port is defined, where the site's files are stored, and so…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
-
-
(已锁定)
Hosting services on your server1 分钟 38 秒
-
(已锁定)
Configuring an SSH server6 分钟 28 秒
-
(已锁定)
Sharing files with Samba5 分钟
-
(已锁定)
Web hosting with Apache HTTP server3 分钟 33 秒
-
(已锁定)
Web hosting with NGINX1 分钟 46 秒
-
(已锁定)
Hosting a database with MariaDB4 分钟 51 秒
-
(已锁定)
Monitoring the server with Cockpit3 分钟 22 秒
-
(已锁定)
Virtualization with KVM/QEMU10 分钟 15 秒
-
(已锁定)
Containers with LXC3 分钟 37 秒
-
(已锁定)
Containers with Docker3 分钟 20 秒
-
(已锁定)
Sharing media with Docker and Jellyfin8 分钟 45 秒
-
(已锁定)
Cloud file hosting with Nextcloud3 分钟 30 秒
-
(已锁定)
-