1. Start by installing the virtual machine first
01. First Open the VMware virtual machine.
02. Then, go to the home page and click on the "Create a New Virtual machine" column and a form will pop up.
03. Then, select "Typical" (classic), click "Next"-"Select the" I'll install the operating system later "column, click" Next "-" Linux "in the above section, select" Ubuntu 64-bit ", click on" Next "
-click "Browse ..." in the "Location" column. Select the path you installed, click "Next"-click "Next"-click "Customize Hardware ..." will pop up a new form, the floppy (floppy disk) removed; click "New CD/DVD" to select "Use ISO image" "File" column to import ubuntu ISO image; Click "Memory" to expand your installation memory according to the actual situation, select "Network Adapter" column Select "Bridged" (bridge mode), click "Close"
-"Final Click" Finish "to complete the installation.
04, waiting for the success of the ban map installation, the final configuration of the basic configuration of the Bantu system, the time input "Beijing", the language do not move select "Engilsh (US)".
2. Install SSH (remote Connection network)
01. In the Bantu system, "Ctrl" + "Alt" + "T" opens the terminal shortcut.
02, in the terminal input a command to install SSH: "sudo apt-get install Openssh-server".
03. Then, confirm that the Sshserver is started: (or with "NETSTAT-TLP" command)
Ps-e | grep ssh
04 (*), ssh-server configuration file located in/Etc/ssh/sshd_config, where you can define the SSH service port, the default port is 22, you can define yourself as a different port number, such as 222. Then restart the SSH service:
Sudo/etc/init.d/ssh Resart (Note: This step can not be set, because the port number currently used is 22)
Note: A network connection is required to download the installation.
3, install the jdk1.8 version of the installation
Note: Since Ubuntu can only register a normal user and cannot register the root user, the import of the "jdk-8u11-linux-x64.tar.gz" installation package can only be copied to the normal user's permissions. (Use WINSCP tool to access the Bantu system, username "ROOT1", password "123456")
1. First, use the WINSCP tool to log in to the Bantu system, and then copy the (Linux) JDK installation package to the/HOME/ROOT1 directory.
2, then, (in the Ubuntu terminal operation) First cut into the/usr/local directory, the creation of the Java Folder command: "sudo mkdir java"
3. Then, copy the JDK installation package to the/usr/local/java directory with the command: "sudo cp Jdk-8u11-linux-x64.tar.gz/usr/local/java".
4, then, the JDK compression package decompression, but note that: because you are under the root user decompression, you need to cut into the root user to extract, the command is "su", the Compression Package decompression command: "TAR-ZXVF Jdk-8u11-linux-x64.tar.gz ", the extracted folder name is" Jdk1.8.0_11 ".
5, if you forget the root user's password, you can first modify the root user's password, and then enter the command is: (1) SU (2) sudo passwd (3) The first time you enter a password, re-enter the password, and then will pop up the password successfully successfully. (4) Set password successfully!
6, configure the environment variables, (1) Open the/etc/profile file, the command is: sudo gedit/etc/profile
7. Add the information in the configuration file as:
Export Java_home=/usr/local/java/jdk1.8.0_11
Export JRE_HOME=/USR/LOCAL/JAVA/JDK1.8.0_11/JRE
Export classpath=.: $JAVA _home/lib: $JRE _home/lib: $CLASSPATH
Export path= $JAVA _home/bin: $JRE _home/bin: $JAVA _home: $PATH
8, the general change/etc/profile file, need to restart the machine to take effect. The command entered is: "Source/etc/profile"
9, check whether the Java environment variable is configured successfully, enter the command is: "Java-version"
4, Installation Tomcat7
1. First, use the WINSCP tool to log in to the Bantu system, and then copy the (Linux) JDK installation package to the/HOME/ROOT1 directory.
2. Then, copy the Tomcat installation package to the/usr/local/java directory with the command: "sudo cp Apache-tomcat-7.0.67.tar.gz/usr/local/java".
3, then, the Tomcat compression package decompression, but note that: because you are under the root user decompression, you need to cut into the root user to extract, the command for "Su", the Compression Package decompression command: "TAR-ZXVF Apache-tomcat-7.0.67.tar.gz ", the extracted folder name is" apache-tomcat-7.0.67 ".
4. Then, in the terminal into the bin file under Tomcat7, edit the catalina.sh file, the command is: "sudo gedit catalina.sh"
5. Then, in the open file, find the following:
Cygwin=false
Os400=false
Darwin=false case "' uname '" in
cygwin*) Cygwin=true;
os400*) Os400=true;
darwin*) Darwin=true;
6. Then, add the following content to the above content:
Java_home=/usr/local/java/jdk1.8.0_11
Java_opts= "-server-xms512m
-xmx1024m-xx:permsize=600m
-xx:maxpermsize=600m
-dcom.sun.management.jmxremote "
7, (This step can not operate, the port number is: 8080), tomcat7.0.5 ports (the general tomcat7.0.5 port defaults to 8080), if a conflict occurs, you can modify the following files.
In the Tomcat7/conf/server.xml file:
<connector port= "8888"
Protocol= "http/1.1" connectiontimeout= "20000" redirectport= "8443"/>
Change it to 8888, or whatever it is (use 8888 here).
8. Enter the Tomcat7/bin folder. The input command is "sudo./startup.sh"
9. To view the boot log of tomcat, enter the logs folder under the Bin sibling directory, and the input command is: "Tail-f catalina.out".
10, use the browser to access the Tomcat page, the URL is: http://ip:8080, enter the page after clicking "Manager App" will appear 401 unauthorized error, you need to set Tomcat username and password
11, first, enter into the/usr/local/java/apache-tomcat-7.0.67/conf directory, edit the Tomcat-user.xml file, enter the command: "sudo gedit tomcat-user.xml", A file modification form will pop up, adding the contents of the <tomcat-users></tomcat-users> in the file:
<role rolename= "Manager-gui"/>
<role rolename= "Manager-script"/>
<role rolename= "Manager-jmx"/>
<role rolename= "Manager-status"/>
<user username= "admin" password= "admin" roles= "Manager-gui,manager-script,manager-jmx,manager-status"/>
5, MySQL5.6 version of the Database manual installation (network version)
1, first, the installation of MySQL5.6 database before the preparation of some work, MySQL dependent package installation (libaio1.so) if installed can be omitted:
sudo apt-get install Libaio-dev
sudo apt-get install cmake Libncurses5-dev Bison g++ (do not choose, do it if there is a problem)
2, then, install the MySQL source code needed to compile the library
sudo apt-get install cmake (refers to installing the compiler)
sudo aptitude Install Bison
sudo apt-get install build-essential Libncurses5-dev
3, groups and users to create:
sudo groupadd MySQL #添加组
sudo useradd-r-g MySQL mysql# add users under the created group
4. Then, copy the mysql-5.6.28-linux-glibc2.5-x86_64.tar.gz compressed package to the/HOME/ROOT1 directory (normal user) by using the WinSCP tool
5, then, copy the/home/root1/mysql-5.6.28-linux-glibc2.5-x86_64.tar.gz compressed package to the/usr/local directory (root user), need to cut into usr/ The local directory executes the command as: "sudo cp mysql-5.6.28-linux-glibc2.5-x86_64.tar.gz/usr/local"
6, then, cut into the/usr/local directory, the compression package decompression, decompression command: "sudo tar-zxvf mysql-5.6.28-linux-glibc2.5-x86_64.tar.gz", after the extracted file name: " Mysql-5.6.28-linux-glibc2.5-x86_64 ".
7. Then, under the/usr/local directory, rename the extracted file mysql-5.6.28-linux-glibc2.5-x86_64 to: MySQL, command: "sudo mv mysql-5.6.28-linux-glibc2.5-x86_64 MySQL ".
8. Then, after tapping into the/usr/local/mysql folder, execute the following command:
->chown-r MySQL.
->chgrp-r MySQL.
---Modify current directory owner for MySQL User: Execute command: Chown-r mysql:mysql.
Install database: The Execute command is:./scripts/mysql_install_db--user=mysql
---Modify the current directory owner to be the root user: Execute command: Chown-r root:root.
---Modify the current data directory owner for MySQL User: Execute command chown-r mysql:mysql data (Note: View user's Permissions command as: LL)
--Start MySQL service and add boot MySQL service: Add Boot: Execute command: CP Support-files/mysql.server/etc/init.d/mysql, put startup script on boot initialization directory
->sudo Degit/etc/init.d/mysql Plus
Basedir=/usr/local/mysql
Datadir=/usr/local/mysql/data
-Start MySQL Service: Execute command: Service MySQL start
Execute command: ps-ef|grep mysql see MySQL service description started successfully
9. Finally, the root user password of MySQL is changed and root is initialized to null: The execution command is:./bin/mysqladmin-u root password ' password '
10. How to get into MySQL database? First cut into the/usr/local/mysql directory, and then execute the command: Bin/mysql-u root-p, then the "Enter Password:", and finally, enter the password is "123456"
11. After entering the MySQL database, add the remote Access User,mysql> (the command entered is:) grant all on *. * to [email protected] '% ' identified by ' 123456 ';
Mysql>flush privileges;
12, can be queried to observe the percentage of the rights of the user exists,mysql>;
13. Add Mysql/bin to Path/etc/profile
Export Mysqlhome=/usr/local/mysql
Path= $PATH: $HOME/bin:;
$mysqlhome/bin
Install JDK, Tomcat, MySQL under Ubuntu os