Generally speaking, the Linux system is actually quite easy to use except for the invisible interface, but it is indeed much easier to use than Window, no nonsense, just talk about the steps to build the environment!
Install Nginx to compile and run the environment
Reference blog: http://www.linuxidc.com/Linux/2016-09/134907.htm
There is also the notes of Chuanzhi podcast
Tomcat: Installation steps under Linux:
step:
1 ) Upload Tomcat to Linux
2 ) Unzip Tomcat to /usr/local
3 ) Open Linux port 8080 for external access
/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
/etc/rc.d/init.d/iptables save
4 ) Start and shut down Tomcat
Enter tomcat's bin to start: ./startup.sh
Enter tomcat's bin to shut down: ./shutdown.sh
Note: rpm and software-related commands are equivalent to software assistant management software under window
step:
1 ) Check whether java has been installed on the current Linux system
Type rpm -qa | grep java
2 ) Uninstall two openJDK
Type rpm -e --nodeps to uninstall the software
3 ) Upload jdk to linux
4 ) Install the plug-in needed for jdk operation yum install glibc.i686 (optional)
5 ) Unzip jdk to /usr/local under tar –xvf jdk-7u71-linux-i586.tar.gz –C /usr/local
6 ) Configure jdk environment variables, open the /etc/profile configuration file, and copy the following configuration into it
JAVA_HOME=/usr/local/jdk1.7.0_71
CLASSPATH=.:$JAVA_HOME/lib.tools.jar
PATH=JAVAHOME/bin:PATH
export JAVA_HOME CLASSPATH PATH
7 ) Reload the /etc/profile configuration file source /etc/profile
step:
1 ) View the mysql that comes with CentOS
Type rpm -qa | grep mysql
2 ) Uninstall the built-in mysql
3 ) Upload Mysql to linux
4 ) Install mysql dependencies (optional)
yum -y install libaio.so.1 libgcc_s.so.1 libstdc++.so.6
yum update libstdc++-4.4.7-4.el6.x86_64
5 ) Unzip Mysql to the mysql directory under /usr/local/ (the mysql directory needs to be created manually)
cd /usr/local
mkdir mysql
tar -xvf MySQL-5.6.22-1.el6.i686.rpm-bundle.tar -C /usr/local/mysql
6 ) Install mysql under /usr/local/mysql
Install the server side: rpm -ivh MySQL-server-5.6.22-1.el6.i686.rpm
Install the client: rpm -ivh MySQL-client-5.6.22-1.el6.i686.rpm
7 ) Start mysql
service mysql start
8 ) Add mysql to the system service and set it to start
Add to system service: chkconfig --add mysql
Automatic start: chkconfig mysql on
9 ) Log in to mysql
After mysql is installed, a temporary random password will be generated, and the storage location is /root/.mysql_secret
msyql –u root -p
10 ) Modify the mysql password
set password = password('root');
11 ) Open mysql remote login
By default, mysql does not support remote login to mysql for security reasons, so you need to set the permission to enable remote login to mysql
Enter the following command after logging in to mysql:
grant all privileges on . to 'root' @'%' identified by 'root';
flush privileges;
12 ) Open Linux's external access port 3306
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
/etc/rc.d/init.d/iptables save --- permanently save the modification to the firewall
Recommended Posts