1, environment preparation:
1-1, centos 64 bit (I install the virtual machine system), the network configuration and the step of mounting the former two have been recorded,
1-2, JDK version 1.8
1-3, tomcat archive
1-4, CRT remote connection means (using other xshell ....), winscp (used to upload files to a tool on linux)
2, system installation and configuration skip, download JDK, the following link (select on-demand version) download linux version:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Download tomcat, I downloaded version: apache-tomcat-8.5.47.tar
https://tomcat.apache.org/download-80.cgi#8.5.47 , chose this package
Download CRT, installed after downloading a fool can be opened at the following link:
Links: https://pan.baidu.com/s/1Xqq39E35aogJx3RiilB65g
extraction code: nxew
download WinSCP, link as follows:
https://sourceforge.net/projects/winscp/files/latest/download
3, install [JDK]
Centos system will start using crt, winscp remote connection, first install the JDK, unzip the downloaded JDK on Windows, use winscp uploaded to the / usr / local path
Select the file can be transmitted directly to the right drag
Crt linux system using a remote connection, the terminal is equivalent to the port in the system, crt open, a new session, select SSH2
After receiving pop-up box to enter a password
After a successful connection to the JDK given the highest authority, to avoid permissions issues will be behind the blocking of the installation process, crt connected on linux systems, command operations can be carried out directly
(1) Switch to the top-level directory: cd ~
(2) then switch to the parent directory: cd ..
(3) cut into usr / local directory: cd / usr / local
(4) giving permission JDK (up to 777): chmod 777 -R jdk1.8.0_231
Configuring JDK environment variables:
(1) top-level directory handover: cd ~
(2) switching the parent directory: cd ..
(3) switch etc directory: cd / etc
(4) Edit profile file: vi / profile
(5) to start the edit mode by i, is positioned at the end of profile
(6) arranged JDK environment variables, input sentence:
export JAVA_HOME = / usr / local / jdk1.8.0_231 (this is the installation path jdk)
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
Save wq: Press Esc Press
You can use winscp see if the path of the
Set to take effect the environment: input source profile
Check whether the installation was successful: Enter java -version, shows the installed version, the installation is successful
4, the installation [tomcat]
tomcat after downloading decompresses well as under Windows, use winscp transferred to the next linux, path / usr / local, environmental variable settings before you can start tomcat
Tomcat start of the procedure, or the use of crt Remote commands Operation:
(1) switching to top-level directory: cd ~
(2) to switch to the parent directory: cd ..
(3) switch to start the next bin path where the command: cd /usr/local/apache-tomcat-8.5.47 (directory for where)
(4) gives the highest authority in the tomcat bin file (777) chmod 777 -R bin
(5) changes to the next bin path, LS view the file, you can view the ./startup.sh is used to start the tomcat
(6) The default port is 8080
(7) recommended to turn off the firewall, to avoid the appearance can not access the back (I was permanently closed, but also to avoid the next time you start to go off)
Turn off the firewall command: service iptables stop (after the restart will still open the firewall)
Permanently turn off the firewall command: chkconfig iptables off
View firewall running status: service iptables status
Verify has been successfully installed, you can enter IP on Windows: port, enter tomcat page, verify successful
5, Mysql] [download, online download and install on centos
(1) to the installation path: cd / usr / local
(2) where only the recording line installation, the command: yum install mysql-server, waiting for the installation, to the input Y
(3) successfully completed, start mysql service, the command: service mysqld start, to see if running, the command: service mysqld status
(4) Set boot automatically start mysqld service, the command:
1) add execute permissions: chmod + x /etc/init.d/mysqld
2) added to the service: chkconfig --add mysqld
3) Set the boot: chkconfig mysqld on
(5) After setting, you can reboot restart it, enter the service mysqld status, verify in force
(6) After installing the database, the default root root user login, password is also the default is empty, enter mysql -uroot -p Enter, password empty, press Enter, enter the database
Additional Additional ............
Modify the database user password: access to databases: mysql -uroot -p Enter, then Enter, Note: mysql, the end of the statement must be added; this statement to imply that ended before they can be executed
Switch to the mysql: use mysql
Update User Password: UPDATE mysql.user SET Password = PASSWORD ( 'your password') where USER = 'root';
Refresh permissions: flush privileges;
Then enter the quit mysql, verify that the amendment is successful
Navicat connection with data server linux
(1) log into the database
(2) switch to database mysql
(3) create a user can access linux outside the database server:
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
(4) Refresh permissions: flush privileges;
(5) to Navicat log in, enter the server IP and user password, click on the connection test, you can successfully connect to the database
Navicat search found will be there
Personal note-taking. . . . .