for Debian/Ubuntu 64bit
Apt-get install gcc-multilib
2. source code of the Dom0 kernel (about 350 MB)
Cd/usr/src
Git clone git: // git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen
Cd linux-2.6-xen
Git checkout-B xen/stable-2.6.32.x origin/xen/stable-2.6.32.x
3. Compile the Dom0 Kernel
Change 'extraversion' in Makefile to what you want.
Make menuconfig # Enabled the dom0 support and the Xen backend as usual on Ubuntu 9.10
Make-j (x) number_of_kernels
Make modules_install inst
localhostErrorlog "Logs/dummy-host.localhost-error.log"Customlog "Logs/dummy-host.localhost-access.log" commonModify the configuration as follows:DocumentRoot modified to the WWW directory under the local WAMP environment (e.g., D:\wamp\www)ServerName Change to localhost3, restart Apache, found that localhost can open normally, configure localhost is relatively simple.Example two, APACEH configuring test.b
First step: Open the Profile httpd-vhosts.conf "My path is D:\program\wamp\bin\apache\Apache2.3.14\conf\extra\httpd-vhosts.conf", Copy the last code snippet in the file:
ServerAdmin [email protected] documentroot "c:/apache23/docs/dummy-host2.example.com" ServerName dummy-host2.example.com errorlog "Logs/dummy-host2.example.com-error.log" Customlog "logs/
multiprocessing. dummy import Pool as ThreadPool
Urls = [
'Http: // www.python.org ',
'Http: // www.python.org/about /',
'Http: // www.onlamp.com/pub/a/python/2003
]
Pool = ThreadPool (4)
Results = pool. map (urllib2.urlopen, urls)
Pool. close ()
Pool. join ()
Yes, you are not mistaken. You only need a line of code to convert a common task into a parallel task. You do not need to manually manage the thread. All tasks are automatically completed by
in the following anonymous functions.Var select = this;
// Create,. Dummy will be used for this classDefine special styles// SetCopy some attributes and styles of to this dummy input// After creationInsert the dom to keep up with the originalVar input = $ (""). Attr ("disabled", this. disabled). Css ("width", parseInt (this. style. width) + "px "). Css ("display", this. style. display). InsertAfter (this).
]
documentroot "D:\wamp\www"
ServerName localhost
Serveralias localhost
Errorlog "Logs/dummy-host.localhost-error.log"
Customlog "Logs/dummy-host.localhost-access.log" common
Modify the configuration as follows:DocumentRoot modified to the WWW directory under the local WAMP environment (e.g., D:\wamp\www)ServerName Change to localhost3, restart Apache, found that localhost can
installation path on your own) in the bottom blank space ):
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "f:/wamp/www"
ServerName localhost
ServerAlias www.dummy-host.example.com
ErrorLog "log/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
ServerAdmin webmaster@
: This article mainly introduces apache2.2 virtual host configuration. if you are interested in the PHP Tutorial, refer to it. 1. modify httpd. conf
Open the installation directory of appserv, find the httpd. conf file, and remove the # before the following two lines of text.
[Plain] view plaincopy
# LoadModule vhost_alias_module modules/mod_vhost_alias.so
Remove # it means to enable the virtual host function of apache.
[Plain] view plaincopy
# Include conf/extra/ht
Online method Five gray door, deliberately recorded, the need for friends to take the good.
Files that need to be modified: httpd.conf/httpd-vhosts.conf/hosts
corresponding path:
Httpd.conf:wamp\bin\apache\apache2.2.21\conf
Httpd-vhosts.conf:wamp\bin\apache\apache2.2.21\conf\extra
Hosts:c\windows\system32\drivers\etc
Modify the process:
1, open httpd.conf, about 466 lines: #Include conf/extra/httpd-info.conf, delete #;
2, or httpd.conf, about 188 lines:
Options FollowSymLinksAllowOverride N
go into a virtualhostcontainer.
# The first VirtualHost section was used for all requests that donot
# match a ServerName or serveralias in anyVirtualHost> block.
#
VirtualHost *:80>
[Email protected]
DocumentRoot "c:/dev/projets/wampserver2-64b/install_files_wampserver2/bin/apache/apache2.2.17/docs/ Dummy-host.hleclerc-pc.ingenidev "
Servernamedummy-host.hleclerc-pc.ingenidev
Serveraliaswww.dummy-host.hleclerc-pc.ingenidev
Errorl
Wamp Multi-site configuration, wamp site configuration
Online method Five gray door, deliberately recorded, the need for friends to take the good.
Files that need to be modified: httpd.conf/httpd-vhosts.conf/hosts
corresponding path:
Httpd.conf:wamp\bin\apache\apache2.2.21\conf
Httpd-vhosts.conf:wamp\bin\apache\apache2.2.21\conf\extra
Hosts:c\windows\system32\drivers\etc
Modify the process:
1, open httpd.conf, about 466 lines: #Include conf/extra/httpd-info.conf, delete #;
2, or httpd.conf, abo
Apache2.2 and apache2.2. Apache2.2 virtual host configuration details, apache2.2 details 1. modify httpd. conf to open the installation directory of appserv, find the httpd. conf file, and remove the # sign in front of the following two lines of text respectively. # Apache2.2 detailed description of VM configuration and apache2.2
1. modify httpd. conf
Open the installation directory of appserv, find the httpd. conf file, and remove the # before the following two lines of text.
#LoadModule vhost_
The above is a single-linked list of the LC problem, I added a double-link list of the situation below Public classSolution { PublicListNode Swappairs (ListNode head) {if(Head = =NULL|| Head.next = =NULL) { returnHead; } ListNode Dummy=NewListNode (0); Dummy.next=Head; Head=dummy; ListNode Pre=Head; ListNode P1=Head.next; ListNode P2=Head.next.next; ListNode P3=Head.next.next.next; while(P1! =NU
implementation virtual a www.123.com to access the local Web site program.1. Close Xampp Apache, and then locate the C:\xampp\apache\conf\extra\httpd-vhosts.conf file:Add the following code to the # #NameVirtualHost *:80, where the IP is the IP of the local computer and can go to cmd using ipconfig query to the native IPNamevirtualhost 192.168.1.101:80Then copy the following code##
# #ServerAdmin [email protected]
# #DocumentRoot "C:/xampp/htdocs/
1 First find the httpd.conf file in D:\wamp\bin\apache\Apache2.2.21\conf and then find out in more than 460 lines to get rid of #, then the following situation # Virtual Hostsinclude conf/ Extra/httpd-vhosts.conf2 then in the open D:\wamp\bin\apache\Apache2.2.21\conf\extra httpd-vhosts.conf file at the end of the file plus
ServerAdmin webmaster@dummy-host3.example.com documentroot "D:/wamp/www/4/huaguoshan" ServerName www.hgs2013.cn Errorlog "Log
Previously wrote an article WAMP configuration Virtual host directory, details see WAMP Configuration Virtual Host directory, but recently do not know what the reason, the local environment using this way can not access to the corresponding directory, the case of baffled, a way to change.Refer to the steps in the previous article.Turn on the httpd.conf virtual host configurationInclude conf/extra/httpd-vhosts.conf Configuring the Httpd-vhosts.conf FileDelete the original content, add the local
Online provides a solution is to session_start () before the session storage method to files, that is, add the following sentence codeif (Ini_get (' Session.save_handler ')!== ' files ')Ini_set (' Session.save_handler ', ' files ');This is true, but sometimes we may just have to keep the session in the database, which is not going to work.The official website provides a way to add a line of code before Session_Start (), as follows:Session_set_save_handler ('
; * while(K N) $ {Panax NotoginsengPrenode =start; -Start = start->Next; thek++; + } A thePrenode->next = start->Next; + Deletestart; -Start =nullptr; $ $ returnhead; - } -};Another clever way to do this is to define a slow pointer (the initial value is the parent pointer of the head pointer), let the head pointer move N, and then move the head pointer and a slow pointer at the same time until the head pointer is empty, then the next
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.