MySQL upgrade under <postfix Mail Service >

Source: Internet
Author: User
Tags tidy

The film service environment of Red Hat Enterprise Edition 6.5, 6.3 of the test may be slightly different, but the method is roughly the same.

The postfix version of the current system is postfix-2.6.6-2.2.el6_1.x86_64

We want to use the latest to go online Dow under the latest. Get the new Postfix package postfix-2.11.0.tar.gz

After extracting it, a directory is generated and is switched to this directory. CD postfix-2.11.0

Our previous article mentioned that if there is a. spec file can be installed into the installation package, the direct installation is very convenient find-name ' *.spec ', found that there is no. spec such a file.

We know that many of the source packages are compiled and installed to get help from the install file.

Vim Install//can view the Help for installation upgrade, below is the key line template in the file.

$ make-f Makefile.init makefiles

Locate the key row, generate the compiled file, compile the make-f makefile.init makefiles the missing library file, install the library file.

Version 6.3 of Mysql-devel this package. If 6.5, just install yum install db*-devel-y so it's OK.

Then recompile the make-f makefile.init makefiles, and when the compilation is complete, the MySQL plugin disappears, which is obviously not the result we want.

You can view the services and plugins that are supported by the Mail service

Postconf-a

Postconf-a

Postconf-m

Make tidy//compile complete or fail will produce a lot of temporary files, will cause our other services in the future barrier, clear the compilation generated temporary files

CD readme_files///We also know that many source packages are the same, in addition to the install can get help, the next is the Readme_files directory, which wrote a lot about the mail other plug-in upgrade program.

Less Mysql_readme//view compile Help for MYSQL under mail

Locate the following line: He will prompt that if you are using the above for other Linux versions, if Solaris uses the following, of course the following is just the template.

/*

In order to build Postfix with MySQL map support, you'll need to Add-dhas_mysql and-i for the directory containing th e MySQL headers, and the Mysqlclient library (and LIBM) to Auxlibs, for example:

make-f makefile.init makefiles \ ' ccargs=-dhas_mysql-i/usr/local/mysql/include ' \ ' auxlibs=-l/usr/ Local/mysql/lib-lmysqlclient-lz-lm '

On Solaris, use this instead:

Make-f makefile.init makefiles \ ' ccargs=-dhas_mysql-i/usr/local/mysql/include ' \ ' auxlibs=-l/usr/local/ Mysql/lib-r/usr/local/mysql/lib \-lmysqlclient-lz-lm '

*/

The following version is 6.5, 6.3 slightly different, but the same way

RPM-QL mysql-devel//view MySQL compile/library path, why need the following path, the above compilation will call the GCC and library files, many software is written in C, it needs to find the C and the library header file. h starts with C files.

This is 6.5, the above MySQL compilation, the two paths pasted in the past is OK,

/Usr/include/mysql/sslopt-case.h

/usr/lib64/mysql/libmysqlclient.so

6.3

/usr/include/mysql/typelib.h
/usr/lib/mysql/libmysqlclient.so
Is the following look:

Mkae Tidy//Clears the last file that failed the last compilation,

Make-f Makefile.init makefiles

Ccargs represents a macro. Used to replace the default value in Makefile ' Ccargs=-dhas_mysql-i/usr/include/mysql '//-i path represents the search header file in the specified path

-lz means searching for libz.so or LIBZ.A, which is abbreviated, only one z is written, and Lmysqlclient is LIBMYSQLCLIENT.SO/LIBMYSQLCLIENT.A

' Auxlibs=-l/usr/lib64/mysql-lmysqlclient-lz-lm '

Make upgrade//finish compiling to upgrade

POSTCONF-M//This time you can see the MySQL plugin

The following belongs to the test, send an email test OK?

Postconf-n//Can view some parameters of mail

POSTCONF-E Inet_interfaces=all//Everyone can use the Mail service postfix reload//Reload

Postfix stop postfix start netstat-antple

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.