In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail the process of setting up other files for VirtualBox installation and CentOS virtual system configuration. The content of the article is of high quality, so the editor will share it for you to do a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
In particular, it is worth mentioning that CentOS has a lot to learn. Here we mainly introduce the configuration in VirtualBox installation, including VirtualBox installation and so on. The Linux distribution of the CentOS community is called CentOS Linux. Due to the use of recompiling the source code of RHEL to generate a new distribution, CentOS Linux has very good compatibility with RHEL products and is born with many of the excellent features of RHEL.
Recently, we need to configure a php environment, of course, windows is also OK, but we still choose to install a CentOS. After a long period of exploration, we finally finished configuring CentOS 5.3+Apache+MySql5+php5 in the .VirtualBox installation.
1. Download the * version of virtualbox from http://www.virtualbox.org/ [direct download = > http://download.virtualbox.org/virtualbox/3.0.2/VirtualBox-3.0.2-49928-Win.exe].]
two。 Download the iso file from http://www.centos.org/ [download directly = > http://mirror.averse.net/centos/5.3/isos/i386/CentOS-5.3-i386-bin-DVD.iso].]
3.VirtualBox installation.
4. Establish a CentOS virtual system, and VirtualBox install the operating system, follow the prompts to operate.
5. After entering the system, select "Devices-> install Enhancement package" in the system window, and load the enhanced package iso installed by VirtualBox.
6. Press [ctrl+alt+f1] to enter the command line interface and log in as root.
7. Run the following command to install the enhancement package to successfully install the enhancement package:
Yum install kernel-devel
Yum install gcc
Ln-s / usr/src/kernels/2.6.18-92.1.18.el5-i686 / usr/src/linux
Sh VBoxLinuxAdditions-x86.run
8. Install apache,mysql,php as follows:
Yum-y install httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-mcrypt php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc mysql-connector-odbc mysql-devel libdbi-dbd-mysql
9. Install the php extension:
Yum-y install php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc
10. Install the apache extension:
Yum-y install httpd-manual mod_ssl mod_perl mod_auth_mysql
11. Start mysql:
/ etc/init.d/mysqld start
twelve。 Set the root password for mysql:
Mysqladmin-u root password 'your password'
13. Press [ctrl+alt+f7] to switch to the graphical interface.
14. Configure apache multi-site, find / etc/httpd/conf/httpd.conf, open it with a text editor, find [# NameVirtualHost *: 80], and remove the previous [#] sign.
15. Find [DirectoryIndex index.html index.shtml] and add a [index.php].
16. Create a new [vhosts.conf] file in the [/ etc/httpd/conf.d] folder in the following format (suppose I want to create two sites http://www.yomeier.com/ / http://www.k2046.cn/), corresponding to the website file should be placed in the [/ var/www/yomeier] and [/ var/www/k2046] directories:
ServerAdmin xxx@live.com
DocumentRoot / var/www/yomeier
ServerName www.yomeier.com
AddDefaultCharset UTF-8
Options All
AllowOverride All
Order allow,deny
Allow from all
ServerAdmin xxx@live.com
DocumentRoot / var/www/k2046
ServerName www.k2046.cn
AddDefaultCharset UTF-8
Options All
AllowOverride All
Order allow,deny
Allow from all
17. Open the terminal.
Start apache:/etc/init.d/httpd start
18. Set apache self-startup:
Chkconfig-add httpd
Chkconfig-level 345 httpd on
19. Set mysql self-startup:
Chkconfig-add mysqld
Chkconfig-level 345 mysqld on
20. Fixed a problem with the resolution of centos when installing full screen in VirtualBox:
Open [/ etc/X11/xorg.conf] with a text editor
Find:
SubSection "Display"
Modes "1280x800"800x600" # just change it here as needed on the screen
EndSubSection complete!
On VirtualBox installation to establish CentOS virtual system configuration other files is shared here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.