COLDFUSIONMX Programming Guide Basic management operations and getting Started _coldfusion

Source: Internet
Author: User
Tags documentation system log uuid web services knowledge base
Phase II:Basic management operations and getting started programs

Preface

Before explaining the basics of ColdFusion MX and Getting started, let's take a look at the differences between the various versions of ColdFusion MX. ColdFusion MX is currently divided into commercial and developer versions, while commercial versions include both Professional and Enterprise editions. As the name suggests, the developer version is a version that is available to the developer for personal use, and the version has limited functionality. For example, using the developer version of ColdFusion MX server to restrict access to simultaneous IP, there is no Macromedia Cluster support (Web balance load), there are also some enterprise version of the features, the developer version and Professional version are not available. In addition, COLDFUSIONMX has a version specifically tailored for the Java EE platform, such as WebLogic, WebSphere platforms. The following is an official data table detailing the differences between the ColdFusion MX versions.


Part One ColdFusion MX basic management operations

From the first part of the content, we learned about the structure of coldfusionmx, so exaggeration  good ?/span>coldfusionmx script coding way before we have to learn how to configure our Coldfusionmx server. This part of the content is for you to explain the basic knowledge of management coldfusionmx, and each detail of the department we put into the actual programming in the future together to explain.

First, after installing COLDFUSIONMX, we can enter the following address: http://localhost:8500/CFIDE/administrator/index.cfm, or click the Start button, select the Macromedia of the program group Coldfusion MX Administrator option to open the Admin interface, the admin interface is shown in the following image:

If you do not see the admin home page, you should do some of the following to do the wrong things:

1. Recall yourself in the installation process is the choice of that mode, this tutorial is standalone mode, in addition, the installation process, you can also choose and Iis,apache and other webserver bundle.

2. The port number is correct.

3. See if the relevant services in the Administration tool are started, and in normal circumstances, there should be 3 Macromedia Coldfusion MX related services running.

4. List your mistakes and ask for help from the coldfusionmx version of the Semitic Empire Flash Center or the dreamweavermx version of the Blue Ideal Classic forum, and I'm sure the friends here will explain to you as much as possible.

5. Inquires the Macromedia website the related material, is only the English version, everybody friend must have the patience.

In summary, if you are installing exactly as you did during the first installment, there is no error.

After you see the admin interface above, enter the admin password (this management password is set during setup and is case sensitive). You will see the following interface:

The above graph is the COLDFUSIONMX main management interface, which consists of four parts. The upper-left corner is a return to the management of the home page and exit the management interface two links, here is not explained. The most text area of the right leg is the area that displays the different management content after clicking the different link in the 6 parts of the graph, is the main part of the management configuration, and the 6 parts in the above figure, will explain each one in the following content.

L The first part of the management interface

After clicking the above four links, you will see different information based on CFMX in the main part of the admin interface. Documentation is mainly a document, English PDF, but very useful, from installation to development, very complete, here is not to repeat. Just to remind everyone that CFMX some tag and coldfusion5 have a big difference, in the use of a lot of time to consult the Manual on it. Later in the content, will also follow tag's explanation to these. TechNotes is the knowledge base to visit the official website of Macromedia, if your operating system is in Chinese, then will open some technotes based on CFMX about the Chinese part, but you do not hold too much hope, the current open Chinese TechNotes page is still empty. Release Notes Click to see what Marcomedia currently publishes about COLDFUSIONMX resources and documentation, if the Chinese operating system, please direct access to Http://www.macromedia.com/go/prod_ Releasenotes to obtain relevant information. Version information is to view the configuration of coldfusionmx installed on its own system. Indicates whether the version installed on the machine is a developer version or a Professional edition, an Enterprise edition.

The second part of the management interface

The management of this section mainly involves configuring the COLDFUSIONMX server parameters. Here is a brief introduction. Settings are parameters that configure a series of request access and error aborts. The following figure:

