After installation, install apache2 and MySQL all smooth, configuration good httpd.conf, load php5apache2 module, start Apache failed, log as follows:
Copy Code code as follows:
[Sun June 19 17:05:55 2009] [Warn] PID file i:/win7_amp/
Server security Settings1. system disk and site placement disk must be set to NTFS format for easy setting of permissions .2. system disk and site placement disk In addition to administrators and system user rights are removed .
3. enable windows
Locate the Scrrun.dll file in the C:\Windows directory, set the security in the property, join the user group, and give read and run, read.
You can also put the site on the FAT32 partition to try it out. Because there are permissions issues on
Meaning: Save a space that can be put together
If I loop the following code infinitely, I estimate that I can bind countless stations. Oh, of course, the premise is that your space business allows you to bind countless domain names, good, nonsense
Struts2
Struts2 was developed on the basis of WEBWORK2. like Struts1 , Struts2 is also part of the MVC framework. But one thing you should be aware of is that although Struts2 and struts1 differ greatly in their names, Struts2 and struts1 It's
Let's illustrate these considerations with an example of a Silverlight Web site that uses asp.net2.0 WebService to access background data and SQLserver2005 the database through a LINQ link.
1, Windows2003 installation IIS6.0, the default 80 ports
On the Apache HTTP server, the method for setting up the virtual host is as follows
Open the conf/httpd.conf under the Apache installation directory and add the following two paragraphs
Copy Code code as follows:
ServerName
Apache under bound domain name
The method is as follows:
1, find the Apache installation directory under the httpd.conf and open, at the end Plus:
Copy Code code as follows:
Namevirtualhost *:80
ServerName localhost
For example, use string to date:
To define a transformer:
Import java.text.ParseException;
Import java.util.Date;
Import Org.apache.commons.lang.time.DateUtils;
Import Org.springframework.core.convert.converter.Converter;
public class
Just start the project, need to use to mybatis pagination, the internet saw a lot of plug-ins, in fact, the basic principle of implementation is basically the same, but most of them only give the code, the comments are not complete, so refer to a
The corresponding configuration in Web.config is as follows:
Copy Code code as follows:
Effects seen in the browser:
Workaround:
1, disable User-mode caching, only use Kernel-mode caching.
2.
In recent days the company developed a number of projects run on the IIS7.5, because the whole station is pseudo static, so from the Internet to find 22 ways to achieve. These two methods have the advantage: the first is more flexible, as long as
sessionstate timeout), the main reason for this is three kinds
One: Some kill virus software will go to scan your Web.config file, at that time session affirmation drops, this is Microsoft's saying.Two: Inside the program has let session loses the
The following methods are windows2003 to prevent users from logging on remotely:
Open Control Panel > Admin tools > Local Security Policy
Security Policy--> Local policy--> user Rights Assignment--> deny logon through Terminal Services, add
Below is the complete code for the entire action:
Package cn.ysh.studio.struts2.json.demo.action;
Import java.io.IOException;
Import Java.io.PrintWriter;
Import Java.util.HashMap;
Import Java.util.Map;
Import
Win+r run C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe-i re-register asp.net.If it is a Vista operating system, you need to run the above path in the DOS command window, and the DOS window must be run as an administrator.
What, you think the security settings are complicated? It doesn't matter, with the three ways we've described IIS server security settings, it's a good way to protect against attacks.
Basic settings Good patch Delete share
Personal owners often use
So to make sure that the system has to convert the date type correctly, write a global type conversion class that makes the type conversion between date and string.
Copy Code code as follows:
Package com.great.util;
Import Java.text.
Import JSTL Tag Library
Need to import Jstl.jar and Standard.jar
C:foreach--> Iteration Label Iteration list or map
${person.name}
Iterate over Set collection returned by Map.entryset ()${entry.key}: ${entry.value}
${num}
C:if--> judgment
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