Pseudo-static only changes the display of the URL, in fact, the Site page or dynamic page. A pseudo-static page suffix can be html, HTM, or a directory format. So why use pseudo-static?Two points reason: 1 is SEO optimization, pseudo-static is conducive to search engine collection, can increase the site optimization effect; 2 is the URL looks simple, the site URL to the professional.We still implement pseudo-static through the. htaccess file. Specific. htaccess settings See the two
A small example of how to record a pig string interception:The requirement is as follows to extract the value of column 2nd (after the colon) from the following string: Java code 1 2 3 4a:ab#c#da:c#c#da:dd#c#da:zz#c#d If it is in Java, the method may have many kinds, such as substring, or split several times, and so on in pig, you can use the substring built-in functions to complete, but it is recommended to use the following way, this method is more
The apache rewrite rule has two common tags: [L] and [QSA]. After obtaining pseudo-static data with $ _ GET? The following parameter values must be marked with [QSA.The differences between [L] and [QSA] are as follows:1) 'Last | L' (last rule last) immediately stops the rewrite operation and does not apply other rewrite rules.2) 'qsappend | qsa' (append request string append)This flag forces the rewrite engine to append a request strin
In this example, Apache Shiro is used to implement identity authentication in a Web application, integrating Shiro with spring and storing user information using an embedded Derby database.
The persistent layer is hibernate, and the database connection pool is Alibaba druid. 2. Preparation
Create an inline Derby database, this example uses db-derby-10.10.1.1. 2.1
EN "" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
Example of configuring two virtual hosts with the same IP address in APACHE _ PHP _ China Network Management Alliance bitsCN.com
The code is as follows
Order Allow,denyAllow from allDeny from 125.64.2.46 182.237.3.102 58.215.169.18 114.80.132.9 121.14.48.5 66.249.67.182 94.180.84.186 58.243.40.76 89.123.61.113 116.23.60.197 110.75.172.81 60.215.129.75
Allow all, prohibit XXX, please change the IP inside to the IP address you want to ban.
and save As. Htaccess, uploaded to the site root directory, generally for public_html, some programs will have this file, such as WP, directly added to the inside can be.
Prohibit IP
An example on the Internet is implemented in Java, that is, Apache XML-RPC:
Computing class (a server service, of course, can be written by yourself ):
Package COM. XMLRPC. server;
Server:
Package COM. XMLRPC. server;
Client:
Package COM. XMLRPC. client;
Finally, start the server and then run the client. For more information about the code, see http://ws.apache.org/xmlrpc.
Label:Implementation class for the Resultsethandler interfaceKeyedhandler (name): Encapsulates each row of data in the result set into a map and then saves the map to a map with the key specified.public void Testkeyedhandler () throws sqlexception{Queryrunner runner = new Queryrunner (Dbmanager.getdatasource ());String sql = "SELECT * from users";mapFor (map.entryint id = Me.getkey ();mapFor (map.entryString name = Innerme.getkey ();Object value = Innerme.getvalue ();SYSTEM.OUT.PRINTLN (name + "
/ghost_err.log12345678910 Supervisor Common CommandsSupervisorctl start ggyun//Start process 1supervisorctl Restart ggyun//Restart process 1supervisorctl Reload//Restart SUPERVISORCTL1Supervisor problems that may occur after installation
Supervisorctl Start Ggyun error Unix:///var/run/supervisor.sock no such file
Solve
sudo touch/var/run/supervisor.sock1sudo chmod 777/var/run/supervisor.sock1sudo service Supervisor Restart1Connecting to a remote server
Windo
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.