Limit simultaneous requests to n indicates the number of times the configuration server accepts synchronous requests; Timeout requests after (seconds) n indicates the server request timeout, the standard unit is seconds, which is more than a certain amount of time (in seconds). The server automatically aborts the request, and the use UUID for Cftoken handles transactions using the globally unique identity of UUID when using Cftoken tag, uuid=universally unique identifier;enable HTTP Status codes allows the state code to be set when the server does not process the error page, enabling whitespace management allows the CFMX server to enable space management, such as compressing unnecessary spaces and compressing the capacity of the CFML page; Missing Template handler provides a way to create and deliver a generic. CFM template, that is, in the case of server discovery, try to give a standard display output when the page does not exist; Site-wide error handler errors occur in default state The CFMX server displays a page that contains an error message, which differs from the previous one in that the two display templates for the page that do not exist and page errors are defined separately from the viewer.

The caching option is the caching setting for the CFMX server. The following figure:

Template Cache Size (number of templates) n represents the amount of memory used for template caching, the default is 1024, it is recommended that you do website not too much to improve the value here, and do not set to 0, the actual value of the reference site is visited to set Trusted Cache checked to check whether the cache in the page has been updated, compared to everyone will not check it, of course, if your website Baixin days do not update once, the proposal or check this option, will speed up the display of Web pages; Limit the Maximum number of cached queries on the server to n indicates the amount of queries stored by the CFMX side, by default 100. This speeds up the work of the same query over and over again.

The Client variables is the setting for the local information store of the browsers who access the site through the browser. Cookie,session in ASP, also in the CFMX, is set through this option. The following figure:

Coldfusionmx uses three ways to store customer variables, the first is a well-known cookie, the second is to write the client variable to the CFMX server's system registry, and the third is to select a database to add the customer variables to the database. For starters, the author only needs to remind you that it is not recommended that you write client variables to the registry, especially for highly interactive programs with forums and communication centers in your site, because for such programs, writing client variables to the server side of the registry can significantly degrade your site performance.

Memory Variables is used to manage the validity of application and sessions in CFMX, and it can also use the session Variables of Java EE. The following figure:

Maximum Timeout is the longest timeout, after this definition, can not be covered in the page code, that is, you define a session here the longest time is 2 days, then you set a session in the page time is 3 days, this is invalid. The default timeout is that if you don't set the application and session timeout on the page, the time here will work.

Mappings creates a name on the CFMX server side to represent how the directory path is handled. The following figure:

In the diagram, you can see that the root directory of the CFMX site points to the file in the path of the C:\CFusionMX\wwwroot\ of the physical path, and similarly, you can add a name that defines the physical path of the header file that your page will refer to, for example, add a/header, it points to C : \test\headers\ this path.

Mail server is to set up CFMX mail servers, in fact, it is best to use a third-party mailserver, such as IMAIL, do not use IIS from the mail server, the use of friends naturally to its function clearly. The following figure:

If it's a beginner, just type in the mailserver in the 127.0.0.1, and don't forget to start the IIS-with mail server in IIS Manager. For other parameters, use the default, and also, verify that Mail server connects to the successful Verify mail server connection option.

Charting is the latest way to manage charts in CFMX, with the most exciting cfchart in subsequent tutorials, replacing cfgraph and previous Macromedia Generator features. The management interface is shown below:

It is recommended that beginners use the default settings, especially the cache type to determine whether the cache is not memory cache, if your site used to cfchart a lot of places, there are a lot of generated charts, so strongly recommend the use of disk cache way, And the site has only one or two charts, then using memory cache will speed up the display.

The Java and JVM is set up for Java virtual machines and is not here to repeat. The default settings can be used basically.

Archives and deployment are involved in high-end applications, such as configuring users ' own files to be managed by the server, so that files that can be managed are stored in a machine in the form of a. Car, imported through the Browse Server, What about the documents that are available for administration? Includes: filename and path, data source settings, Verity Full-text indexing, and so on. The management interface is shown below:

Settings Summary This is a report on the CFMX server configuration that is generated in real time.

L The third part of the management interface

The third part of the management interface includes setting up the data source, verity the management and maintenance of the Full-text indexing index, setting the parameters of the Verity K2 server full-text retrieval servers, CFMX using Web Services based on ColdFusion,. NET, Java generation standards. Management of WSDL files. Since the content of these four parts involves the actual development programming work, the author will explain in detail in later content.

