歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

關於yum安裝lamp作一些記錄

關於yum安裝lamp作一些記錄   在centos中使用yum安裝lamp比較方便,   apache安裝:yum install httpd   php安裝:yum install httpd   mysql安裝:yum install mysqld   安裝mysql之後要設置密碼,然後輸入命令:mysql_secure_installation;   系統提示:  www.2cto.com     In order to log into MySQL to secure it, we'll need the current   password for the root user. If you've just installed MySQL, and   you haven't set the root password yet, the password will be blank,   so you should just press enter here.   Enter current password for root (enter for none):   (一般剛裝上mysql,root沒有密碼,在此直接Enter)   Setting the root password ensures that nobody can log into the MySQL   root user without the proper authorisation.   Set root password? [Y/n] Y   New password: 12345678    //設定新密碼   Re-enter new password:12345678   //再次確認密碼   之後一路Enter就可以了  www.2cto.com     讓PHP支持mysql yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc  php-mbstring   .配置httpd、mysqld開機自啟動   chkconfig mysqld on chkconfig httpd on   重啟httpd
Copyright © Linux教程網 All Rights Reserved