LAMP- CentOS 7平台三機FastCGI模型

來源:互聯網
上載者:User

標籤:wordpress   windows   

需求:

     CentOS 7 lamp(php-fpm)

    (1)三者分離於三台主機

    (2)一個虛擬機器主機用於提供phpMyAdmin;另一個虛擬機器主機用於提供wordpress;

    (3)xcache


實驗準備:

# setenforce 0# systemctl stop iptables # systemctl stop firwalld修改檔案:    Linux: /etc/hosts    windows:\Windows\System32\drivers\etc\hosts新增內容:    10.0.0.61     10.0.0.61


實驗環境

三者分離於三台主機

host1: 10.0.0.61 httpdhost2: 10.0.0.62 php-fpmhost3: 10.0.0.63 mariadb


Host1

# yum install httpd -y


Host2

# yum install php-fpm php-mysql php-mbstring -y

編輯設定檔:

# vim /etc/php-fpm.d/www.conf listen = 127.0.0.1:9000 listen.allowed_clients = 127.0.0.1 修改為 listen = 10.0.0.62:9000   //本地的ip地址,監聽在哪個連接埠 listen.allowed_clients = 10.0.0.61  //允許哪個地址的訪問
systemctl start php-fpm


Host3

# yum install mariadb-server -y# systemctl start mariadbmysql> create user [email protected]‘10.0.0.%‘;mysql> grant all on *.* to [email protected]‘10.0.0.%‘ identified by ‘123456‘mysql> create user ‘wordpress‘@‘10.0.0.62‘;mysql> create database wordpress;mysql> grant all on wordpress.* to ‘wordpress‘@‘10.0.0.62‘ identified by ‘wordpress‘


建立虛擬機器主機











LAMP- CentOS 7平台三機FastCGI模型

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.