Linux Jdk+mysql+tomcat+nginx Project Deployment steps

Source: Internet
Author: User

1, download Linux jdk1.7.0_79.tar.gz;

: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

2, download a file Upload tool, I like to use WINCP, connected to the CentOS server, you must log in with the root user to upload files, if you use other users, you can log in, but not upload files, no permissions

Create a new Java folder under the/usr/local of the Linux system

Cd/usr/local

Makdir/java

Upload the file to the Java folder and unzip it.

Tar xvf jdk1.7.0_79.tar.gz;

3, the last step, enter/etc

Cd/etc

VI Profile

Then press I to enter insert mode,

At the end of the profile, add

Export java_home=/usr/local/java/jdk1.7.0_79

Export path= $JAVA _home/bin: $PATH

Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar

One final step

Restarting the machine

Reboot

-------------------------------------------------------------------------------

Install MySQL
The most complete version of the CentOS 6.5/6.6 installation MySQL 5.7 tutorial
STEP1: Check whether the system comes with the installation of MySQL

#yum List Installed | grep MySQL
STEP2: Delete the system's own MySQL and its dependencies
Command:

# yum-y Remove mysql-libs.x86_64
STEP3: Add a RPM source to CentOS and select a newer source
Command:

#wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
#yum Localinstall mysql-community-release-el6-5.noarch.rpm
# Yum Repolist All | grep MySQL
# Yum-config-manager--disable mysql55-community
# Yum-config-manager--disable mysql56-community
# Yum-config-manager--enable MYSQL57-COMMUNITY-DMR
# Yum Repolist enabled | grep MySQL
STEP4: Installing the MySQL server
Command:

# yum Install Mysql-community-server
STEP5: Start MySQL
Command:

#service mysqld Start
STEP6: Check if MySQL is self-booting and set on self-boot
Command:

# chkconfig--list | grep mysqld
# Chkconfig Mysqld on
Step7:mysql Security Settings
Command:

# mysql_secure_installation
STEP8: Modify MySQL login password
Command:

# grep ' temporary password '/var/log/mysqld.log//view password

Then reset the password
# mysql_secure_installation

Password rules: Uppercase and lowercase numbers must be combined (example: [email protected]#$5)

Then you will be prompted to fill in Y or N, the order is y-y-y-n-n-y OK
Just log in.
Mysql-uroot-p

---------------------------------------------

Tomcat only needs to be decompressed after uploading via FTP.

--------------------------------------------
Installing Nginx
Nginx Installation Tutorial
1, installation of Nginx

Configuration in CentOS 6 environment

STEP1 Download Gcc:yum Install gcc-c++

STEP2 download Pcre:yum install-y pcre pcre-devel

STEP3 download Zlib:yum install-y zlib zlib-devel

STEP4 download Openssl:yum install-y OpenSSL openssl-devel

STEP5 Nginx Source Bundle: http://nginx.org/en/linux_packages.html

The first step: Upload the Nginx source package to the Linux server

Step two: Unzip the source package. TAR-ZXF nginx-1.8.0.tar.gz

Step three: Enter the nginx-1.8.0 folder. Use the Configure command to create the makefile.

Create make (makefile), if not made is not compiled

Fourth step: The parameters are set as follows to view the final Appendix:

./configure \

--prefix=/usr/local/nginx \ Compile specified installation directory after

--pid-path=/var/run/nginx/nginx.pid \

--lock-path=/var/lock/nginx.lock \

--error-log-path=/var/log/nginx/error.log \

--http-log-path=/var/log/nginx/access.log \

--with-http_gzip_static_module \

--http-client-body-temp-path=/var/temp/nginx/client \

--http-proxy-temp-path=/var/temp/nginx/proxy \

--HTTP-FASTCGI-TEMP-PATH=/VAR/TEMP/NGINX/FASTCGI \

--HTTP-UWSGI-TEMP-PATH=/VAR/TEMP/NGINX/UWSGI \

--http-scgi-temp-path=/var/temp/nginx/scgi

Note: The temp file directory is specified as/var/temp/nginx on the top, and you need to create a temporary and Nginx directory under/var

Copy the above configuration information and paste it directly into the window.

Fifth step: Make

Sixth step make Install

To install

Installation Successful

1.1 Nginx Start-up and shutdown
1.1.1 Start
In the Nginx directory there is a sbin directory, the Sbin directory has an nginx executable program.

./nginx or start Nginx start Nginx Service

./nginx-s Reload Restart Nginx Service

Linux Jdk+mysql+tomcat+nginx Project Deployment steps

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.