頻道欄目
首頁 > 資訊 > php > 正文

LNMP環境搭建:PHP搭建

17-12-18        來源:[db:作者]  
收藏   我要投稿

安裝PHP

[root@VM_88_143_centos ~]# yum install php-fpm php-mysql -y
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package php-fpm.x86_64 0:5.3.3-49.el6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-49.el6 for package: php-fpm-5.3.3-49.el6.x86_64
---> Package php-mysql.x86_64 0:5.3.3-49.el6 will be installed
--> Processing Dependency: php-pdo(x86-64) for package: php-mysql-5.3.3-49.el6.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.3-49.el6 will be installed
---> Package php-pdo.x86_64 0:5.3.3-49.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================
 Package                                         Arch                                        Version                                           Repository                               Size
=============================================================================================================================================================================================
Installing:
 php-fpm                                         x86_64                                      5.3.3-49.el6                                      os                                      1.1 M
 php-mysql                                       x86_64                                      5.3.3-49.el6                                      os                                       86 k
Installing for dependencies:
 php-common                                      x86_64                                      5.3.3-49.el6                                      os                                      530 k
 php-pdo                                         x86_64                                      5.3.3-49.el6                                      os                                       80 k

Transaction Summary
=============================================================================================================================================================================================
Install       4 Package(s)

Total download size: 1.8 M
Installed size: 6.5 M
Downloading Packages:
(1/4): php-common-5.3.3-49.el6.x86_64.rpm                                                                                                                             | 530 kB     00:00     
(2/4): php-fpm-5.3.3-49.el6.x86_64.rpm                                                                                                                                | 1.1 MB     00:00     
(3/4): php-mysql-5.3.3-49.el6.x86_64.rpm                                                                                                                              |  86 kB     00:00     
(4/4): php-pdo-5.3.3-49.el6.x86_64.rpm                                                                                                                                |  80 kB     00:00     
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                        8.9 MB/s | 1.8 MB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : php-common-5.3.3-49.el6.x86_64                                                                                                                                            1/4 
  Installing : php-pdo-5.3.3-49.el6.x86_64                                                                                                                                               2/4 
  Installing : php-mysql-5.3.3-49.el6.x86_64                                                                                                                                             3/4 
  Installing : php-fpm-5.3.3-49.el6.x86_64                                                                                                                                               4/4 
  Verifying  : php-fpm-5.3.3-49.el6.x86_64                                                                                                                                               1/4 
  Verifying  : php-pdo-5.3.3-49.el6.x86_64                                                                                                                                               2/4 
  Verifying  : php-mysql-5.3.3-49.el6.x86_64                                                                                                                                             3/4 
  Verifying  : php-common-5.3.3-49.el6.x86_64                                                                                                                                            4/4 

Installed:
  php-fpm.x86_64 0:5.3.3-49.el6                                                                php-mysql.x86_64 0:5.3.3-49.el6                                                               

Dependency Installed:
  php-common.x86_64 0:5.3.3-49.el6                                                               php-pdo.x86_64 0:5.3.3-49.el6                                                              

Complete!

安裝之后,啟動 PHP-FPM 進程:
[root@VM_88_143_centos ~]# service php-fpm start
Starting php-fpm:                                          [  OK  ]

啟動之后,可以使用下面的命令查看 PHP-FPM 進程監聽哪個端口
[root@VM_88_143_centos ~]# netstat -nlpt | grep php-fpm
tcp        0      0 127.0.0.1:9000              0.0.0.0:*                   LISTEN      3425/php-fpm        

把 PHP-FPM 也設置成開機自動啟動:
[root@VM_88_143_centos ~]# chkconfig php-fpm on
至此LNMP環境就已經搭建完成

相關TAG標簽
上一篇:云計算技術之數據結構筆記
下一篇:numpy常用函數之randn函數解析
相關文章
圖文推薦

關于我們 | 聯系我們 | 廣告服務 | 投資合作 | 版權申明 | 在線幫助 | 網站地圖 | 作品發布 | Vip技術培訓 | 舉報中心

版權所有: 紅黑聯盟--致力于做實用的IT技術學習網站

美女MM131爽爽爽毛片