bool InstertNode(string& szFileName)
{
TiXmlDocument myDocument(szFileName);
bool loadOkay = myDocument.LoadFile();
if(loadOkay == false)
return false;
//»ñµÃ¸ùÔªËØ
TiXmlElement *rootElement = myDocument.RootElement();
if(rootElement == NULL)
return false;
//´´½¨Ò»¸öPersonÔªËØ²¢Á¬½Ó¡£
TiXmlElement *PersonElement = new TiXmlElement("Person");
rootElement->LinkEndChild(PersonElement);
//ÉèÖÃPersonÔªËØµÄÊôÐÔ¡£
PersonElement->SetAttribute("ID", "3");
//´´½¨nameÔªËØ¡¢ageÔªËØ²¢Á¬½Ó¡£
TiXmlElement *NameElement = new TiXmlElement("name");
TiXmlElement *AgeElement = new TiXmlElement("age");
PersonElement->LinkEndChild(NameElement);
PersonElem ......
< id="MediaPlayerObject" style="visibility: hidden;" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="0" height="0" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701">
1. ´´½¨Ä¿Â¼
mkdir
NO1. ÔÚµ±Ç°Â·¾¶´´½¨Ò»¼¶Ä¿Â¼
[root@rehat root]# mkdir test
NO2. ÔÚµ±Ç°Â·¾¶´´½¨¶à¼¶Ä¿Â¼
[root@rehat root]# mkdir -p mytest/test1/test1_1
NO3. ÔÚ´´½¨Ä¿Â¼µÄͬʱ¸øÐ½¨µÄĿ¼¸³È¨ÏÞ
[root@rehat root]# mkdir -m 777 testmod
ÕâÑùÈκÎÈ˶ԴËĿ¼¶¼ÓÐÈκÎȨÏÞ
2. ¸´ÖÆÎļþÓëÎļþ¼Ð
cp
NO1. ¸´ÖÆÖ¸¶¨Ä¿Â¼µÄÎļþµ½µ±Ç°Ä¿Â¼£¬²¢ÖØÃüÃû
& ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating systems.
Contents:
MySQL 5 Installation
Apache 2 Installation
Prerequisites
Download Source
Unpack, Configure, Compile
Edit httpd.conf
Set up Access Privileges
Start and Stop Apache Server
Automatic Startup
PHP 5 Installation
apache 2 installation
prerequisites
Before you begin, it is highly recommended (though not inevitable) to create
a system user and user group under which your Apache server will be
running.
# groupadd www
# useradd -g www apache2
What is it good for? All actions performed by Apache (for instance your PHP
scripts execution) will be restricted by this user's privileges. Thus you can
explicitly rule which directories you ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating systems.
Contents:
MySQL 5 Installation
Apache 2 Installation
Prerequisites
Download Source
Unpack, Configure, Compile
Edit httpd.conf
Set up Access Privileges
Start and Stop Apache Server
Automatic Startup
PHP 5 Installation
apache 2 installation
prerequisites
Before you begin, it is highly recommended (though not inevitable) to create
a system user and user group under which your Apache server will be
running.
# groupadd www
# useradd -g www apache2
What is it good for? All actions performed by Apache (for instance your PHP
scripts execution) will be restricted by this user's privileges. Thus you can
explicitly rule which directories you ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating systems.
Contents:
MySQL 5 Installation
Apache 2 Installation
Prerequisites
Download Source
Unpack, Configure, Compile
Edit httpd.conf
Set up Access Privileges
Start and Stop Apache Server
Automatic Startup
PHP 5 Installation
apache 2 installation
prerequisites
Before you begin, it is highly recommended (though not inevitable) to create
a system user and user group under which your Apache server will be
running.
# groupadd www
# useradd -g www apache2
What is it good for? All actions performed by Apache (for instance your PHP
scripts execution) will be restricted by this user's privileges. Thus you can
explicitly rule which directories you ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating systems.
Contents:
MySQL 5 Installation
Apache 2 Installation
PHP 5 Installation
Prerequisites
Download Source
Unpack, Configure, Compile
Edit httpd.conf
Create php.ini File
Restart Apache Server
PHP 5 installation
We will set up PHP as a shared module, being loaded into Apache2 dynamically
during the server startup. These instructions are known to work for PHP
versions: 5.0.4
through 5.2.1
.
prerequisites
At this point Apache web server must be installed. If you want MySQL support
in PHP, MySQL server also must have been installed prior to the next steps.
download source
Get the source from http://www.php.net/downloads.php
.
At the ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating systems.
Contents:
MySQL 5 Installation
Apache 2 Installation
PHP 5 Installation
Prerequisites
Download Source
Unpack, Configure, Compile
Edit httpd.conf
Create php.ini File
Restart Apache Server
PHP 5 installation
We will set up PHP as a shared module, being loaded into Apache2 dynamically
during the server startup. These instructions are known to work for PHP
versions: 5.0.4
through 5.2.1
.
prerequisites
At this point Apache web server must be installed. If you want MySQL support
in PHP, MySQL server also must have been installed prior to the next steps.
download source
Get the source from http://www.php.net/downloads.php
.
At the ......
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled
with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE
9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all
Linux-like operating systems.
Contents:
MySQL 5 Installation
Apache 2 Installation
PHP 5 Installation
Prerequisites
Download Source
Unpack, Configure, Compile
Edit httpd.conf
Create php.ini File
Restart Apache Server
PHP 5 installation
We will set up PHP as a shared module, being loaded into Apache2 dynamically
during the server startup. These instructions are known to work for PHP
versions: 5.0.4
through 5.2.1
.
prerequisites
At this point Apache web server must be installed. If you want MySQL support
in PHP, MySQL server also must have been installed prior to the next steps.
download source
Get the source from http://www.php.net/downloads.php
.
At the ......
ÎĵµÑ¡Ïî
´òÓ¡±¾Ò³
½«´ËÒ³×÷Ϊµç×ÓÓʼþ·¢ËÍ
¼¶±ð£º ³õ¼¶
Ö£ÑåÐË (mlinux@163.com), ¹ú·À¿Æ´ó¹¥¶Á²©Ê¿Ñ§Î»
2003 Äê 5 ÔÂ 01 ÈÕ
¹²ÏíÄÚ´æ¿ÉÒÔ˵ÊÇ×îÓÐÓõĽø³Ì¼äͨÐÅ·½Ê½£¬Ò²ÊÇ×î¿ìµÄIPCÐÎʽ¡£Á½¸ö²»Í¬½ø³ÌA¡¢B¹²ÏíÄÚ´æµÄÒâ˼ÊÇ£¬Í¬Ò»¿éÎïÀíÄÚ´æ±»Ó³Éäµ½½ø³ÌA¡¢B¸÷×ԵĽø³ÌµØÖ·¿Õ¼ä¡£½ø³ÌA¿ÉÒÔ¼´Ê±¿´µ½½ø³ÌB¶Ô¹²ÏíÄÚ´æÖÐÊý¾ÝµÄ¸üУ¬·´Ö®ÒàÈ»¡£ÓÉÓÚ¶à¸ö½ø³Ì¹²Ïíͬһ¿éÄÚ´æÇøÓò£¬±ØÈ»ÐèҪijÖÖͬ²½»úÖÆ£¬»¥³âËøºÍÐźÅÁ¿¶¼¿ÉÒÔ¡£
²ÉÓù²ÏíÄÚ´æÍ¨ÐŵÄÒ»¸öÏÔ¶øÒ×¼ûµÄºÃ´¦ÊÇЧÂʸߣ¬ÒòΪ½ø³Ì¿ÉÒÔÖ±½Ó¶ÁдÄڴ棬¶ø²»ÐèÒªÈκÎÊý¾ÝµÄ¿½±´¡£¶ÔÓÚÏñ¹ÜµÀºÍÏûÏ¢¶ÓÁеÈͨÐÅ·½Ê½£¬ÔòÐèÒªÔÚÄں˺ÍÓû§¿Õ¼ä½øÐÐËĴεÄÊý¾Ý¿½±´£¬¶ø¹²ÏíÄÚ´æÔòÖ»¿½±´Á½´ÎÊý¾Ý[1]£ºÒ»´Î´ÓÊäÈëÎļþµ½¹²ÏíÄÚ´æÇø£¬ÁíÒ»´Î´Ó¹²ÏíÄÚ´æÇøµ½Êä³öÎļþ¡£Êµ¼ÊÉÏ£¬½ø³ÌÖ®¼äÔÚ¹²ÏíÄÚ´æÊ±£¬²¢²»×ÜÊǶÁдÉÙÁ¿Êý¾Ýºó¾Í½â³ýÓ³É䣬ÓÐеÄͨÐÅʱ£¬ÔÙÖØÐ½¨Á¢¹²ÏíÄÚ´æÇøÓò¡£¶øÊDZ£³Ö¹²ÏíÇøÓò£¬Ö±µ½Í¨ÐÅÍê±ÏΪֹ£¬ÕâÑù£¬Êý¾ÝÄÚÈÝÒ»Ö±±£´æÔÚ¹²ÏíÄÚ´æÖУ¬²¢Ã»ÓÐд»ØÎļþ¡£¹²ÏíÄÚ´æÖеÄÄÚÈÝÍùÍùÊÇÔÚ½â³ýÓ³Éäʱ²Åд»ØÎļþµÄ¡£Òò´Ë£¬²ÉÓù²ÏíÄÚ´æµÄͨÐÅ·½Ê½Ð§ÂÊÊǷdz£¸ßµÄ¡£
LinuxµÄ2.2.xÄÚºËÖ§³Ö¶àÖÖ¹²ÏíÄڴ淽ʽ£¬Èçmmap()ÏµÍ ......
ÕªÒª£º±¾ÕÂÊ×ÏÈÒÔÓ¦ÓóÌÐò¿ª·¢ÕߵĽǶÈÉóÊÓLinuxµÄ½ø³ÌÄÚ´æ¹ÜÀí£¬ÔÚ´Ë»ù´¡ÉÏÖð²½ÉîÈëµ½ÄÚºËÖÐÌÖÂÛϵͳÎïÀíÄÚ´æ¹ÜÀíºÍÄÚºËÄÚ´æµÄʹÓ÷½·¨¡£Á¦Çó´ÓÍâµ½ÄÚ¡¢Ë®µ½Çþ³ÉµØÒýµ¼ÍøÓÑ·ÖÎöLinuxµÄÄÚ´æ¹ÜÀíÓëʹÓá£ÔÚ±¾ÕÂ×îºó£¬ÎÒÃǸø³öÒ»¸öÄÚ´æÓ³ÉäµÄʵÀý£¬°ïÖúÍøÓÑÃÇÀí½âÄÚºËÄÚ´æ¹ÜÀíÓëÓû§ÄÚ´æ¹ÜÀíÖ®¼äµÄ¹ØÏµ£¬Ï£Íû´ó¼Ò×îÖÕÄܼÝÔ¦LinuxÄÚ´æ¹ÜÀí¡£
ǰÑÔ
ÄÚ´æ¹ÜÀíÒ»ÏòÊÇËùÓвÙ×÷ϵͳÊé¼®²»Ï§±Êī֨µãÌÖÂÛµÄÄÚÈÝ£¬ÎÞÂÛÊÐÃæÉÏ»òÊÇÍøÉ϶¼³ä³â×Å´óÁ¿Éæ¼°ÄÚ´æ¹ÜÀíµÄ½Ì²ÄºÍ×ÊÁÏ¡£Òò´Ë£¬ÎÒÃÇÕâÀïËùҪдµÄLinuxÄÚ´æ¹ÜÀí²ÉÈ¡±ÜÖØ¾ÍÇáµÄ²ßÂÔ£¬´ÓÀíÂÛ²ãÃæ¾Í²»È¥°àÃÅŪ¸«£¬êÝЦ´ó·½ÁË¡£ÎÒÃÇ×îÏë×öµÄºÍ¿ÉÄÜ×öµ½µÄÊÇ´Ó¿ª·¢ÕߵĽǶÈ̸̸¶ÔÄÚ´æ¹ÜÀíµÄÀí½â£¬×îÖÕÄ¿µÄÊǰÑÎÒÃÇÔÚÄں˿ª·¢ÖÐʹÓÃÄÚ´æµÄ¾ÑéºÍ¶ÔLinuxÄÚ´æ¹ÜÀíµÄÈÏʶÓë´ó¼Ò¹²Ïí¡£
µ±È»£¬ÕâÆäÖÐÎÒÃÇÒ²»áÉæ¼°µ½Ò»Ð©ÖîÈç¶ÎÒ³µÈÄÚ´æ¹ÜÀíµÄ»ù±¾ÀíÂÛ£¬µ«ÎÒÃǵÄÄ¿µÄ²»ÊÇΪÁËÇ¿µ÷ÀíÂÛ£¬¶øÊÇΪÁËÖ¸µ¼Àí½â¿ª·¢ÖеÄʵ¼ù£¬ËùÒÔ½ö½öµãµ½ÎªÖ¹£¬²»×öÉ¡£
×ñÑ“ÀíÂÛÀ´Ô´ÓÚʵ¼ù”µÄ“½ÌÌõ”£¬ÎÒÃÇÏȲ»±ØÒ»ÏÂ×Ó¾Í×êÈëÄÚºËÀïÈ¥¿´ÏµÍ³ÄÚ´æµ½µ×ÊÇÈçºÎ¹ÜÀí£¬ÄÇÑùÍùÍù»áÈÃÄãÏÝÈëËÆ¶®·Ç¶®µÄ¾½¾³£¨ÎÒµ±Äê¾Í·¸ÁËÕâ¸ö´íÎ󣡣©¡£ËùÒÔ×îºÃµÄ·½Ê ......