In order to develop J2ee, you need to build the j2ee development environment first. This article will give a detailed introduction to the Ubuntu system installation and build J2EE development environment. Interested friends can come and understand.
First, download
1.jdk
2.tomcat
3.mysql
4.mysql workbench < Br>
5.eclipse javaee
Second, install &&configure environment variables
1.jdk 7
Extract tar -xvf jdk-7u25-linux -x64.tar.gz
Move to /opt/directory sudo mv jdk1.7.0_25//opt/
Configure environment variables
PATH=“/usr /local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/jdk1.7.0_25/bin”
CLASS_PATH=“/opt/jdk1.7.0_25/lib”
JAVA_HOME=“/opt/jdk1.7.0_25”
Execute java, javac command:
sudo update-alternatives --install /usr/bin/java java /opt/jdk1.7.0_25/bin/java 300
sudo update-alternatives --install /usr/bin/Javac javac /opt/jdk1.7.0_25/bin/javac 300
Select the default version:
sudo update-alternatives --config java
Tests are normal:
java java -version javac
2.tomcat
tomcat is easier to install, unzip, move to opt, tomcat/bin/has a startup and shutdown script, run it.
Note the permissions issue.
3.mysql 5.6
Install the tarball mysql-5.6.13-linux-glibc2.5-x86_64.tar.gz
Unzip tar -zxvf mysql-5.6. 13-linux-glibc2.5-x86_64.tar.gz
Rename mv mysql-5.6.13-linux-glibc2.5-x86_64 mysql5.6
Transfer sudo mv mysql5.6 /opt/
Enter mysql folder cd mysql5.6/
Add mysql user group and user:
sudo groupadd mysql
sudo useradd -r -g mysql mysql
Change the user and user group to which the mysql5.6 folder belongs:
sudo chown -R mysql .
sudo chgrp -R mysql .
Execute the installation script:
sudo scripts/mysql_install_db --user=mysql
Error: Installing MySQL system tables. . ./bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
Need to install libaio.so.1, execute:
sudo apt-get install libaio-dev
After installing libaio, run the mysql installation script to install successfully
Change the permissions back, only keep the data directory as mysql user
sudo chown -R root .
sudo chown -R mysql data
Copy the mysql configuration file to the etc directory (global configuration)
sudo cp support-files/my-default.cnf /etc /my.cnf
Start mysql in Mysql5.6 directory:
/opt/mysql5.6$ sudo bin/mysqld_safe --user=mysql&
Initialize mysql Password:
sudo bin/mysqladmin -u root password ‘111111’
Modify the basepath of mysql.server
vim support-files/mysql.server is the current directory The default path of the file is: /usr/local/mysql. Lazy students can copy to this directory from the beginning,
Previous12Next page Total 2 pages
In Linux, users sometimes encounter garbled characters after SecureCRT connects to
VNC is an excellent remote control tool software. How does VNC control remotely und
Linux system can use the command line to perform various operations compared with other systems, whi
SVN is a source code version control tool that uses the command line on the server.
Linux to increase the resolution of VirtualBox
Usage of the Linux tail command
How Linux changes the MAC address in the virtual machine
How to use valgrind to check memory in Linux system
What commands are used for Linux system monitoring?
How to change the resolution of Red Flag Linux6.0sp1 system
Steps to install Tmux software on CentOS
Linux version of the command to install BleachBit Daquan
How to solve the error when modifying the Locale in the Ubuntu system?
When will the official version of Windows 10 be upgraded? Starting at 0 o'clock in each country
Win 7 notebook connection wifi can not enter the password solution (graphic tutorial)
How to remove the hard disk write protection under Win7?
Win10 technology preview version of the black screen solution after booting
Win7/Win8.1/Win10 installer error 2502/2503 solution
The remote desktop screen can't be full screen. There is always a solution for the scroll bar.
Domestic netizens apply for Win7 Party Microsoft audit through
Teach you to easily speed up Windows 7 broadband Internet access
Win7 uses CMOS to open advanced power management methods
Follow the little fox Ou Peng browser (Opera) native support PDF reader