Linux shared memory

Source: Internet
Author: User


Overview
To support shared memory in Apache/eapi, you need to create a mm shared memory library. In this case, it will allow mod_ssl to use an efficient Ram-based session cache instead of a disk-based session cache.
Notes
All the following commands are UNIX-compatible commands.
The Source Path is "/var/tmp" (other paths can also be used in actual situations ).
Installed in RedHat Linux 6.1 and passed the test.
Use the "root" user for installation.
The mm version is 1.0.12.
Package Source
MM homepage:
Must be sure to download: mm-1.0.12.tar.gz
Precautions for installing software packages
It may be a good idea to save the file list before and after mm installation. Then, use diff to compare the two file lists to find out where the MM file is installed, run "find/*> MM1" before installing mm, and run "find/*> mm2" after installing mm ", run the command "Diff MM1 mm2> MM" to obtain the list of installation files.
Compile Program
Decompress the software package (tar.gz:
[Root @ Deep] # cp mm_version.tar.gz/var/tmp
[Root @ Deep] # cd/var/tmp
[Root @ Deep] # tar xzpf mm_version.tar.gz
Compile and install
CD to enter the new mm directory and then enter the following command on the terminal:
./Configure
-- Disable-shared
-- Prefix =/usr
This step tells mm to disable the shared library for the current hardware configuration.
[Root @ Deep] # Make
[Root @ Deep] # Make Test
[Root @ Deep] # make install
Note: The "Make Test" command will perform some important tests to verify whether the program works properly and respond correctly before installing the program.
Clear unnecessary files
[Root @ Deep] # cd/var/tmp
[Root @ Deep] # rm-RF mm-version/mm_version.tar.gz
The RM command clears all the source files used for compiling and installing the MM service, and also clears the compressed mm files from the "var/tmp" directory.
More information
For more detailed information, see the following man instructions.
Mm (3)-shared memory library
Mm-config (1)-Mm library configuration/build Utility
Files installed in the system
> Usr/bin/MM-config
> Usr/include/mm. h
> Usr/lib/libmm. La
> Usr/lib/libmm.
> Usr/man/Man1/mm-config.1
> Sr/man/man3/mm.3
Edit responsibility: hilinux (01-04-12) [close the window] [resend email]

=> tips <=
you are welcome to post your personal opinion on this Article , note the following before posting:
1. You must be a registered user of linuxaid and can publish a post only after you have successfully logged on, please click here to log on. If you have not yet registered, please click here to register. After you have logged on/registered, the system will automatically bring you back to this page;
2. Your content right represents your personal opinion and has nothing to do with the position of linuxaid. If necessary, you must be fully liable for your published content;
3. Your content cannot contain pornographic content, illegal content, or remarks that endanger national security; otherwise, you will be held accountable in accordance with the law.
when you fill in the corresponding content of your opinion, note the following:
1. the maximum length of a topic is 120 bytes. Only Chinese and English characters except "" and "" are allowed;
2. the maximum content length is 250 bytes and can contain any character.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.