In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
The following content mainly brings you 1.1. System how to deploy instructions, the knowledge mentioned, different from books, are summed up by professional and technical personnel in the process of contact with users, with a certain value of experience sharing, hoping to bring help to the majority of readers.
1.1. System deployment description 1.1.1. Environmental requirements
The system is a standalone deployment application and requires the following software support:
RET HAT 64-bit operating system
Apache Tomcat 7.0.82:WEB CVM
JRE1.7:Java operating environment
Mysql5.5 or above database
1.1.2. Installation media
Download the corresponding resources from Baidu cloud disk ead.zip: link: https://pan.baidu.com/s/1sl4vQ81 password: d7rf
The system installation includes the following program files: (the following programs are all 64-bit versions)
-Web container: apache-tomcat-9.0.2.tar.gz
-Java operating environment: jdk-8u11-linux-x64.tar.gz
-Mysql database: mysql-5.7.12-1.el6.x86_64.rpm-bundle.tar
1.1.3. Installation step 1.1.3.1 extract ead.zip package the following operations have been unzipped ead.zip package in the root directory shall prevail. Unzip ead.zip enters the ead directory: cd / ead1.1.3.2 install MySQL database
1. Shut down the MySQL service before installation
Service mysqld stop
two。 Detect if MySQL is installed, and if so, uninstall it:
Rpm-qa | grep mysql
If there is a mysql process, execute the following command:
Rpm-e-- nodeps process name
Note: delete all processes checked out by rpm-qa | grep mysql command
3. Detect the old version of the MySQL directory and delete
Find /-name mysql
Rm-rf / var/lib/mysql
4. Decompress the mysql package
Cd / ead/mysql/
Tar-xf mysql-5.7.12-1.el6.x86_64.rpm-bundle.tar
5. Install the mysql installation package sequentially
Rpm-ivh mysql-community-common-5.7.12-1.el6.x86_64.rpm
Rpm-ivh mysql-community-libs-5.7.12-1.el6.x86_64.rpm
Rpm-ivh mysql-community-devel-5.7.12-1.el6.x86_64.rpm
Rpm-ivh mysql-community-client-5.7.12-1.el6.x86_64.rpm
Rpm-ivh mysql-community-server-5.7.12-1.el6.x86_64.rpm
6. Modify the my.cnf file
Vi / etc/my.cnf
Add the following at the end of the file:
Skip-grant-tables
Lower_case_table_names=1
Sql-mode= NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
7. Start and log in to mysql
Service mysqld start
Mysql-u root-p
8. Modify the password
Mysql > use mysql
Mysql > update user set password_expired='N' where user='root'
Mysql > update user set authentication_string=password ('ShenHua@2017') where user='root'
Mysql > exit
9. Modify my.conf
Vi / etc/my.cnf
Delete at the end of the file:
Skip-grant-tables
10. Restart the database and log in to mysql
Service mysqld restart
Mysql-u root-p
ENTER PASSWORD:ShenHua@2017
11. Create databases and tables
Mysql > create database pm_app
Mysql > use pm_app
Mysql > source / ead/pm_app.sql
Mysql > create database pm_ead
Mysql > use pm_ead
Mysql > source / ead/pm_ead.sql
Mysql > exit
1.1.3.3 install the Java runtime environment
1. Detect if jdk is installed and delete
Java-version
Rpm-qa | grep java
If there is a jdk process, execute the following command:
Rpm-e-- nodeps JAVA process name
Note: delete all processes checked out by rpm-qa | grep java command
two。 Extract the jdk installation package
Cd / ead/
Tar-zxvf jdk-8u11-linux-x64.tar.gz
3. Configure environment variables
Vi / etc/profile
Add the following at the end of the file:
Export JAVA_HOME=/ead/jdk1.8.0_11
Export PATH=$JAVA_HOME/bin:$PATH
Export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
4. Make the environment variable effective
Source / etc/profile
5. Check to see if java is installed successfully
Java-version
If java-version "1.8.011" is displayed, the installation is successful.
1.1.3.4 install ApacheTomcat
1. Decompress the tomcat package
Cd / ead/
Tar-xf apache-tomcat-9.0.2.tar.gz
2.tomcat deployment war package
Cd apache-tomcat-9.0.2/
New project catalogue
Mkdir webapps_pm
Cd webapps_pm/
Mkdir war
Move the war package to the project directory
Cd / ead/
Mv gbros-web.war / ead/apache-tomcat-9.0.2/webapps_pm/war/
3. Modify the conf/server.xml of tomcat
Vi / ead/apache-tomcat-9.0.2/conf/server.xml
Modify the coded character set and port number and HOST
Note: the red font is the modified content
4. Start tomcat
Cd / ead/apache-tomcat-9.0.2/bin/
Sh startup.sh
1.1.3.5 verify that the program executes successfully
Open a browser and enter localhost/pm/
1.1.4. Program upgrade steps
Download the corresponding resources from Baidu cloud disk gbros-web.war: link: https://pan.baidu.com/s/1sl4vQ81 password: d7rf
1. Delete the old war package under tomcat
Rm-rf / ead/ apache-tomcat-7.0.82/webapps_pm/war/gbros-web.war
2.tomcat updates the latest program war package
Mv gbros-web.war / ead/apache-tomcat-7.0.82/webapps_pm/war/
3. Delete the ROOT directory under tomcat
Rm-rf / ead/ apache-tomcat-7.0.82/webapps_pm/ROOT/
4. Stop program
Cd / ead/apache-tomcat-7.0.82/bin/
Sh shutdown.sh
5. Check to see if the program stops
Ps-ef | grep java
If present, execute:
Kill-9 process number
6. Startup program
Sh startup.sh
For the above about 1.1. Instructions on how to deploy the system. If you have more information to know, you can continue to pay attention to the innovation of our industry. If you need professional answers, you can contact the pre-sale and after-sale ones on the official website. I hope this article can bring you some knowledge updates.
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.