当前位置:网站首页>Tencent Cloud Lightweight Application Server Configuration and Website Building Tutorial

Tencent Cloud Lightweight Application Server Configuration and Website Building Tutorial

2022-08-10 23:17:00 User 9264446

How to use Tencent Cloud Lightweight Application Server?Beginner webmasters to buildWordPress为例,使用宝塔镜像,Open the port on the firewall first.Tencent Cloud Encyclopedia will detail the purchase of Tencent Cloud servers、The whole process from configuration to website launch,Includes lightweight server configuration options、应用镜像选择、重置密码、Detailed tutorials such as firewall open port tutorial:

一:Register a Tencent Cloud account and complete real-name authentication

Purchase a lightweight application server at Tencent Cloud,First, you need to have a Tencent Cloud account and complete real-name authentication.A special lightweight server for participating in the event purchased as a result of this tutorial,This event is exclusive to new users,So if you are a classmate of an old user of Tencent Cloud,It is recommended to use someone else's identity to re-register a new Tencent Cloud account.About Tencent Cloud account registration and real-name authentication tutorial,Please refer to the official documentation directly,Tencent Cloud Encyclopedia will not go into details: 1、Tencent Cloud account quick registration tutorial 2、Tencent Cloud account real-name authentication tutorial(个人和企业)

二:Buy special lightweight application servers

腾讯云轻量应用服务器价格很便宜,2核2G4M配置65元一年、2核4G6M带宽178元一年,4核8G10M配置388元一年,如下图:

Preferential price for Tencent Cloud lightweight application server

如上图,The above lightweight servers are a special price for new users,Select the desired cloud server configuration,点击“立即购买”,Select a region and mirror,如下图:

Tencent Cloud lightweight application server configuration selection
  • 地域:The region can choose Shanghai、北京和广州,Proximity principle is recommended,Choose according to the location of the user group,Most northern users choose Beijing,Southern users choose Guangzhou,National users choose Shanghai;
  • 镜像:Xiaobian buys a lightweight server to build a website,Select the pagoda panel directly,宝塔Linux面板 7.9.2 腾讯云专享版.

As for the limited-time add-on“25元加购10Gbps DDoS原生防护”和“19Dollar plus purchase value105元100GB数据盘”,You can choose according to actual needs.

三:配置防火墙开放端口

In this article, Tencent Cloud Encyclopedia aims to build a website by installing a pagoda image on a lightweight application server,The port number required for the pagoda panel needs to be opened on the lightweight server:8888/888/80/443/20/21这6个端口.Lightweight server open port tutorial:

1、登录到轻量应用服务器管理控制台,Enter the server that needs to open the port

2、Switch to a lightweight server“防火墙”页面,点击“添加规则”如下图:

Tencent Cloud Lightweight Server firewall rules open ports

3、在“创建新的规则”窗口,The application type can choose its own rules,也可以选择自定义,This article opens the pagoda8888端口为例,选择自定义,规则如下:

应用类型:自定义 协议:TCP 端口:8888 策略:允许 备注:Remarks can be filled,可不填

如下图:

Lightweight server opens pagoda8888端口

然后点“确定”,即可生效,不需要重启云服务器.Open Continue in the same way888/80/443/20/21端口.

四:Reset the light server password

There is no password set when purchasing a lightweight application server,After the lightweight server is created,Want to log in to the cloud server,Password must be reset first,Then log in to the cloud server with the new password.

登录到轻量应用服务器管理控制台,Find the light server you just purchased in the server list,点“更多”--“重置密码”,如下图:

Lightweight application server reset password

重置密码后,You can log in to the lightweight application server.操作系统不同,默认用户名也不同,The different system usernames are as follows:

  • Windows系统默认用户名为:Administrator
  • Ubuntu系统默认用户名为:ubuntu
  • 其他版本Linux系统如CentOS默认为:root

五:Check out the pagoda panel address、用户名与密码

