Source Package Installation
1Remote Transfer ToolWinSCPTransmissionApacheto theLinux.
httpd
2installation
1) Decompression
2)CdUnzip Directory
3)viewing the installation documentation
INSTALL README
4) prepare before compiling
./configure--prefix=/usr/local/apache2
Features:
1detect system environment, generateMakefile
2Defining software Options
5)compilingMakeclean
Make
6) Compile and install
Make install
Error Judgment:
First: Does the installation process stop
Second: noteError Warning Noand other error alarms
3Start
/usr/local/apache2/bin/apachectl start
4Delete
Delete the installation directory directly
CDYumSource Construction
1, Mount CD
#mount/dev/sr0/mnt/cdrom
2, let the networkYumsource file Invalidation
#cd/ETC/YUM.REPOS.D
#mv MV Centos-base.repo Centos-base.repo.bak
#mv Centos-debuginfo.repo Centos-debuginfo.repo.bak
#mv Centos-vault.repo Centos-vault.repo.bak
3, modify discYumsource File
#vim Centos-media.repo [C6-media]
name=centos-$releasever-media
Baseurl=file:///mnt/cdrom
#address for your own disc mount address
# file:///media/cdrom/
# fils:///media/cdrecorder/
#Note these two non-existent addresses
Gpgchech=1
Enabled=1
#putEnable0insteadEnable=1, let thisYumSource configuration file is in effectGpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6
Source Package and the difference between RPM packages
difference
differences before installation: conceptual differences
the difference after installation: different installation locations
2,RPM Package Installation location
is installed in the default location
RPM Package default installation path
/etc/ configuration file installation directory
/usr/bin/ executable Command installation directory
/usr/lib where the library of functions used by the program is saved
/usr/share/doc Basic Software User manual save location
/usr/share/man/ Help File save location
3. Source Package Installation Location
installed in the specified location, usually the/usr/local/ software name
4, the impact of different installation location
RPM Package Installed services can be managed using the System Service Management command (service), such as the boot method for the Apache installation of RPM packages :
/etc/rc/init.d/httpdstart
Service Httpdstart
The source package installation service cannot be managed by the Service Management command because it is not installed in the default path. Therefore, the service can only be managed with an absolute path, such as:
/usr/local/apache2/bin/apachectlstart
Source Package Installation process
1. Installation Preparation
installation C language Compiler
Download the source package
Http://mirror.bit.edu.cn/apache/httpd
2, installation precautions
Source Package Save location:/usr/local/src.
Software Installation location:/usr/local/
How to determine the installation process error:
installation process stopped
and a hint of error, warning, or No
3. Source Package Installation Process
Download the source package
unzip the downloaded source package
go to unzip directory
./configure--prefix=/usr/local/apache2 # software configuration and inspection
define the required feature options
detects if the system environment meets the installation requirements.
The definition of functional options and the detection system environment information
are written Makefile file for subsequent edits
Make compilation (if Makeclean is maintained)
Makeinstall Compiling and installing
Start
/usr/local/apache2/bin/apschect1start
4, the source package uninstall
You do not need to uninstall the command, directly delete the installation directory. Don't leave any junk files behind
Script Installation Methods
1. Script installation Package
The script installation package is not a standalone package type, the common installation is the source package
The installation process has been written to the automatic installation of the script, as long as the execution of scripts, define simple parameters, you can complete the installation
The very class is with How the software is installed under Windows.
2, the role of Webmin
Webmin is a Web - based Linux System management interface. You can set up user accounts,Apache,DNS, file sharing and other services in a graphical way
3.Webmin installation process
download Software
http://sourceforge.net/projects/webadmin/files/webmin/
unzip, and go to the Add compression directory
executes the installation script ./setup.sh
installation location, log location,perl installation location, port, administrator name, Administrator password,SSL: Not enabled, turn on startup
This article from "Wu Dick" blog, declined reprint!
linux-Software Installation (iii)