In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Foreword:
As a junior programmer, they all dream of building their own personal website and showing it to others at the same time. If you are just starting to contact, I suggest you publish your static website to the server first.
Prepare:
1. Apply for registration of a server
Apply for registration of a CVM, such as Aliyun, Tencent Cloud and so on. There is a discount for the student party to use the server.
2. Configure the ftp\ ssh environment
Ps: what I know is that Aliyun has already configured ftp and ssh. If so, you can skip this step.
Specific steps:
To facilitate your later operation and use, you need to configure the ftp and ssh environment. (ftp: file transfer protocol, commonly said to upload and download files; ssh: secure shell protocol, a protocol designed to provide security for remote login sessions and other network services, allowing you to use other software to connect to your server.
Ftp environment configuration scheme link: https://www.jb51.net/article/156423.htm
Ssh environment configuration scheme link: https://www.jb51.net/article/156422.htm
3. Server-related remote connection software
When using our server, we need to connect remotely and upload files to the server. My two personal favorite software here are Xshell and Xftp.
Xshell: is a powerful security terminal emulation software that supports SSH1, SSH2, and TELNET protocols on the Microsoft Windows platform. Xshell's secure connection to remote hosts through the Internet and its innovative design and features help users enjoy their work in a complex network environment. That is, the console of the remote server.
Xftp: generally speaking, it means uploading and downloading server files.
4. Web application server configuration
Ps: I'm using tomcat here because I put java-related projects later. If you can find the corresponding web server in other languages, here I will mainly introduce the configuration process of tomcat.
4.1 before configuring tomcat, you need to configure the java environment configuration.
Java environment configuration scheme link: https://www.jb51.net/softjc/193398.html
4.2 configure tomcat
Link to tomcat configuration scheme: https://www.jb51.net/article/108101.htm
5. Open the corresponding port
Open port, here I personally use port 80 or 8080.
To open the specified port for Ali CVM, the following steps are required:
5.1 find the security group configuration
5.2 Click to configure rules
5.3 Click to add Security Group rules
The 5.4 port range format is 80amp 80, and the authorized object can view "teach me Settings". Here, it is set to 0.0.0.0amp 0, which allows access to any object.
6. Make your own static website and wait for release.
For example, the following forms:
7. Publish your own static website
7.1Open Xftp and create a project folder under webapps under the tomcat directory under linux. (my location is / usr/local/development/tomcat7/webapps, and I created a tree project)
7.2 put the project under the folder you just created.
7.3 restart tomcat.
8. Visit your website successfully
If you don't have a domain name, you can check the ip address of your server to access it and remember the tomcat port number you set. For example, if my ip address is 180.20.123.30 and the port number is 8080, then the http of the index page I want to visit should be http://180.20.123.30:8080/tree/index.html.
Finished, are you very happy? go and give your results to your friends show show~.
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.