Recommended tutorial: High-performance Linux server building video tutorial
How to make yourself write Can the web page be accessed by others online? Then start building your own server so that your cool web pages can be seen by more people.
This article mainly explainsStart from scratchBuild your own server,Purchase==>Configuration==>Publish , such a series of detailed processes allow the web pages you create to be published on the Internet, and let’s start the server journey together! This article mainly explains the Tencent Cloud student package. The operations of other cloud servers are similar. If it helps you, I hope you can keep doing it.
Purchasing a server
Currently the most commonly used servers are Alibaba Cloud and Tencent Cloud, which are relatively stable to use. What is explained here is Tencent Cloud. In fact, the configuration and use of many browsers are similar. What is demonstrated here is the student package of Tencent Cloud. As a student dog, you can use it for free during school. Enter the Tencent Cloud Campus Service Plan and select the [Trial Version] (PS: Grabbing starts at 0:00 every day, 100 places per day, limited grab, grab! grab!) package, 10 yuan/month.
Select configuration
Tencent Cloud Free Student Package [1 core 2G, 1M bandwidth 50G cloud hard disk 】, this is the default configuration of Tencent Cloud student package and cannot be selected.
Next, select other configuration options for the server:
Region: the location of the server. Just choose the area of the server that is closer to the visitor. The closer it is, the faster the access speed will be. [For example: Chengdu] Availability Zone: Just choose according to the region, it’s not a big problem. [For example: Chengdu District 1] Operating systems: There are Linux, Windows and other systems, and Linux includes different versions: CentOS, Debian, Ubuntu, etc. Just choose a system you are familiar with. [For example: Windows Server] System version: Choose the version that suits you according to the operating system you choose. [For example: Windows Server 2012 R2 Standard Edition 64-bit Chinese Edition] Purchase duration: Select one month. Because the coupons for Tencent Cloud’s student package are collected every month, you can only purchase them one month at a time. Object storage: Just use the default 50G. Domain name service: Use the .cn domain name for free in the first year. If you have a domain name, you can select [No], if not, you can select [Yes], and then enter a domain name you want, but this domain name must be globally unique, so the domain name you want may have been registered, then You can only register other domain names.
Check the information
Check the information and check your own Check whether the purchased configuration is what you need. After paying the order, you have already obtained the server, and you can start playing with your own server.
View Server
So how do you check the server you have purchased? Log in to Tencent Cloud, enter the console management, click [Cloud Products] ==> [Cloud Server] ==> [Cloud Host] in the navigation bar, and you can view your cloud host.
Here you can view the various statuses of the cloud host and some operations, including your own public IP and intranet IP .
Server registration and domain name resolution
Strictly speaking, the purpose of domain name registration is to prevent illegal website business activities on the Internet and combat the spread of bad Internet information. If the website is not registered, the server will be shut down after 7 days, resulting in the inability to use it normally. Currently, all servers in the country need to be registered.
Here, I directly quote the official registration document provided by Tencent Cloud. It is very detailed. Just refer to the registration. The time from the beginning of the registration to the completion may be about 20 days.
Domain name resolution is to bind the domain name to the IP. Through DNS resolution, the website corresponding to the IP can be accessed through the domain name.
PS: You can skip the "Server Registration and Domain Name Resolution" step first. You can also deal with this module after completing all the subsequent steps.
Log in to the cloud host
Log in to the cloud host to operate the entire cloud service and configure it as you want.
Click [Login] to see how to log in, and choose different login methods according to different systems.
Login steps (Windows):
Shortcut key [win R], enter the "mstsc" command to open the remote desktop dialog box. Enter the public IP address of the cloud host in the input box and click Connect. Enter the default username [Administrator], enter the password you set when you purchased the server, and click OK to connect to the remote desktop. Note: When connecting, remember to connect when the network speed is good, otherwise it may not be able to carry the device and cause the connection to fail.
After entering the cloud host, you will find that it is no different from the Windows we usually use, and the operation is much simpler.
Open the server
Okay, at this point we are very close to success. How can we make our server run and run the web pages or websites we write ourselves? Then you need to prepare the following software - PHPStudy. In fact, there are many servers that can be opened, such as Tomcat, but here we use PHPStudy for demonstration.
After downloading PHPStudy, you can install it in a fool-proof way.
After installation, the effect of starting the server normally is as shown in the figure below (that is, there is a green dot in front of it instead of a red dot).
Here we only need to manage Apache, not Mysql. Of course, if your project requires a database, then related configurations are definitely required. The default port of Apache is 80. If port 80 is not used, you need to add the port number after it when accessing using the IP address or domain name. MySQL default port is 3306.
If it cannot start normally, it means that the port is occupied, and you need to terminate other processes occupying the port.
After startup, you need to simply configure the port and directory.
Operation steps: Click [Other options menu]==>[Open configuration file]==>[vhosts-conf]
At this time, the opening should be Empty, just add the following configuration.
DocumentRoot 'C:\phpstudy\WWW' Options Indexes FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted
PS: Remember to modify The location of your own root directory.
If you need to publish your website online, you only need to upload all the files of the website to the server directory. Just access it through a domain name.
The above is the detailed content of How to build your own cloud server. For more information, please follow other related articles on the PHP Chinese website!

DHCP是“动态主机配置协议DynamicHostConfigurationProtocol”的首字母缩写词,它是一种网络协议,可自动为计算机网络中的客户端系统分配IP地址。它从DHCP池或在其配置中指定的IP地址范围分配客户端。虽然你可以手动为客户端系统分配静态IP,但DHCP服务器简化了这一过程,并为网络上的客户端系统动态分配IP地址。在本文中,我们将演示如何在RHEL9/RockyLinux9上安装和配置DHCP服务器。先决条件预装RHEL9或RockyLinux9具有sudo管理权限的普

一、安装nginx容器为了让nginx支持文件上传,需要下载并运行带有nginx-upload-module模块的容器:sudopodmanpulldocker.io/dimka2014/nginx-upload-with-progress-modules:latestsudopodman-d--namenginx-p83:80docker.io/dimka2014/nginx-upload-with-progress-modules该容器同时带有nginx-upload-module模块和ng

1,将java项目打成jar包这里我用到的是maven工具这里有两个项目,打包完成后一个为demo.jar,另一个为jst.jar2.准备工具1.服务器2.域名(注:经过备案)3.xshell用于连接服务器4.winscp(注:视图工具,用于传输jar)3.将jar包传入服务器直接拖动即可3.使用xshell运行jar包注:(服务器的java环境以及maven环境,各位请自行配置,这里不做描述。)cd到jar包路径下执行:nohupjava-jardemo.jar>temp.txt&

vue3项目打包发布到服务器后访问页面显示空白1、处理vue.config.js文件中的publicPath处理如下:const{defineConfig}=require('@vue/cli-service')module.exports=defineConfig({publicPath:process.env.NODE_ENV==='production'?'./':'/&

TCP客户端一个使用TCP协议实现可连续对话的客户端示例代码:importsocket#客户端配置HOST='localhost'PORT=12345#创建TCP套接字并连接服务器client_socket=socket.socket(socket.AF_INET,socket.SOCK_STREAM)client_socket.connect((HOST,PORT))whileTrue:#获取用户输入message=input("请输入要发送的消息:&

scp是securecopy的简写,是linux系统下基于ssh登陆进行安全的远程文件拷贝命令。scp是加密的,rcp是不加密的,scp是rcp的加强版。因为scp传输是加密的,可能会稍微影响一下速度。另外,scp还非常不占资源,不会提高多少系统负荷,在这一点上,rsync就远远不及它了。虽然rsync比scp会快一点,但当小文件众多的情况下,rsync会导致硬盘I/O非常高,而scp基本不影响系统正常使用。场景:假设我现在有两台服务器(这里的公网ip和内网ip相互传都可以,当然用内网ip相互传

psutil是一个跨平台的Python库,它允许你获取有关系统进程和系统资源使用情况的信息。它支持Windows、Linux、OSX、FreeBSD、OpenBSD和NetBSD等操作系统,并提供了一些非常有用的功能,如:获取系统CPU使用率、内存使用率、磁盘使用率等信息。获取进程列表、进程状态、进程CPU使用率、进程内存使用率、进程IO信息等。杀死进程、发送信号给进程、挂起进程、恢复进程等操作。使用psutil,可以很方便地监控系统的运行状况,诊断问题和优化性能。以下是一个简单的示例,演示如何

一、安装前的准备工作在进行MySQL多实例的安装前,需要进行以下准备工作:准备多个MySQL的安装包,可以从MySQL官网下载适合自己环境的版本进行下载:https://dev.mysql.com/downloads/准备多个MySQL数据目录,可以通过创建不同的目录来支持不同的MySQL实例,例如:/data/mysql1、/data/mysql2等。针对每个MySQL实例,配置一个独立的MySQL用户,该用户拥有对应的MySQL安装路径和数据目录的权限。二、基于二进制包安装多个MySQL实例

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Atom editor mac version download
The most popular open source editor

SublimeText3 Linux new version
SublimeText3 Linux latest version
