# wget jre-8u60-linux-x64.rpm http://javadl.sun.com/webapps/download/AutoDL?BundleId=109699
java
# rpm -ivh jre-8u60-linux-x64.rpm
mysql
# java -version
linux
# wget apache-tomcat-7.0.64.tar.gz http://mirrors.cnnic.cn/apache/tomcat/tomcat-7/v7.0.64/bin/apache-tomcat-7.0.64.tar.gz
nginx
# tar -zxvf apache-tomcat-7.0.64.tar.gz
web
解壓後無需安裝操做,直接到tomcat的bin目錄下啓動tomcat
# tar -zxvf apache-tomcat-7.0.64.tar.gz
# ./startup.sh
sql
# wget http://nginx.org/download/nginx-1.9.1.tar.gz
apache
解壓後,進入Nginx目錄
# ./configure
# make
# make install
# make clean
tomcat
#whereis nginx (查看Nginx安裝到了哪一個目錄)
#/usr/local/nginx/sbin/nginx -t (查看配置信息是否正確)
#/usr/local/nginx/sbin/nginx (啓動Nginx)
app
yum install mysql-server
yum install mysql-devel
yum install mysql
webapp
service mysqld start 啓動
service mysqld stop 中止
service mysqld restart 重啓
mysqladmin -u root password root 建立root管理員
mysql -u root -p root 登錄
grant all privileges on *.* to 建立的用戶名 @"%" identified by "密碼"; 支持遠程訪問