偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

CentOS上安裝LAMP(適用于所有VPS)

運(yùn)維 系統(tǒng)運(yùn)維
CentOS上安裝LAMP:LAMP是Linux操作系統(tǒng),Apache網(wǎng)絡(luò)服務(wù)器,MySQL數(shù)據(jù)庫,Perl、PHP或者Python編程語言,他具有Web資源豐富、輕量、快速開發(fā)等特點(diǎn),是企業(yè)搭建網(wǎng)站的首選平臺(tái)。本文講述的是CentOS上安裝LAMP

  CentOS上15分鐘內(nèi)安裝LAMP(適用于所有VPS)

  本文適用于所有的vps,測試環(huán)境為YARD 128M OPENVZ和IWEBFUSION 256M OPENVZ

  非LNMP,非一鍵安裝包

  1.   yum -y update  
  2.  
  3.   yum -y install gcc gcc-c++ authconf automake libtool libevent libevent-devel  
  4.  
  5.   yum -y install ncurse nucrse-devel gd gd-deevel freetype freetype-devel fontconfig fontconfig-devel libjpeg libjpeg-devel zlib zlib-devel pcre pcre-devel  
  6.  
  7.   yum -y install libmcrypt mhash  
  8.  
  9.   yum -y install mysql mysql-server mysql-devel  
  10.  
  11.   yum -y install httpd httpd-devel  
  12.  
  13.   yum -y install php*  
  14.  

  啟動(dòng)apache

  1.   /etc/init.d/httpd restart  
  2.  

  啟動(dòng)mysql

  1.   /etc/init.d/mysqld restart  
  2.  

  編輯一個(gè)php測試文件

  1.   vi /var/www/html/info.php  
  2.  

  加入:

     
  1.  
  2.   phpinfo();  
  3.  
  4.   ?> 
  5.  

  現(xiàn)在可以通過http://ip/info.php查看LAMP信息了

  例如我的測試機(jī)地址是

  http://64.34.205.27/info.php

  設(shè)置開機(jī)啟動(dòng)

  1.   chkconfig httpd on  
  2.  
  3.   chkconfig mysqld on  
  4.  

  附:如果需要修改的話,那么修改配置文件即可。

  附1:mysql配置文件所在位置:

  1.   # ls -l /etc/my.cnf  
  2.  
  3.   -rw-r--r-- 1 root root 441 Nov 4 02:53 /etc/my.cnf  
  4.  
  5.   #  
  6.  

  附2:apache配置文件所在位置:

  1.   # ls -l /etc/httpd/  
  2.   total 8

      drwxr-xr-x 2 root root 4096 Jan 11 07:06 conf

      drwxr-xr-x 2 root root 4096 Jan 11 07:03 conf.d

      lrwxrwxrwx 1 root root 19 Jan 11 06:53 logs -> ../../var/log/httpd

      lrwxrwxrwx 1 root root 27 Jan 11 06:53 modules -> ../../usr/lib/httpd/modules

      lrwxrwxrwx 1 root root 13 Jan 11 06:53 run -> ../../var/run

      #

  3.  

  附3:php配置文件所在位置:

  1.   # ls -l /etc/php.ini  
  2.  
  3.   -rw-r--r-- 1 root root 45079 Nov 30 00:53 /etc/php.ini  
  4.  
  5.   #  

【編輯推薦】

Ubuntu下LAMP的配置

LAMP的優(yōu)化技巧

CentOS下安裝LAMP的方法

責(zé)任編輯:zhaolei 來源: javaeye
相關(guān)推薦

2011-03-23 11:24:09

2017-08-14 16:50:29

云優(yōu)先云計(jì)算公共云

2011-03-11 17:14:27

2011-06-29 09:54:06

飛康VMware

2011-03-09 10:52:36

CentOS安裝LAMP

2023-06-29 14:29:52

人工智能

2018-12-13 11:19:21

2011-12-08 09:43:56

虛擬化vmwareVMware Fusi

2023-11-30 08:55:15

LinuxLibreOffic

2011-02-25 09:08:22

LinuxSuSE Linux

2021-11-04 10:42:43

汽車軟件技術(shù)

2022-09-02 17:47:46

Linux筆記應(yīng)用

2019-08-23 11:00:00

云計(jì)算網(wǎng)絡(luò)安全

2023-03-08 12:35:59

綜合布線

2020-10-21 17:25:47

物聯(lián)網(wǎng)安全技術(shù)

2021-01-08 08:06:29

容器ELK7.10架構(gòu)

2013-02-21 10:13:25

2021-11-03 10:14:31

PowerEdge

2011-05-13 09:56:23

Ubuntu 11.0
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號