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/
JS 1. Download to the Sun home page to download the JDK installation version, assuming the JDK is installed in C:\j2sdk1.4.2_03\, then set the environment variable java_home as C:\j2sdk1.4.2_03\,
Then add C:\j2sdk1.4.2_03\bin to the Environment path variable and add Tools.jar and Dt.jar to the CLASSPATH environment variable if there is no classpath
environment variable, then create it.
2. Download the Tomcat installation version, assuming that Tomcat is installed in c:\tomcat4.1; Then set the en
Let's talk about it today. Perfect Framework's static file additions and accesses , the configuration of routes, and the submission of forms . While the official web site has a section on accessing static files, there are some points to note when using the perfect framework to access static files, which are not presented on their official documents. What we are going to do today is to access the static file through the browser, and then use the form form in the static file to submit the correspo
not forget to modify the/etc/hosts file to point the demo to 127.0.0.1.
In principle, the configuration has been completed, so you can access it directly. However, a large wave of 403 is approaching .....
0x02 Problem
If you select the/var/www/directory or sub-directory according to the Wikipedia configuration, you can run it without any pressure. However, a 403 error occurs when you change to a location such as/home/user/webroot.
Check the error log
will use the YIIC (command-line tool) to create a new YII application. Gii (a powerful web-based code generator) completes automatic code generation for specific tasks. Assuming Yiiroot is the installation directory for YII, WebRoot is the server's document root directory.
Run YIIC at the command line, as follows:
% YIIROOT/FRAMEWORK/YIIC WebApp webroot/testdrive
note| Note: When running YII
( recommended way ).
Create a new Myservic.java file under Axis_example/src with the following:
public class MyService {
public string Processservice (string arg) {
return arg;
}
}
Compiling Myservic.java
In the new DEPLOY.WSDD (can refer to the axis-bin-1_4.zip/axis-1_4/samples in the DEPLOY.WSDD----as long as guaranteed under the Classpath) file, the content is:
Xmlns:java= "Http://xml.apache.org/axis/wsdd/providers/java" >
Start Tomcat
In this way, you must first
static files, including HTML files, CSS files, image files, and JavaScript files, are the resources contained in an application.1. Provide static filesBy default, static files are stored under your Webroot directory, and Webroot's path is defined in Project.json."Webroot": "Wwwroot"A static file can be stored in any directory below Webroot, which is obtained in a
Two linux servers can be mounted between two linux servers: SERVER: 1. First, you need to set the directory on the host (1) to be mounted. Modify/etc/exports, add a shared directory. Here, the host refers to the server (the directory to be shared)/srv/www/app/wtcms/webroot/upload 10.10.10. * (ro, sync, no_root_squash)/srv/www/app/wtcms/webroot/main 10.10.10. * (ro, sync, no_root_squash) specifically,/srv/ww
Blockchain is the underlying technology and infrastructure of Bitcoin, essentially a de-centralized database. A blockchain is a series of data blocks that are associated with a cryptographic method, each of which contains information about a bitcoin network transaction that verifies the validity of its information (anti-counterfeiting) and generates the next chunk.In the narrow sense, blockchain is a kind of chain data structure which is combined in sequential way by time order, and the non-tamp
build Spring MVC under Eclipse
One, new dynamic Web Project
A Web project is the most basic, only look at 3 places, in the root directory (this directory is generally used to call webcontent or Webroot) have:1.webroot/web-inf/web.xml Boot file2.webroot/web-inf/classes/the compiled class file, which establishes the subpath according to package3.
Flex + Java + Blazeds, flexjavablazeds
1. Environment: jdk1.6 and Flex4.6
2. Tool: MyEclipse10
3. SERVER: Tomcat7
4. Connection Method: Blazeds
5. Project type: Flex Project
6. Steps
(1) create a new Flex project named FlexToJava
After entering the project name, click "Next ".
Select BlazeDS and select "use WTP ...", Click Next. By default, the project is created.
The new project directory is as follows:
(2) Add the new project to Tomcat
Start Tomcat, run the FlexToJava. mxml page, and star
In order to have a preliminary understanding of yii, we describe how to build the first Yii application in this section. We will use the YIIC (Command line tool) to create a new YII application. The GII (powerful Web-based code generator) automates code generation for specific tasks. Assuming that Yiiroot is the installation directory for YII, WebRoot is the server's document root directory. Run YIIC at the command line as follows:
% YIIROOT/FRAMEWORK
of yii, we describe how to build the first Yii application in this section. We will use the YIIC (Command line tool) to create a new YII application. The GII (powerful Web-based code generator) automates code generation for specific tasks. Assuming that Yiiroot is the installation directory for YII, WebRoot is the server's document root directory.
Run YIIC at the command line as follows:
% YIIROOT/FRAMEWORK/YIIC WebApp
that your Web server supports PHP 5.1.0 or later. Yii has passed the test on Apache HTTP Server on Windows and Linux systems. It should also work properly on other Web servers and platforms that support PHP 5.
Create the first Yii application
To have a preliminary understanding of Yii, we will describe how to build the first Yii application in this section. We will use yiic (command line tool) to create a new Yii application. Gii (a powerful web-based code generator) automatically generates cod
To have a preliminary understanding of Yii, we will describe how to build the first Yii application in this section. We will use yiic (command line tool) to create a new Yii application. Gii (powerful web-based code generator) for specific tasks...
To have a preliminary understanding of Yii, we will describe how to build the first Yii application in this section. We will use yiic (command line tool) to create a new Yii application. Gii (a powerful web-based code generator) automatically genera
following code in the Require field within the project Composer.json file:
"Yiisoft/yii2-imagine": "~2.1.0"
Then execute the command (CMD) in the project root directory:
Composer require Yiisoft/yii2-imagine
Yii2 using Imagine
Use yii\imagine\image; $srcImg = Yii::getalias (' @webroot/test.jpg '); $aimImg = Yii::getalias (' @webroot/testdeal.jpg ') ; $srcTTF = Yii::getalias (' @
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.