Differences between myeclipse and eclipse web project deployment, myeclipseeclipse1. myeclipse web project deployment (release) process 2008-01-18
Create a web project abc under myeclipse. The default settings are as follows:
Project SAVE location: workspace directory \ abc
Source folder: src, which stores all Java class files (. java files) and xml files.
Web root folder: WebRoot, which stores all jsp files, including css and JavaScript. Contains the
code (direct pull)----"2. Compile (optional)----" 3. configuration file put in----"4. Packaging----" 5.SCP to the target server----"6. Remove the target server from the cluster----7. Unzip----8. Place to Webroot--- -"9.SCP diff file----" 10. Restart (optional)----"11. Test----" 12. Join a clusterIv. code Implementation 1, set no interactive accessThe public key of the deployment machine is sent to the application server via Ssh-keygen. Note that this
output for the entire process is as follows:
Copy-rhead Svn://192.168.1.192/placii/staggingarea/xiangqi/facebook svn://192.168.1.192/placii/staggingarea/ Xiangqi/facebook3
Propset subclipse:tags "1538,facebook2,/facebook2,branch
1540,facebook3,/facebook3,branch "E:/myeclipse/workspace/facebook
Switch SVN://192.168.1.192/PLACII/STAGGINGAREA/XIANGQI/FACEBOOK3 e:/myeclipse/workspace/facebook-rhead
At revision 1541.
Add-n E:\myeclipse\workspace\Facebook\
. The SVN command line output for the entire process is as follows:XML code
Copy-rhead Svn://192.168.1.192/placii/staggingarea/xiangqi/facebook svn://192.168.1.192/placii/staggingarea/ XIANGQI/FACEBOOK3
propset subclipse:tags "1538,facebook2,/facebook2,branch
1540,facebook3,/facebook3,branch "E:/myeclipse/workspace/facebook
Switch SVN://192.168.1.192/PLACII/STAGGINGAREA/XIANGQI/FACEBOOK3 e:/myeclipse/workspace/facebook-rhead
At Revision 1541.
add-n E:\myeclipse\workspace\Fac
version.
The SVN command line output for the entire process is as follows:XML Code
Copy-rhead SVN: // 192.168.1.192/placii/staggingarea/xiangqi/Facebook SVN: // 192.168.1.192/placii/staggingarea/xiangqi/facebook3
Propset subclipse: tags "1538, facebook2,/facebook2, Branch
1540, facebook3,/facebook3, branch "E:/myeclipse/workspace/Facebook
Switch SVN: // 192.168.1.192/placii/staggingarea/xiangqi/facebook3 E:/myeclipse/workspace/Facebook-rhead
At revision 1541.
Add-n e: \ myeclipse \ works
1. myeclipse web project deployment (release) process 2008-01-18
Create a web project ABC under myeclipse. The default settings are as follows:
Project SAVE location: Workspace directory \ ABC
Source folder: SRC, which stores all Java class files (. java files) and XML files.
Web root folder: webroot, which stores all JSP files, including CSS and JavaScript. Contains the WEB-INF folder has a very important role!
Context root URL:/ABC. /Indicates the
output for the entire process is as follows:
Copy-rhead Svn://192.168.1.192/placii/staggingarea/xiangqi/facebook svn://192.168.1.192/placii/staggingarea/ Xiangqi/facebook3
Propset subclipse:tags "1538,facebook2,/facebook2,branch
1540,facebook3,/facebook3,branch "E:/myeclipse/workspace/facebook
Switch SVN://192.168.1.192/PLACII/STAGGINGAREA/XIANGQI/FACEBOOK3 e:/myeclipse/workspace/facebook-rhead
At revision 1541.
Add-n E:\myeclipse\workspace\Facebook\
Resolve all paths in the J2EE WEB Project
The paths used in Java are divided into absolute paths and relative paths. In essence, Java can only use absolute paths to find resources. All relative paths are just some convenient methods to find resources. However, the API helps us build an absolute path at the underlying level to find resources!
When developing Web applications, you often need to obtain the physical path of the current webroot on the serv
configuration example, but all are commented out:# Example of a name-based virtual host:## ServerAdmin [email protected]# DocumentRoot D:\usr\webroot\webhosting1# ServerName 127.0.0.2# errorlog Logs/dummy-host.example.com-error_log# Customlog Logs/dummy-host.example.com-access_log Common### ServerAdmin [email protected]# DocumentRoot D:\usr\webroot\webhosting2# ServerName 127.0.0.3# errorlog Logs/dummy-hos
the paths used in Java are divided into two types: absolute and relative. In the final analysis, Java essentially only uses absolute paths to find resources. All the relative paths to finding resources are just a few convenient ways. But the API at the bottom helps us build an absolute path to find resources!
When developing Web applications, it is often necessary to obtain the physical path of the current Webroot in the server.
If it's a servlet, Act
There are two types of paths used in Java: absolute paths and relative paths. Ultimately, Java can only use absolute paths to find resources in essence. All the relative paths to find resources are just a few convenient ways. It's just the API that helps us build an absolute path to find resources!When developing Web-related applications, it is often necessary to obtain the physical path of the current Webroot in the server.In the case of Servlet, Act
(172.20.1.12) [Email protected] ~]# Mkdir/share [email protected] ~]# CP discuz_x3.2_sc_gbk.zip/share/ [[email protected] ~]# ID Apache uid=48 (Apache) gid=48 (Apache) groups=48 (Apache) is #正好三台机器上都存在apache用户 and its UID GID is the same (UID GID is important and must be consistent) [Email protected] ~]# Setfacl-r-M U:apache:rwx/share [Email protected] ~]# Setfacl-r-M G:apache:rwx/share [Email protected] ~]# getfacl/share/ Getfacl:removing leading '/' from absolute path names # file:share/ # Ow
seems that version 08 must be installed here, I am not clear about the specific reason. If you have installed Visual Studio, you do not need to install it)
Visual c ++ 2008-http://www.microsoft.com/download/en/details.aspx? Id = 5582
Visual c ++ 2010-http://www.microsoft.com/download/en/details.aspx? Id = 8328
Download
1. Download Apache http://www.apachelounge.com/download/
2. download the DLL http://www.apachelounge.com/download/ for connecting Apache and PHP (these two download from th
The paths used in Java are divided into absolute paths and relative paths.In essence, Java can only use absolute paths to find resources. All relative paths are just some convenient methods to find resources. However, the API helps us build an absolute path at the underlying level to find resources!
When developing Web applications, you often need to obtain the physical path of the current WebRoot on the server.
For Servlet, Action, Controller, or Fil
The paths used in Java are divided into two types: absolute and relative. In the final analysis, Java essentially only uses absolute paths to find resources. All the relative paths to finding resources are just a few convenient ways.
But the API helps us build an absolute path at the bottom to find resources.
When developing Web applications, it is often necessary to obtain the physical path of the current Webroot in the server. If it's a serv
synchronize to the website directory.3. Set the nginx sub-website configuration file and open relevant ports.4. Check whether the test is successful.
Note that the express framework of nodejs is used and the port used must be set in app. js. The pre-adopted port 3007 is used here.
Here are the relevant settings:Write link content here
Related commands
The project name is tentatively set to blue-hatsudo mkdir-p/var/svn/blue-hatsudo svnadmin create/var/svn/blue-hatsudo vim/var/svn/blue-hat/ conf/
Function Ajax (){Var len = arguments. length;Var type, url, postdata, fn;If (len {Alert ('there are no two reloads of the following parameters. At least the request type and url address must be specified! ');Return;}Type = arguments [0];Url = arguments [1];If (len> 2){Var args = arguments [2];If (typeof (args) = "string "){Postdata = args;}}Var xhr = window. ActiveXObject? New ActiveXObject ("Microsoft. XMLHTTP"): new XMLHttpRequest ();Xhr. open (type, url, true );Xhr. setRequestHeader ("Content
. ############################################# start: Because we have SVN information under our engineering path, we first use Eclipse to export the code to the File system to a random path.
Then the path is packaged. For example D:\toETP23 ############################################# cmd into a directory to be packaged, D:CD D:\toETP23\newagent JAR-CVF
Newagent.war * A normal engineering path: newagent |
|--SRC |--webroot |--meta-inf |--we
Task:
*/1 * * * * /opt/adobe/fms/webroot/api/svn.sh
The problem with this command: Only the version number is updated, the actual content is not updated, but running the above shell script directly can be updated.
WORKAROUND: You need to add a username and password to SVN.
As follows:
1, create a new update script svn.sh
#!/bin/bash
/opt/adobe/FMS/webroot/API
Lc_ctype=en_us. UTF-8
/opt/adobe/FMS/
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.