linux rpm安裝apache php mysql

來源:互聯網
上載者:User

標籤:log   網站   title   linu   檔案   art   php5   yum   日誌   

CentOS 可以通過 yum 安裝: 
yum -y install httpd php php-mysql  mysql-server
service httpd status|start|stop|restart|reload 

service mysqld status|start|stop|restart|reload

網站根目錄 /var/www/html/ 
Apache主目錄 /etc/httpd/ 
Apache主設定檔 /etc/httpd/conf/httpd.conf 
Apache日誌 /etc/httpd/logs/ 

PHP主目錄 /etc/php.d/ 
PHP設定檔 /etc/php.ini 
PHP模組位置 /usr/lib/php/ 或者 /usr/lib64/php/ 

MySQL設定檔 /etc/my.cnf 

MySQL資料庫檔案 /var/lib/mysql/
運行 mysql_secure_installation 設定mysql根使用者密碼

Ubuntu可以這樣安裝: 
sudo apt-get -y install apache2 php5 php5-mysql mysql-server mysql-client

sudo service apache2 status|start|stop|restart|reload
sudo service mysql status|start|stop|restart|reload

網站根目錄 /var/www 
Apache主目錄 /etc/apache2/ 

Apache主設定檔 /etc/apache2/apache2.conf
Apache日誌 /var/log/apache2/

PHP主目錄 /etc/php5/ 
PHP設定檔 /etc/php5/apache2/php.ini 
PHP模組位置 /usr/lib/php5/ 

MySQL設定檔 /etc/mysql/my.cnf 
MySQL資料庫檔案 /var/lib/mysql/
運行 mysql_secure_installation 設定mysql根使用者密碼

linux rpm安裝apache php mysql

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.