add the following line of command to the/etc/apache2/apache2.conf or/etc/apache2/mods-enabled/php5.conf file:
AddType application/x-httpd-php. php. phtml. php3
After adding the above command line, in order to ensure that Apache re-read the configuration file shutdown, we can turn it off by following the command, and then start again:
$ sudo/etc/init.d/apache2 Stop
$ sudo/etc/init.d/apache2 Start
Third, configure dynamic virtual host
In general,
Label:Need to turn on the Apache2 rewrite module1. Open/etc/apache2/apache2.confChange allowoverride None in the file to allowoverride all2, modify the mods-enable configuration, add a software linkcd/etc/apache2/mods-Enable
-S. /mods-avaiable/rewrite.load Rewrite.load3. Add the. htaccess file under the project root directory, modify the rewrite rule
rewriteengi
Error message.[Wed Nov 05 23:57:10 2014] [Alert] [Client 127.0.0.1] .../wamp/www/.../.htaccess:invalid command ' Rewriteengine ', perhaps misspelled or defined by a module Not included in the server configuration.The rewriteengine command requires rewrite mod support,$>cd/etc/apache2/mods-enabled switch to the mods-enabled directory under Apache$>sudo ln-s. /mods
1. Create in the/etc/apache2/mods-enabled directory Ln-s. /mods-available/rewrite.load Rewrite.loadRewrite.load. /mods-available/rewrite.load Contents of the Rewrite.load fileLoadModule rewrite_module/usr/lib/apache2/modules/mod_rewrite.so
Terminal operation
sudo a2enmodThe program prompts the module name that is available for activation, enter:Re
:./configure--prefix=/usr/local/apr(You can use echo $ after executing the command. Check that the previous command was executed correctly)Again: Make makes install (making command is a compile operation)(2) Installation Apr-utilFirst go to the directory:cd/usr/local/src/apr-util-1.6.1Then execute the. Configure (this is where the dependency package path should be added) ./configure--prefix=/usr/local/apr-util--with-apr=/usr/local/aprExecute make make install againWhen this error occurs: A loo
Port MongoDB is listening:27017
All the above information can be modified by editing/etc/mongod.conf.
Open/Close
$ sudo service mongod start
$ sudo service mongod stop
$ sudo service mongod restart
Install PHP Mongodb Driver
1. Install Driver
echo "No" > Answers.txt
sudo pecl install MONGO
2. Open PHP Extension
echo ' extension=mongo.so ' | sudo tee/etc/php5/mods-available/mongo.ini
sudo ln-s/etc/php5/
Transferred from: http://www.cnblogs.com/myzhibie/p/4330327.htmlFor many PHP beginner developers, to build a lamp environment can be used for production is a time-consuming and laborious thing, this article takes ubuntu-server14.04 as an example, gives a tutorial to build the environment for everyone to reference;1. Update the SOFTWARE sourcesudo apt-get update2. Installing Apachesudo apt-get install apache23. See if Apache is installed successfullyApache2–vAs shown below, indicates a successf
/var/www/html and write the following:
Phpinfo ();?>
And under the/etc/php5/mods-available set up a Redis.ini, the contents are as follows:
Extension=redis.so
And in/ETC/PHP5/APACHE2/CONF.D and/ETC/PHP5/CLI/CONF.D to establish a soft link with redis.ini, where the CLI this part is critical, otherwise php-m can not get any of the Redis module information, That cannot be loaded successfully using Phpredis
Ln-s/etc/ph
: error: no acceptable C compiler found in $PATHSee `config.log‘ for more details[[emailprotected] apr-1.6.3]# echo $?1Workaround: Install GCCyum install gcc -yOnce again, config compiles successfully[[emailprotected] apr-1.6.3]# ./configure --prefix=/usr/local/apr[[emailprotected] apr-1.6.3]#make make install[[emailprotected] apr-1.6.3]# echo $?04. Compile and install apr-util-1.6.1cd /usr/local/src/apr-util-1.6.1./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/aprmake make inst
installation of MOD-JK, mods-enabled inside will be more than one jk.load
Create file/etc/apache2/mods-enabled/jk.conf
>nano/etc/apache2/mods-enabled/jk.conf
Jkworkersfile/etc/apache2/workers.propertiesJkshmfile/var/log/apache2/mod_jk.shmJklogfile/var/log/apache2/mod_jk.logJkloglevel Info
Create file/etc/apache2/workers.properties
>nano/etc/apache2/workers.prope
In Ubuntu and Debian, the APACHE2 main functional modules (Multi-Processing module, multi-channel processor, abbreviated MPM) are divided into different packages, respectively:
Apache2-mpm-event: Event-driven MPM;
Apache2-mpm-perchild: This is just a transitional "fake" package that relies on worker;
Apache2-mpm-prefork: Traditional MPM, compatible with apache1.3, not using threads;
Apache2-mpm-worker: High speed MPM supporting multithreading and multi-process hybrid models;
Ubuntu recommends u
=/usr/local/apr
[[emailprotected] apr-1.6.3]# echo $?
After installing GCC, execute the configuration command and then compile the installation: [[emailprotected] apr-1.6.3]# make make install
[[emailprotected] apr-1.6.3]# ls /usr/local/apr/
bin build-1 include libb) Install the Apr-unit package[[emailprotected] apr-1.6.3]# cd ../apr-util-1.6.1
[[emailprotected] apr-util-1.6.1]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
[[emailprotected] apr-util-1.6.1]# make make
Von. Neumann architecture: Arithmetic, controller, memory, output device, input deviceDatabase server: Oracle, sun,mysql,mariadbServer shape classification is divided into three categories: Tower type, rack type, blade typeMost commonly used for rack-mounted serversRack-Mount Rack Server Specifications:19 inch width, height in U, u=1.75 inch = 44.45 mmThere are usually several standard 1u.2u.3u.4u.5u.7uCpu:cental Processing Unit CPU, composed of controllers and operatorsCompanies that produce se
() {
This.initialize.apply (this, arguments);
}
}
}
Parsing: From the code perspective, the object contains only one method: Create, which returns a function, that is, a class. But it's also a class.
constructor, where the initialize is invoked, which is the initialization function that is defined when the class is created. By such means,
You can implement the class creation pattern in prototype
Example:
var vehicle=class.create ();
vehicle.prototype={
Initialize:function (type) {
T
();
vehicle.prototype={
Initialize:function (type) {
This.type=type;
}
Showself:function () {
Alert ("This vehicle is" + this.type);
}
}
var moto=new vehicle ("moto");
Moto.showself ();
For more detailed information on prototype, please go to its official website to view it.
There is more to the comment on this understanding, I will no longer add, we can see a deeper under
From NLTK import clean_html to beautifulsoup import beautifulstonesoup content = ' Is anyone else has troubles with
Bluetooth on a Moto X? \u00a0it connects fine to I-I make a call, but the Bluetooth drops in and out, and the phone prompts me? Ask W Hether I want to use the speakerphone, the headset, or the bluetooth-but a few seconds, it later BL Uetooth. \u00a0and Oddly, it only happens some to the time. \u00a0and Other uses of Bluetooth to phone-fo
1, apply the use
Script language="Web effects"type="Text/javascript">
/* Official Explanation: A method of applying an object, Replaces the current object with another object.
the difference between apply and call is that the second argument is different. Apply is an array or arguments object. And call is any type separated by commas. */
var class = {
create:function () {return
function () {
this.initialize.apply (this,arguments);
}
}
}
var vehicle = class
context of a function from the initial context to the new object specified by Thisarg.If the Thisarg parameter is not supplied, the Global object is used as a thisarg
Related tips:
Application call and apply there is also a trick inside, is to use call and apply another function (class), the currentA function (class) has a method of another function (class) or a property, which can also be called inheritance. Look at the following example:
Demo of Inheritancefunction Base () {This.member = "Dnn
Foreign trade stations to promote a variety of ways, God Horse blog marketing, god horse email strategy, and so on, but also can be said to be blooming, but the site's promotion process, can not be offset that is the main line of SEO, for foreign trade stations, SEO optimization is the preferred way to promote the site.
First of all, the analysis of product keywords, keyword positioning is more troublesome things, the same keyword in different countries, their name may be different, for foreign
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.