当前位置:网站首页>Alibaba cloud server purchase, basic configuration, (xshell) remote connection and environment building
Alibaba cloud server purchase, basic configuration, (xshell) remote connection and environment building
2022-06-26 23:24:00 【Yile】
One 、 Purchase of servers
1、 Purchase time point : When it comes to activities 、 Use student identity to buy
(1) Activities : Want to whore a server for nothing
A double tenth
, It can be around double eleven , A little earlier , Baidu or B standing , Search Alibaba cloud server 、 Tencent server (618 There may be )- commonly , Through their **
Promotion Links
( They have got the promotion fee , Buy it yourself first , Then they refund the purchase fee later ), You get a free ordinary server ~~~ however , The requirement isNew people
**
(2) More activities :
Must rush for money : everyday 10:00 Start buying
Snap up address :https://www.aliyun.com/activity/goods
It's best to participate in rush buying every morning , Like computational c6 Example of 2 nucleus 4G1M Bandwidth rush purchase price 864.96 element 、 Shared s6 example 4 nucleus 8G1M Bandwidth rush purchase price 764.52 These popular configurations are , Most of the time, they are snapped up in the morning .
Special activities for new people's welfare : The requirement is new
- New address :https://www.aliyun.com/activity/new
Cloud server Special selection : Activities include exclusive for new enterprise users 、 Exclusive for individual new users 、 Try several zones for free
- Select special address :https://www.aliyun.com/daily-act/ecs/activity_selection
Flying member program : Activities for enterprise users
- Feitian member program address :https://www.aliyun.com/feitianvip
(3) Student status , You can search on Alibaba cloud ** Student machine
**
Student machine purchase link :https://developer.aliyun.com/plan/grow-up
First registered student status , There may be activities to send a server for two or three months
Student status : The requirement is 24 Students under the age of , Normal server , The general price is about 100
Two 、 Basic configuration after server purchase
1、 Attention to detail : Type of server purchased 、 When watching the configuration tutorial , Choose the right type
- for example : The lightweight application server has only a thin version of the firewall , Didn't like ECS A security group like that .
■ this paper , Take your own lightweight application server as an example :
1、 Basic configuration :
(1) Find the server you bought : After login , Click on the console
(2) Reset the system 、 Reset password ( After resetting the password, restart )
- My system image , I chose centos7, In fact, you can also choose Ubuntu Of
- Application system , Change it then
(3) Security — Set up a firewall
3、 ... and 、 Use xshell Connect to remote server
install xshell The tutorial is in another article :https://blog.csdn.net/weixin_45630258/article/details/124377046
Remote connection open port :22
■ The way 1, Connect to the remote server by creating a session
1、 Create a session :
2、 Unknown host key — Click accept and save :
3、 Enter the user name of the server :
4、 Set it and remember the user name 、 Remember the password :
5、 Successfully connected to the remote server :
■ The way 2: Through the command ssh, for example ssh ip Address
When found using xshell The connection to the remote server suddenly failed , In the local ping once , If the request times out
solve ---- Try restarting the remote server
xshell Change the font size of :
Ctrl + Mouse wheel , Enlarge and reduce Fonts !
xshell Common shortcut keys
Autocomplete command tab
Four 、 Alibaba cloud server setup environment
After connecting to the server , We need to build an environment
Mode one : The fool – Install the pagoda panel
Mode two : Use command – Native (linux command )
1、 Alibaba cloud server installation pagoda
(1) Introduction to pagoda panel
- It is a domestic development Server management tools , Focus on operation and maintenance server efficiency and security , For individuals 、 The team 、 Small and medium-sized enterprises provide a new generation of server operation and maintenance products and services .
(2) Pagoda panel function :
- Mainly used for management 、 Maintain server usage , Is a server management software , Support windows and linux System , Manage the server through the browser , For example, create a new website 、FTP、 Database etc. , Software management with visual environment 、 visualization CPU、 Memory 、 Traffic monitoring 、 Security monitoring software 、 Visual file management 、 terminal 、 Planning tasks 、 Software store and other functions
(3) Installation tutorial of pagoda panel :
https://www.bt.cn/bbs/thread-19376-1-1.html
The premise of installing the pagoda : Make sure it's a clean operating system
- No other environmental belt has been installed Apache/Nginx/php/MySQL/pgsql/gitlab/java**( The existing environment cannot be installed )**
Release port :
- Visiting the pagoda requires 8888 The port is released
- 20 、21、 39000-40000 port (linux System ),3000-4000(windows System )
- 22 (SSH)
- 80、443( Website and SSL)
- 3306 ( Database remote connection )
- 888 (phpmyadmin)
● If you enter the panel and modify the panel port or FTP port , Remember to release the corresponding ports in the security group and panel firewall 【 details : After opening the security group , To restart the system 】
Centos Installation command :
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh 12f2c1d72
After downloading , You can get an address : The management panel of the pagoda !
Command to view pagoda login information :bt default
- url:
- Internet panel address : http://ip Address :8888/d2f1b2a6
- Intranet panel address : http://ip Address :8888/d2f1b2a6
- username: bl6ckjgn
- password: 973eedf6
- url:
Software store using pagoda's management panel :
● Customize the installation server environment :
- mysql-5.7
- apache-2.4
- nginx-1.16
- redis[ Now there is no... On the pagoda 5.x Version of , Native install command is required ]
● One click deployment environment :
● The management port in the pagoda panel ( Open port ):
- When opening ports , In addition to the need for safe opening in the pagoda panel , It also needs to be opened in Alibaba cloud's firewall (esc Words , It also needs to be open in the security group )
(4) Put it on the website to visit !
- such as tomcat Just put it in webapps Under the table of contents !
- Special website : Open source project , Just follow your own operation
(5) Upload files and try to use XFTP
xftp The installation tutorial for is in :https://blog.csdn.net/weixin_45630258/article/details/124377046
● stay xshell Use in XFTP:
(6) If the website access test fails :
- It must be a firewall ,(Linux The server , Alibaba cloud security group panel !)
- war Throw it directly to tomcat that will do
- jar Direct use java—jar Execute to access
5、 ... and 、 Product launch ( Domain name resolution 、 Website filing )
- Domain name filing is required for the product to go online
Domain name resolution
(1) Create a domain name template :
● Steps to create a domain name template :
- Log in to alicloud account , Click on the console :
- Click on three bars :
- Search for domain names , Get into **
Domain name console
**:
- Create information template , Then wait until the audit is successful ( A message will be sent to you after the approval [ Generally, it may be during the working period of the staff 2-3 The audit passed within hours ]):
(2) Choose a domain suffix with the right price : For students , Just buy a cheap domain suffix , Don't buy .com .cn These are expensive
- My domain name suffix is .site [7 Yuan ha ha ha ]
● Steps to purchase a domain name :
- Log on the official website of aliyun , Select the search icon :
- Enter a custom domain name , Choose a cheap suffix :
- Add to the list , Click on the domain name list :
- Buy now :
- Select the owner of the domain name as an individual , Then pay :
- Sign in **
Domain name console
**, Waiting for approval :
(3) Domain name resolution :
- thus , Later my ip( A string of numbers ) You can use the domain name yilele.site perhaps www.yilele.site Instead of
Website filing
- Through the filing instructions , Remind us when we buy services , Try to choose Hong Kong as the address , Then there is no need to put on record .《ICP The necessity of filing 》
- The problem of filing : Servers in the mainland need to be filed , Servers in Hong Kong or overseas do not need to be accessible .
(1) Choose free filing :
(2) Filing process :
If this article is helpful to you, remember to give me a compliment , thank !
边栏推荐
- UnityEditor编辑器扩展-表格功能
- 简单测试轻量级表达式计算器Flee
- Is it reliable to open an account on a stock trading mobile phone? Is it safe to open an account online and speculate in stocks
- Color matching and related issues
- [strong foundation program] video of calculus in mathematics and Physics Competition
- 买股票在手机上开户安全吗 网上开户炒股安全吗
- Leetcode 718. Longest repeating subarray (violence enumeration, to be solved)
- Redcap is ready to come out. It is indispensable to build a "meta universe"
- 让敏捷回归本源——读《敏捷整洁之道》有感
- 代码之外:写作是倒逼成长的最佳方式
猜你喜欢
12 color ring three primary colors
Unity4.6 Download
數據清洗工具flashtext,效率直接提昇了幾十倍數
开放世界机甲游戏-Phantom Galaxies
VB. Net class library (advanced version - 1)
From bitmap to bloom filter, C # implementation
Three solutions for improving embedded software development environment
WordPress collection plug-ins are recommended to be free collection plug-ins
简单测试轻量级表达式计算器Flee
客户端实现client.go客户端类型定义连接
随机推荐
【混合编程jni 】第九篇之Jni总结
Partage de trois méthodes de sommation automatique dans un tableau Excel
Unity布料系統_Cloth組件(包含動態調用相關)
Smartbi gives you a piece to play with Boston matrix
不花一分钱做个在线的gif合成服务
300题 第三讲 向量组
Microservices, an important part of cloud native architecture
PHP代码审计系列(一) 基础:方法、思路、流程
The user adds a timer function in the handler () goroutine. If it times out, it will be kicked out
Unityeditor Editor Extension - table function
ubuntu上安装mysql
不同的子序列问题I
[mixed programming JNI] Part 9: JNI summary
[strong foundation program] video of calculus in mathematics and Physics Competition
go中的微服务和容器编排
【Try to Hack】正向shell和反向shell
Is it safe to open an account and speculate in stocks on the mobile phone? Is it safe to open an account and speculate in stocks on the Internet
在手机开户买股票安全吗 网上开户炒股安全吗
Leetcode - the best time to buy or sell stocks
Microservices and container choreography in go