The fourth part of the management interface

As the name suggests, this part of the content is for server-side debugging and log Management section. Debugging settings are provided to developers on how to configure the server so that CFMX displays what information is displayed and what information is displayed after a page error. For each of these information, refer to the official documentation admin.pdf. Since each developer has different requirements for the debugger, there is no specific configuration here, but the author would like to remind you that if you need to do debug work, you must select the first option to enable debugging.

Debugging IP addresses is for team development, where your teammates can see the results of debug through the allowed IP. The default is 127.0.0.1, if it is a beginner, this default setting is OK, if it is a team development, you can consider adding allowed access to external IP.

The Logging settings are configured to view the various log parameters, which are not explained here. For developers with special needs, you can view official documents or online help.

Log files is the system log file to view, delete, add the Management section.

Scheduled tasks are the configuration that allows developers to generate reports periodically from dynamic data sources, which is useful for enterprise-oriented development solutions, such as generating static sales reports from standard sales data on a regular basis, and so on.

System probes helps developers understand the state of CFMX application with simple settings, while generating reports for review.

Code Analyzer is naturally the analysis of the codes, the development of a page, you can see whether there are incorrect syntax and tag, of course, this function is not omnipotent, if you have a logical development problems, it can do nothing.

• Part V and sixth of the management interface

The last part is the work to be done after the application CFMX to an advanced stage, such as configuring the CFX tag of its own development, and configuring CORBA connectors. The sixth part modifies the password for CF admin and the RDS password needed in DREAMWEAVERMX and Coldfusionstudio, and can also set COLDFUSIONMX security.


The second part of your first CF program

Speaking of this, everyone may be impatient, talk about so much management, a program also did not see. Don't worry, the following program will give you a surprise soon. First of all, create a folder under C:\CFusionMX\wwwroot\ called Cffirst (the name you can set yourself). Then, create a hello text file in Cffirst and write the following code in the text file:

<cfset var1= "Hello coldfusion!" >

<cfoutput>

#var1 #

</cfoutput>

Then, save the txt suffix of the text file to the suffix of. cfm. Finally, enter in the browser:

Http://localhost:8500/cffirst/hello.cfm

Ok!!! Look at what's on the browser!!!

Feel very difficult, if you feel that this way of programming is difficult, I advise you not to do the program development work.

A little more complicated:

<!---Set Variable--->

<cfset name = "Hello" >

<br><br>

<!---output Information--->

<cfoutput> #name #</cfoutput>, Welcome to CFMX World!

<br><br>

<cfquery datasource= "cfsnippets" name= "Test" >

SELECT Department

From Employees

ORDER BY LastName

</cfquery>

<cfoutput name=> #Email #<br></cfoutput>

Then, save it as a file called hello2.cfm, and then enter at the browser end:

Http://localhost:8500/cffirst/hello2.cfm

To see what happened, if you do not know what hello2.cfm did, I can tell you here first, you made a database query!!! Think of the era of learning ASP, after a lot of hard primary learning, still do not understand the ASP database operations, then this step is achieved. Hello2.cfm my display here is as follows:

may have studied the ASP's friend to ask, I did not do the cyclic processing, how can the field cycle output? It's amazing. Don't worry, the future tutorials will be more exciting.

The third tutorial will give you an introduction to ColdFusion programming, including some basic syntax, and basic process operations.

Part III Resources List

For an understanding of the Macromedia MX series knowledge, please visit:

http://www.macromedia.com/

http://www.macromediachina.com/

http://www.flashempire.net/

http://www.blueidea.com/

About Macromedia Product Strategy Analysis Chinese article please visit:

Http://61.156.17.126/efe_news/newsread.php?id=123

To download the Macromedia MX series, please visit:

http://www.macromedia.com/software/trial_download/

* Macromedia ColdFusion MX and JRUN4 can get a developer version on the official website free of charge, compared to the commercial version, only limited the developer version of the IP access restrictions, server advanced reporting tools, server balanced load functions, and other advanced features of the use.

Comments:

JRUN4, ColdFusion mx, Flash mx, Dreamweaver mx, Fireworks MX are the registered products of Macromedia Company.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.