Purchase student cloud server ¥10/month
The operating system I bought is linux——CentOs7, it is best to use linux as a server
Enter the console and wait for the completion of the instance creation,
I reset my instance password, username root, the password just reset, the instance restarts, you can connect remotely, just use Xshell
Then click Remote VNC, you need to remember the password you came out next
Then VNC is useless. Next, use Xshell to create a new connection, configure the host name as public IP, user name root (different under linux, win), and the password is the one I reset
Go to Xshell (a remote connection to the database, use the command line to operate the software, many online download tutorials), create a new connection
The connection is successful, the following is about the construction of the environment and the installation of the software.
In general server operating environment, we need to install the following:
JDK is used to run various programs and software, version control Git, server Tomcat
The various software installation packages I use are here
Baidu Cloud: Link: https://pan.baidu.com/s/1TBLVduUW0NjGEVuejOeZeQ Extraction code: wl39
Preface
1. Download,,,,,,,, huh
Alipay-25
Ding!
2. Use Xshell's rz upload
1. Enter the rz command to check whether it is installed
2. Similar to mine above, without installation, use command
yum -y install lrzsz
Install the
installation is complete!
3. Upload to the server
Use the cd command to enter the location where you want to store the software installation package, enter rz, select the file, and upload it
uploaded completed
1. Start installing JDK
1. Create a java folder under /usr/local/ and enter
cd /usr/local/
mkdir java
cd java
2. Unzip, unzip the JDK installation package to /usr/local/java
tar -zxvf /root/install_bag/jdk-8u161-linux-x64.tar.gz -C ./
3. Configure environment variables, edit /etc/profile files,
vim /etc/profile
,Press i to edit, add the following JDK environment configuration at the end of the file, ESC+colon+wq to exit
JAVA_HOME=/usr/local/java/jdk1.8.0_161
CLASSPATH=$JAVA_HOME/lib/
PATH=$PATH:$JAVA_HOME/bin
export PATH JAVA_HOME CLASSPATH
4. Execute commands and refresh environment variables
source /etc/profile
5. Verify the installation
java
javac
java -version
Two, start to install Tomcat
1. Create a tomcat folder under /usr/local/ and enter
cd /usr/local/
mkdir tomcat
cd tomcat
2. Unzip, unzip the Tomcat installation package to /usr/local/tomcat
tar -zxvf /root/install_bag/apache-tomcat-7.0.104.tar.gz -C ./
3. Start, run the startup script under bin
cd bin
./startup.sh
4. Verify the startup, open the URL in your computer browser: your public network ip: 8080 is
successful: