Foreword:
The new project is to upload code - compile - package on Iwork, and the test environment needs QA personnel to deploy. Need to deploy SCF service and WF service. The whole process
is as follows:
1. Products build demand on iwork
2. RD Create a new SVN project, GIT project in icode.58crop.com, the project name and iwork in
svn code submission on iwork - compile and package, and upload the package file to FTP
3QA deploys SCF service
Deploy in the server opt/ directory, search SCF on the wiki, and download the SCF4.2.21 container Log4j2 after the download is successful
rz -e
tar -zxvf scfXXXX.tar.gz
Unzip in the opt directory to generate the SCF directory.
Put it under the /opt/scf/service/deploy/XX project name
The project file in offline .tar.gz generated by RD compilation downloaded on FTP . It includes SCF related configuration files and lib, conf, .jar files, etc.
Use the scf command scf, view the command list, start scf start +servicename (project name)
After the startup is successful, ps -aux |grep scf view the process startup status
FTP account password allftp [email protected]
4.QA deploys WF service
The WF deployment method is the same as the SCF deployment method. Download WFdemo and upload it to /opt/web/ and unzip it. Modify the directory name mv wfdemo xxxx project name
In the FTP address provided by the development, download the offline.tar.gz file, after downloading it locally, upload it to the server project project, delete the webapps and wf files in the demo, and then decompress the offline.tar.gz package, the replacement is successful, Start the service ./restart.sh && tail -f logs/catalina.out
If the directory can be scanned, it means that the service has been started
You can open a browser to access verification in two ways: IP address: port number/home access or domain name: port number/home access
Which of the two methods is used depends on the host name configuration in conf/server.xml. If the domain name is configured, use the domain name to log in. If the IP is configured, use ip to access.
Modify the server.xml file in 3 places 1. Modify the host name 2. Modify the docBase 3. Modify the port number, as shown in the frame.
docBase needs to be changed to the local project webapps path, and pay attention to modify the port number so that there is no conflict.
Download the wf.demo source file com.bj58.wf.demo on the wiki, decompress it, put it in the workspace corresponding to eclipse, refresh the eclipse list, and find the corresponding project file. Execute maven-clean maven-install. After the compilation is successful, you can see the corresponding compiled files in the target folder of the project file. There is a HomeController.class file in the WEB_INF directory /////controllers folder under the mapping file, download this file to the local, and then upload it to the corresponding directory of the test server. Restart the test server and check the catalina.out log. If the directory can be scanned, it means that the service has been started. You can open the browser to access and verify the IP address in two ways: port number/home access or domain name: port number/home access
Which of the two methods is used depends on the host name configuration in conf/server.xml. If the domain name is configured, use the domain name to log in. If the IP is configured, use ip to access. docBase should be changed to the local project webapps path. Modify the port number without conflict.
back up the file
mv file folder (not automatically created)
#install tomcat
yum install tomcat
#May be the tomcat source is wrong, you need to find a new source
Change directory to cluster name
mv bxgzh.58.com jinrong_bx_wf_gzh_front
cd jinrong_bx_wf_gzh_front/
: pwd
#Switch account
kinit liuxg
#Remotely log in to the IP address with root privileges
Copy the tomcat on the remote server to the local directory
scp [email protected]:/opt/soft/tomcat/ /opt/soft/
rm -rf tomcat.pid #Delete tomcat.pid in wfdemo
sh start.sh #Execute start
ps aux | grep tomcat View running tomcat processes
sh restart.sh & tail -f./logs/catalina.out