1、登录到轻量应用服务器管理控制台,Enter the light server“应用管理”页面,如下图:

Tencent Cloud lightweight server application management

2、在“应用内软件信息”中,“用户名与密码”中,复制命令,然后点右侧的“登录”,如下图:

Copy the command first and then click Login

3、in the login window that opens,Paste the command you just copied:sudo /etc/init.d/bt default,并回车执行命令,Return the result to see the address of the external network panel of the pagoda、username和password,如下图:

宝塔面板地址、用户名和密码信息

4、Then enter the Pagoda extranet login address just obtained in the browser,打开后如下图:

Pagoda panel login page

Enter the username and password you just obtained,You can log in to the background of the pagoda panel.

5、在弹出的“Link to Tencent CloudAPI密钥”窗口中,输入 APPID、SecretId 及 SecretKey,and click Associate Tencent CloudAPI密钥,如下图:

Link to Tencent CloudAPI密钥
  • APPID:APPID查询页面:https://console.cloud.tencent.com/developer
  • SecretId和SecretKey查询页面:https://console.cloud.tencent.com/cam/capi

至此,The Tencent Cloud Lightweight Application Server Pagoda panel is set.Next is creating the site on the pagoda panel.

六:Create a new website on the pagoda panel

1、Log in to the pagoda panel for the first time,会提示推荐安装套件,In this article, Tencent Cloud Encyclopedia will be builtWordPress博客,选择LNMP(推荐),如下图:

宝塔面板安装Web环境

如上图,点“一键安装”,Pagoda panels are automatically installed for lightweight serversNginx、MySQL、Pure-Ftpd、PHP和phpMyAdmin等WordPress所需的Web环境.等待3分钟左右,The pagoda panel can be installed automatically.

2、安装完成后,点击左侧栏“网站”--“添加站点”,如下图:

宝塔面板添加站点

域名:输入网站域名,带www和不带wwwDomain names can be entered 根目录:The root directory will be based on the domain name,自动生成 FTP:FTPChoose to create an account,当然不需要FTP就不创建,FTPAccount and password will be automatically generated 数据库:Tencent Cloud Encyclopedia to createWordPress网站为例,新建MySQL数据库,数据库Account and password will be automatically generated PHP版本:根据实际情况选择,默认即可

然后点“提交”,You're done creating the site,保存好FTP和数据库账号密码.

3、上传WordPressprogram to the website root directory WPProgram can goWordPress官网下载,下载好后,Package the program and upload it to the root directory of the website,The default site root directory is Filewww/wwwroot/你的域名下,Take the root directory of Tencent Cloud Server Network as an example,如下图:

Pagoda panel website root directory

如上图,Pagoda panel after creating the site,will be automatically generated in the root directoryindex.html、404.html、.user.ini和.htaccess四个文件,删除自动生成的文件,然后上传WordPress程序安装包,并解压.

4、The domain name is resolved to the light server public networkIP地址上 Domain registrars are different,Domain name resolution tutorials are also different,The Tencent Cloud domain name resolution tutorial is as follows,大家自己参考吧:

5、浏览器输入域名,安装WordPress程序,熟悉的WordPress安装页面,如下图:

WordPress网站安装

然后输入,The account and password of the new database when creating the site,Set the site title again、WordPressBackground login username and password,填写完成后,点击安装WordPress.看到久违的“WordPress安装完成.谢谢!”,如下图:

成功!WordPress安装完成.谢谢!

关于WordPress安装、更换主题、设置、WordPress二次开发等,Tencent Cloud Encyclopedia will not go into details.

The above is Tencent Cloud Encyclopedia's purchase of Tencent Cloud Lightweight Application Server、Port open configuration、安装宝塔面板Webenvironment and buildWordPressThe whole process of the website,欢迎留言,转载请注明出处.

原网站

版权声明
本文为[User 9264446]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/222/202208102229582935.html