To download the following resources, go to http://download.csdn.net/detail/osyun/4421715. If the blog Park gives me the permission to be greater than 30 m, I will send the package to the blog Park.
The installation environment I use is rhel5.5. If the package is for another system, you can refer to the following offline installation method to do it yourself. This article only provides you with a convirt offline installation method. In rhel5.5, this document is fully valid only when GCC is retained. Because the GCC compilation is required when installing Python 2.6.5.
1. Build a local Yum Source
1. Create a New/Yum folder and copy all the packages in the server folder on the CD to Yum.
2. Create a configuration file
# Vi/etc/yum. Repos. d/convirt. Repo
[Convirt]
Name = convirt Repository
Baseurl = file: // yum
Enabled = 1
Gpgcheck = 0
Delete other configuration files
3. Modify VI/usr/lib/python2.4/Site-packages/Yum/yumrepo. py
Locate remote = URL + '/' + relative
Change to remote = URL + '/Yum' + relative
4. Install the createrepo package
# Rpm-Qa | grep createrepo
If not installed, locate the createrepo-0.4.11-3.el5.noarch.rpm directly in/Yum and install
5. Create a resource library: createrepo local source directory
# Createrepo/yum
6. Clear update information
# Yum clean all
Note:
The above is for reference only. The packages actually dependent on convirt are as follows:
- Openssh-server openssh-clients Python-devel xen socat dnsmasq tunctl Python-paramiko GCC mysql-devel mysql-Server
If you can find the dependencies of these packages, you do not need to copy all the RPM files on the server to/yum.
Ii. Install python2.6.5
Copy python-2.6.5.tar.bz2 to/usr/local and decompress the package.
./Configure; Make; make install
Note:
It is best to use python2.6.5, because the package I compress is based on Tg2 installed in this Python version. It is not verified whether I can use compressed packages in other versions of Python, but Tg2 can only use python2.5 or 2.6.
Copy conw.-2.0.1-zh-lt.tar.gzand conw.-install-2.0.1.tar.gz to the working directory and decompress the package.
Note:
Use root for installation. Con0000-2.0.1-zh.tar.bz2 is packaged after being installed successfully with the root user. If it is installed by another user, an MD5 verification failure error will be reported during the execution of./setup_tg2. If you want to use other users for offline installation in the production environment, use this user to install it online and use it after packaging.
4. Copy ez_setup.py and setuptools-0.6c11-py2.6.egg and virtualenv-1.7.1.2-py2.6.egg to the $ home working directory. We use the root user, so copy it to/root.
5. Modify ~ /Convirt-install/CMS/common/functions
Install_ez_setup ()
{
$ Sudo wget http://peak.telecommunity.com/dist/ez_setup.py
$ Sudo Python ez_setup.py
}
Change
Install_ez_setup ()
{
# $ Sudo wget http://peak.telecommunity.com/dist/ez_setup.py
CP-R ~ /Virtualenv-1.7.1.2-py2.6.egg/usr/local/lib/python2.6/Site-packages
$ Sudo Python ~ /Ez_setup.py
}
6. Install Dependencies
#./Convirt-install/CMS/scripts/install_dependencies
7. Modify the MySQL configuration and add the following content in the [mysqld] section of the/etc/My. CNF file:
Innodb_buffer_pool_size = 1g
Innodb_additional_mem_pool_size = 20 m
8. Restart MYSQL:
#/Etc/init. d/mysqld restart (RHEL)
9. Install convirt
# Source ~ /Convirt-install/CMS/scripts/install_config
CD./convirt-install/CMS/scripts/
./Setup_tg2
./Setup_convirt
Note:
If the following error is reported during execution of./setup_convirt:
Cannot run Setup while convirt is running...
Please use 'convirt-CTL stop' to stop the existing convirt Process
Delete ~ /Convirt/Paster. PID and execute again./setup_convirt
The above is the offline installation of the convirt Management Terminal. For offline installation of computing nodes, see http://www.cnblogs.com/osyun/archive/2012/04/17/2453580.html
The following is a script compiled during offline installation. If you are interested, you can study the principle of offline installation.
Prg_name = ~ /Convirt-install/CMS/scripts/install_dependenciesbase = ~ /Convirt-install/CMS/scripts common_scripts = ~ /Convirt-install/common/scriptscommon_install_scripts = ~ /Convirt-install/CMS/commondist = redhatcode_name = tikangaver = 5.5 kernel = 2.6.18-194. el5xenarch = x86_64source ~ /Convirt-install/common/scripts/functionssource ~ /Convirt-install/CMS/common/functionsdetect_distro # This function is used to set the source ~ values of DIST, code_name, and Ver ~ /Convirt-install/common/scripts/redhat_functionssource ~ /Convirt-install/CMS/common/redhat_functionssource ~ /Convirt-install/CMS/scripts/install_configinstall_cms_prereq_packages () {$ sudo Yum install-y openssh-server openssh-clients Python-devel xen socat dnsmasq tunctl Python-paramiko GCC mysql-devel mysql-server} install_ez_setup () {$ sudo wget http://peak.telecommunity.com/dist/ez_setup.py # Delete $ sudo Python ez_setup.py} install_virtualenv () {$ sudo easy_install virtualenv} # Install ~ /Convirt-install/CMS/export install_perl_modules () {t_dir = 'mktemp-d' tar-xzf $ base/HTML-Tagset-3.20.tar.gz-C $ t_dir (CD $ t_dir/HTML-Tagset-3.20; perl makefile. PL; Make; $ sudo make install) If ["$? "! = 0]; then err_code = $? Echo "error installing HTML-tagset Perl module. "RM-RF $ t_dir return $ err_code fi tar-xzf $ base/HTML-Parser-3.64.tar.gz-C $ t_dir (CD $ t_dir/HTML-Parser-3.64; Perl makefile. PL; Make; $ sudo make install) If ["$? "! = 0]; then err_code = $? Echo "error installing HTML-parser Perl module. "RM-RF $ t_dir return $ err_code fi rm-RF $ t_dir} additional_setup_mysql () {/etc/init. d/mysqld start chkconfig -- level 345 mysqld on ### automating this is not working because of stty error. # TBD: Try it with pexpect sometime. ### if [-E/usr/bin/mysql_secure_installation]; then #### create response file for running secure installation script #### Change Password? Y #### enter new password: convirt. #### Remove anonymous user: Y #### disallow root login remotely: Y ### Remove test database? Y #### reload privilege tables now? Y ###### mysql_secure_inst_resp_file = 'mktemp-T secret' ### cat <EOF> $ mysql_secure_inst_resp_file ### y ### convirt ### y ### Y ### y #### EOF ###### run the command with the response file. ###/usr/bin/mysql_secure_installation <$ mysql_secure_inst_resp_file ### Rm-F $ response ### Fi if [-E/usr/bin/mysql_secure_installation]; then ECHO "Running mysql_secure_installation. "Echo" Current root password for fresh installation is blank. so simple press Enter. "/usr/bin/mysql_secure_installation fi return 0} status_mysql () {$ sudo/etc/init. d/MySQL status}
The above script is executed when the dependency is installed. I will not explain it clearly. If you understand shell, you can study it.
If you are not clear about the above or have any problems during the installation process, please leave a message. If you have any shortcomings, I hope you can point them out. Thank you!