Tencent Cloud Centos7 install java server

Since I needed a java server on the external network, I used Tencent Cloud to build one.
I built this only for learning, after all, the security is not high.
Below is the process I built.

First, if you have not [registered Tencent Cloud Account] (https://partners.cloud.tencent.com/invitation/1000062081375d1c9bfd9e7b5), you must first register and complete the real-name authentication. Before purchasing Tencent [Cloud Server] (https://cloud.tencent.com/product/cvm?from=10680) and other cloud products, remember to receive (Voucher Package)

Install mysql database###

yum install mysql mysql-devel mariadb-server mariadb –y

Start the database###

systemctl start mariadb

Set database password###

mysqladmin -u root password "password"

Configure mysql

Mysql configuration file is /etc/my.cnf

vim /etc/my.cnf

Add coding configuration at the end

#[ mysql]]default-character-set=utf8

Install JDK

Upload the new jdk-7-linux-x64.rpm software to /root, and perform the following operations:

rpm –ivh jdk-7-linux-x64.rpm

Configure environment variables###

which java

ls –lrt /usr/java/default/bin/java

/usr/java/default ---- is the path of our java.

vim /etc/profile

Configure environment variables###

export JAVA_HOME=/usr/java/defaultexport PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

Esc → :wq save

Environment effective###

source /etc/profiel

Install Tomcat

tar –zxvf apache-tomcat-7.0.29.tar.gz

apache-tomcat-7.0.29 renamed to tomcat

mv apache-tomcat-7.0.29 tomcat

Modify the default port 80

Open the tomcat configuration file

vi /tomcat/conf/server.xml

After opening the Tomcat configuration file, press/8080 to quickly retrieve

Modify the port, press i to change all 8080 to 80

Press: wq to save and exit

Restart tomcat

# /tomcat/bin/shutdown.sh
# /tomcat/bin/startup.sh

This completes the configuration of the java server of Tencent centos7 host.

If you need a jdk or tomcat installation package, you can go to "centos7 build javaweb server tomcat" to download. I used it before.

Well, I should also do other things.

Recommended Posts

Tencent Cloud Centos7 install java server
Tencent Cloud Centos7 install java server
Tencent Cloud Centos install jdk8
Tencent Cloud Centos install nginx
Tencent Cloud CentOS7 install LNMP+wordpress
CentOS 7 install Java 1.8
CentOS 7 install Java 1.8
Install Java on Centos 7
CentOS 7 install JAVA environment (JDK 1.8)
CentOS6.5 install Java 8 and Tomcat8
Install Java JDK8 under CentOS6
CentOS6.5 install Java 8 and Tomcat8
CentOS6.5 install Java 8 and Tomcat8
install virtualbox on centos server
Install Nginx server on CentOS 7
How to install Java on CentOS 8
CentOS8 install jdk8 / java8 tutorial (recommended)
Install Percona Server database (in CentOS 8)
Install java in yum mode in Centos
1.5 Install Centos7
CentOS7 install and use SQL Server
Centos7 build java web server tomcat
CentOS 7 install gogs git code server
Centos6 install Python2.7.13
Centos7.3 install nginx
CentOS7.2 install Mysql5.7.13
CentOS install Redmine
Centos7 install Python 3.6.
CentOS7 install MySQL
Centos7 install protobuf
CentOS 7 install Docker
CentOS 7.4 install Zabbix 3.4
CentOS7 install Docker
Centos6.5 install Tomcat
CentOS install Python 3.6
Vmware install CentOS6
centos7 install docker-ce 18.01.0
CentOS 7.2 install MariaDB
CentOS 7 install Hadoop 3.0.0
Centos7 install Python2.7
Centos 7.6 install seleniu
CentOS 7.3 install Zabbix3
Centos7 install LAMP+PHPmyadmin
CentOS install mysql
CentOS install openjdk 1.8
CENTOS6.5 install CDH5.12.1 (1)
CentOS install PHP
CentOS6 install mist.io
Centos7 install Docker
CentOS7 install mysql
centOs install rabbitMQ
CentOS 7 install MySQL 5.6
Centos7 install Nginx
CentOS6.5 install CDH5.13
Centos7 install docker18
Centos install Python3
centos7 install docker
CentOS install jdk
centos7 install nginx-rtmp
CentOS8 install MySQL8.0
Centos6.3 install KVM