Server environment to build - Pressure test environment to build


-------------------------------------------------- ---------- server environment to build ------------------------------------- ------------------------------------------
a mounting JDK
#. 1. configuration environment variables (system files .bash_profile) contents of the file jboss account


# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export JAVA_HOME=/app/jdk1.8.0_191
export JRE_HOME=/app/jdk1.8.0_191/jre
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib

export LANG=zh_CN.UTF-8
export LC_CTYPE=zh_CN.UTF-8
export LC_COLLATE=zh_CN.UTF-8


# 2 server migration across the JDK.
Scp -r /app/jdk8.tar.gz [email protected]: /app/jdk8.tar.gz
JBoss axtest @ 2018

# 3. Unpack the JDK
tar -zxvf /app/jdk8.tar.gz

# 4. View JDK version (java -version)
if does not work, perform source .bash_profile



Second, the configuration Nginx
# 1.nginx
Nginx (the root) to modify the source yum /etc/yum.repo.d/nginx.repo (New nginx.repo (New File command vim nginx.repo) and copy the file to the following)
[ Nginx]
name = Nginx the repo
BaseURL = HTTP: //nginx.org/packages/centos/6/$basearch/
gpgcheck = 0
Enabled. 1 =

# 2.yum install nginx (there nginx.conf file after successful installation etc / nginx / nginx.conf)
. # 3 Edit the file vi /etc/nginx/nginx.conf modify user nginx as user root;? ?
# 4.service nginx start (first start)
# 5.root restart service nginx -s reload (follow-up is restarted)


Third, avoid close login:
1. Go to the path: /home/jboss/.ssh execute ssh-copy-id [email protected] sends the public key to B (10.0.0.25) service from service A
2.A the authentication server ssh [email protected]


Four, jenkins deployment
1.jenkins console "System Management" ----- "System Settings" ------ SSH Servers add (AIM: 239 free secret server login is successful)


Fifth, upload claimv2.sh


Six, / app / claimv2 View startup files claimv2.sh (= create the corresponding file APP_HOME / App / claimv2
APP_GC_LOG = / App / Build / logs / gc This file is useless)

 

Guess you like

Origin www.cnblogs.com/sunny-miss/p/11278468.html