配置阿里云项目发布centos6.8

1 配置jdk

sudo mkdir developer

cd developer/

sudo mkdir setup
cd setup/

sudo wget http://learning.happymmall.com/jdk/jdk-7u80-linux-x64.rpm或者直接去jdk官网

sudo rm jdk-7u80-linux-x64.rpm
sudo chomd 777 jdk-7u80-linux-x64.rpm

sudo rpm -ivh jdk-7u80-linux-x64.rpm

cd /user/java/jdk0000

sudo vim/etc/profile

 export JAVA_HOME=/usr/java/jdk1.7.0_80

export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export MAVEN_HOME=/developer/apache-maven-3.0.5
export NODE_HOME=/usr/local/node-v4.4.7-linux-x64
export RUBY_HOME=/usr/local/ruby export CATALINA_HOME=/developer/apache-tomcat-7.0.73
 export PATH=$PATH:$JAVA_HOME/bin:$CATALINA_HOME/bin:$MAVEN_HOME/bin:$NODE_HOME/bin:/usr/local/bin:$RUBY_HOME/bin 
 export LC_ALL=en_US.UTF-8

生效

source /etc/profile

查看java

java -version

2 tomcat

cd developer/

sudo wget http://learning.happymmall.com/tomcat/apache-tomcat-7.0.73.tar.gz

sudo tar -zxvf apache .......

sudo mv apache-    setup/

cd setup/ 

ll

cd apache-

ll

sudo vim conf/server.xml

/8080

/nuo

URIEncoding="UTF-8"  

:wq

cd bin

./startup.sh

sudo ./startup.sh

cd ..

cd.. 

  sudo  wget http://learning.happymmall.com/maven/apache-maven-3.0.5-bin.tar.gz

sudo tar-zxvf apache-m

sudo mv apache-maven-3.0.5 setup/

sudo mv apache-maven-3.0.5-bin.tar.gz setup/

mv setup/apache-maven-3.0.5 ./

mvn -version

sudo yum -y install vsftpd

cd /

sudo mkdir product

cd product/

ll

sudo mkdir ftpfile

useradd ftpuser -d/product/ftpfile -s/sbin/nologin

sudo chown -R ftpuser.ftpuser ./ftpfile/

sudo passwd ftpuser

cd /etc/vsftpd/

sudo vim chroot_list 

sudo vim /etc/selinux/config

sudo setsebool -p ftp_home_dir 1

sudo mv vsftpd.conf  vsftd.conf.bak

sudo wget http://learning.happymmall.com/vsftpdconfig/vsftpd.conf

cd /developer

cd setup/

wget http://learning.happymmall.com/nginx/linux-nginx-1.10.2.tar.gz

yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel

sudo tar -zxvf linux-nginx-1.10.2.tar.gz

cd nginx-1.10.2/

sudo ./configure

sudo make

 

whereis nginx

cd /usr/local/nginx

cd conf

sudo vim nginx.conf

配置阿里云项目发布centos6.8_第1张图片

sudo mkdir vhost 

cd vhost/

sudo wget http://learning.happymmall.com/nginx/linux_conf/vhost/admin.happymmall.com.conf

sudo wget http://learning.happymmall.com/nginx/linux_conf/vhost/s.happymmall.com.conf

sudo vim happymmall.com.conf

cd..

ll

cd sbin/

ll

./nignx

cd conf/

 

 

 

你可能感兴趣的:(配置阿里云项目发布centos6.8)