1. 程式人生 > >配置阿里雲專案釋出centos6.8

配置阿里雲專案釋出centos6.8

1 配置jdk

sudo mkdir developer

cd developer/

sudo mkdir setup
cd setup/

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 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 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

cd /developer

cd setup/

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

sudo mkdir vhost 

cd vhost/

sudo vim happymmall.com.conf

cd..

ll

cd sbin/

ll

./nignx

cd conf/