directory and create inmod. mod. php as follows:Copy codeThe Code is as follows: Class inmod{Function _ construct (){Echo 'I am the in under the mods ';}}
Create the libs folder in the test directory and create inlib. lib. php as follows:Copy codeThe Code is as follows: Class inlib{Function _ construct (){Echo 'I am in libs ';}}
Finally, create loader. php In the test directory as follows:Copy codeThe Code is as follows: Class Loader {/*** Automatica
String msg() { return "from module 2!"; } }
So far, the module-info.java is still empty.
Compile the Java Module
Now proceed to the next step: compile our module and associate the source file. To do this, we will introduce a new javac compilation parameter:
1
javac -modulesourcepath src -d mods $(find src -name '*.java')
When using the preceding statement, we assume that the command program is already in the up
: var jQuery = require ("jquery ");
7. context
When we are in a require module, if we include variables in require, like this:
require("./mods/" + name + ".js");
We cannot know the specific modules during compilation. But at this time, webpack will also do some analysis for us:
1. Analysis Directory: './mods ';
2. Extract the regular expression '/^. *. js $ /';
In this case, we can specify the path for comp
-mods-shared=all #指定动态编译所有模块--enable-cache=static #指定静态编译该模块--enable-so #动态加载选项, which means that you can dynamically load your own compiled modules in a configuration fileNote: When the--enable-modules=all and--enable-mods-shared=all two parameters are present, unlessThe--enable-[module]=static method is specifically specified as static compilation, otherwise all modules will be dynamically compiled.If the
beginning RVA of the code segment// The calculation formula for the program entry is a relative offset address. The calculation formula is:// Code write address + codeoffset
Entrywrite = header-> section_header [0]. pointertorawdata + header-> section_header [0]. Misc. virtualsize;// Physical offset of code writingMoD = entrywrite % 16;// Align the BoundaryIf (MODS '= 0){Entrywrite + = (16-mods );}Oldentry
=/usr/local/pcre--with-z=/usr/local/zlib--with-apr=/usr/local/ Apr--with-apr-util=/usr/local/apr-util--enable-modules=most--enable-mods-shared=most--enable-mpms-shared=all-- With-mpm=event--enable-proxy--enable-proxy-fcgi--enable-expires--enable-deflate★ Note: Explanation of relevant parameters--ENABLE-SO: Support dynamic sharing module (that is, open DSO support)--ENABLE-CGI: Enable CGI--ENABLE-CGID:MPM: Using an event or worker to enable Cgid--ENABL
(/usr/local/src/httpd-2.2.16 directory)./configure--prefix=/usr/local/apache2--enable-mods-shared=most--enable-so--prefix=: Installation path--enable-mods-shared=most: Most of the modules installed are installed in a shared manner and are dynamic, as they are usedStatic memory-intensive--ENABLE-SO: Enable DOSThis step is wrong, the information is as follows: prompted to install GCCConfigure:error:in '/USR/
--prefix=/usr/local/apache \ Setting Installation location--ENABLE-SO \ Let Apache core to be installed in DSO--enable-rewrite \ Enable override feature--enable-mods-shared=most \ Dynamic Compilation of most commonly used modules--with-mpm=worker \--with-mpm=prefork|worker|event Apache's three MPM models--disable-cgid \ Prohibit execution of CGI scripts with an external CGI daemon--disable-cgi Disable compiling CGI versions of PHP8. Turn the compilati
step.c)
sudo chown-r mysql var
# Change group properties to MySQL Group
sudo chgrp-r MySQL.
Step.f
# Start MySQL Service
Sudo/usr/local/mysql/bin/mysqld_safe--user=mysql
# Log in to the database
/usr/local/mysql/bin/mysql-uroot
MySQL Setup is complete.
Three, the installation of Apache
# Use DSO dynamic compilation, about dynamic compilation and static compilation of the difference can refer to http://www.ha97.com/2612.html
Install package httpd-2.2.14.tar.gz
TAR-ZVXF httpd-2.2.14
# ldconfig-v
Second, the installation of Apache (httpd-2.0.59.tar.gz)# tar zxf httpd-2.0.59.tar.gz# CD httpd-2.0.59#./configure--prefix=/usr/local/apache--enable-so--enable-rewrite--enable-mods-shared=mostDescription--ENABLE-SO option: Let Apache can support DSO mode, note that here is the Apache2.0 syntax. If your Apache is version 1.3, you should change to--enable-module=so.--enable-mods-shared=most opti
Original address: Http://blog.njmars.com/myhan/archive/2004/07/16/210.aspx
Environment:RedHat 9.0DescriptionCommands that are executed by a normal user, starting with $Using # begins with the command that the root account executes
First step: Install ApacheDownload apache2:http://httpd.apache.org/download.cgiI need mod_ssl support, and apache1 different is, mod_ssl is not a separate module, but placed in the Apache release package, the default is not enabled, config when the choice on it.I use t
profile environment.
# Ldconfig//Create dynamic link library cache file.
# javac-d. Helloworld.java//Compile test file.
# java HelloWorld//Run program test whether the installation was successful.
Five. Install Apache
# tar Xvzf httpd*//Extract source pack.
# CD httpd*//Enter the installation directory.
#./configure--prefix=/usr/local/apache--enable-so--enable-mods-shared=most--enable-rewrite
# Make;make Install//compile and install.
Descrip
connections-managing user files for Digest authentication
--enable-static-rotatelogs
Compiling rotatelogs with a static connection-scrolling the Apache log's pipeline log program
--enable-static-logresolve
Compiling logresolve with static connections-resolves the IP address in the Apache log to host name
--enable-static-htdbm
Compiling htdbm with static connections-manipulating the DBM password database
--enable-static-ab
Compiling ab-apache HTTP server performance test tools with stati
color
For example, an element modifier that changes the current option
modifiers from the point of view of the input data
In the Bem tree, modifiers are used to describe a block or an attribute of an element entity.
For example, they can be used as attribute nodes of XML:
You can also use JSON:
{ block: "menu", mods: [ { size: "big" }, { type: "buttons" }
modifiers from a html/css perspective
For a block or an element, t
gcc gcc-c++MakeMake installInstall Apache:CD httpd-2.4.33./configure--prefix=/usr/local/apache--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util--with-pcre=/ Usr/local/pcre--enable-so--enable-mods-shared=mostMake make InstallComplete the installationDescription:--enable-so: Indicates support for dynamic expansion module,--enable-mods-shared=most5. Go to Apache directory: Cd/usr/local/apacheBIN/H
going to change back.Compared to the previousPerfect ending.Apache InstallationHTTPD, why not call Apache?HTTPDS is the flagship of the Apache Foundation. The earlier version was called Apache.The presence of APR and Apr-util can be ported across platforms.So will download Apache,apr,apr-util this package.This will install the httpd using a compile-and-install approach.
Download three packages. and unzip.
Install Apr first. is to enter the APR directory and then config to make the
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.