自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Ubuntu 一條命令安裝LAMP

系統(tǒng) Linux
用過LAMP的人們都知道,LAMP是由 Linux+Apache+Mysql+Perl/PHP/Python 一起組成的,上篇文章我為大家講解了簡單的搭建LAMP的過程,本文為大家介紹下:Ubuntu 一條命令安裝LAMP

Ubuntu 一條命令安裝LAMP

       操作方法如下:

  1. 在Ubuntu 10.10的Ubuntu software center中找不到LAMP安裝包了。以前的Ubuntu是有打好包的LAMP的安裝包的,不需要自己一個一個的去安裝apache/mysql/php...

  2. Google了一下,可以這樣:

  sudo apt-get update; sudo apt-get install tasksel

  sudo tasksel

  3. 在出現(xiàn)的界面中選擇LAMP server,然后就開始安裝了。安裝的過程中會需要設置mysql root的口令。

  4. sudo vi /var/www/index.php:

  phpinfo();

  ?>

  5. sudo /etc/init.d/apache2 restart

  6. 搞定。

  7. 如果要添加tipbbs目錄,可以仿照/doc的寫法,編輯文件:/etc/apache2/sites-available/default,加入以下內(nèi)容,然后重啟apache - sudo service apache2 restart即可:

 

  1.   Alias /tipbbs/ "/home/super/TipBBS/" 
  2.  
  3.   Options Indexes MultiViews FollowSymLinks  
  4.  
  5.   AllowOverride None  
  6.  
  7.   Order deny,allow  
  8.  
  9.   Deny from all  
  10.  
  11.   Allow from 127.0.0.0/255.0.0.0 ::1/128  

通過文章的描述,是不是覺得這種方法安裝LAMP很簡單??!快跟朋友分享吧!

【編輯推薦】

責任編輯:趙鵬 來源: 網(wǎng)絡轉(zhuǎn)載
相關推薦

2011-03-14 13:07:23

Ubuntu安裝LAMP

2020-02-19 19:15:27

UbuntuLinux媒體編解碼器

2011-03-11 16:42:38

Ubuntu安裝LAMP

2011-03-10 08:59:04

Ubuntu安裝LAMP

2011-03-08 10:35:23

2011-03-21 16:37:57

2009-12-31 16:53:20

Ubuntu LAMP

2024-02-20 13:43:12

2020-05-26 09:08:23

命令循環(huán)Linux

2011-03-22 10:25:54

UbuntuLAMP

2021-12-02 15:30:55

命令內(nèi)存Linux

2024-02-01 18:07:37

2022-01-01 18:26:21

nginx

2011-03-21 16:21:21

ubuntulamp

2010-04-13 16:57:01

2011-03-10 10:55:38

Ubuntu搭建LAMP

2011-03-11 12:57:36

UBUNTU10.10安裝LAMP

2015-07-28 11:06:28

日志記錄Linux命令

2021-02-15 15:07:45

Windows 10Windows微軟

2024-06-12 13:36:24

點贊
收藏

51CTO技術棧公眾號