In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what the answers to frequently asked questions about CentOS configuration are, and the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
The problem of CentOS configuration has been a headache for some first-time contacts. This time, we have collected common questions about CentOS configuration for your reference, hoping to solve your current problems. CentOS configuration lamp related problem set
1. The lamp configuration starts normally, but the web page cannot be opened. Network problems may be caused by iptables. You can use iptables-F to cancel all policies.
2. Phpmyadmin cannot be opened, but first close selinux to try, change the SELINUX= "" in the / etc/selinux/config file to disabled, and then restart. You can open phpmyadmin.
I will make detailed adjustments to the above two questions later. After all, it is not safe to close them blindly.
3. There is a problem with yum upgrade. When updating the kernel, warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897, the solution: enter rpm- import / etc/pki/rpm-gpg/RPM-GPG-KEY*, and then enter yum upgrade, rest assured that you will not be allowed to download the kernel file again.
How to use yum to install lamp in CentOS configuration
1:apache
Yum install httpd httpd-devel
Etc/init.d/httpd start
2:mysql yum install mysql mysql-server mysql-devel / etc/init.d/mysqld start set password mysql > USE mysql; mysql > UPDATE user SET Password=PASSWORD ('newpassword') WHERE user='root'; mysql > FLUSH PRIVILEGES; login mysql- u root-p Enter Password in CentOS configuration: create a user management database mysql > create database demo mysql > GRANT ALL PRIVILEGES ON demo.* TO' guest'@'localhost' IDENTIFIED BY 'guest' WITH GRANT OPTION; mysql > UPDATE user SET Password=PASSWORD (' guest') WHERE user='guest'
Install php in the CentOS configuration
Yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml etc/init.d/httpd restart Test php / var/www/html/test.php / / test.php
Install phpmyadmin in the CentOS configuration
Yum install phpmyadmin/ etc/httpd/conf.d/phpmyadmin.conf Order Deny,Allow # Deny from all Allow from 127.0.0.1 Directory > Error The configuration file now needs a secret passphrase (blowfish_secret) / usr/share/phpmyadmin/conf.inc.php $cfg ['blowfish_secret'] 5: install webmin wget rpm-I webmin-1.410-1.noarch.rpm in the CentOS configuration
I have used yum installation to install webmin before, but now I can't, test it. Set password
/ usr/libexec/webmin/changepass.pl / etc/webmin admin
Set up boot boot
Chkconfig httpd on
Chkconfig mysqld on
This is the end of the answers to frequently asked questions about CentOS configuration. I hope the above can help you and learn more. 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.