亚洲中字慕日产2020,大陆极品少妇内射AAAAAA,无码av大香线蕉伊人久久,久久精品国产亚洲av麻豆网站

資訊專欄INFORMATION COLUMN

在ubuntu14.04上安裝lamp環(huán)境

王晗 / 3038人閱讀

摘要:如果此步跳過,以后想重新配置在目錄,所以就用命令建立軟連接。地址感謝您的耐心閱讀,如果您發(fā)現文章中有一些沒表述清楚的,或者是不對的地方,請給我留言,你的鼓勵是作者寫作最大的動力,作者原文出處創(chuàng)作時間

配置安裝源

編輯sources.list文件,替換一下更新源,這里用阿里云的更新源
vim /etc/apt/sources.list

阿里云更新源

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

deb http://mirrors.aliyuncs.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyuncs.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyuncs.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyuncs.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyuncs.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyuncs.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyuncs.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyuncs.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyuncs.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyuncs.com/ubuntu/ trusty-backports main restricted universe multiverse

中科大更新源

deb http://debian.ustc.edu.cn/ubuntu/ trusty main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse

更新

apt-get update

安裝Mysql

apt-get install mysql-server mysql-client

查看Myql默認密碼

vim /etc/mysql/debian.cnf

用默認密碼進入mysql,修改Mysql默認密碼

set password for "root"@"localhost" = password("yourpass")

允許myysql外部鏈接

修改 /etc/mysql/my.cnf,注釋掉bind-address = 127.0.0.0

安裝Apache

apt-get install apache2

默認網站目錄 /var/www/html

修改默認網站目錄

/etc/apache2/sites-available/000-default.conf 把DocumentRoot換成自己想指定的目錄

其中如果要綁定域名的話 修改ServerName XX.COM

安裝PHP

-get install php5 libapache2-mod-php5

重啟apache2

service apache2 restart

測試 PHP,建立一個探針文件

vi /var/www/html/info.php

內容

打開 localhost/info.php 可以看到

讓PHP5支持MySql

`apt-cache search php5
apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl`

重啟apache2

service apache2 restart

安裝 XCache 優(yōu)化緩存

apt-get install php5-xcache

重啟apache2

service apache2 restart

安裝phpmyadmin管理Mysql

apt-get install phpmyadmin


要求輸入Myql的用戶名和密碼。

如果此步跳過,以后想重新配置

dpkg-reconfigure phpmyadmin

phpmyadmin在/usr/share/phpmyadmin目錄,所以就用命令:ln -s /usr/share/phpmyadmin /var/www 建立軟連接。

phpadmin地址:localhost/phpmyyyadmin/index.php


感謝您的耐心閱讀,如果您發(fā)現文章中有一些沒表述清楚的,或者是不對的地方,請給我留言,你的鼓勵是作者寫作最大的動力,

作 者 : @mousycoder

原文出處 : http://mousycoder.com/2015/11/25/install-lamp-environment-on-ubuntu14-04/

創(chuàng)作時間:2015-11-25

文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉載請注明本文地址:http://www.ezyhdfw.cn/yun/21239.html

相關文章

  • Ubuntu14.04安裝LAMP環(huán)境,以及源碼安裝PHP5.6和Apache2.4

    摘要:安裝在下很多功能都在這個軟件包中了,不在區(qū)分等軟件包了,因此我們可以直接安裝注意這邊的是為了方便安裝,加上它就不需要在進行安裝確認,簡單粗暴一鍵完成安裝的模塊在中的模塊有兩個軟件包,分別是和大多數情況下應該使用第一個。 安裝Apache 在Ubunt14.04下很多功能都在apache2這個軟件包中了,不在區(qū)分mpm-work,mpm-prefork,mpm-event等軟件包了,因...

    silvertheo 評論0 收藏0
  • Ubuntu14.04安裝LAMP環(huán)境,以及源碼安裝PHP5.6和Apache2.4

    摘要:安裝在下很多功能都在這個軟件包中了,不在區(qū)分等軟件包了,因此我們可以直接安裝注意這邊的是為了方便安裝,加上它就不需要在進行安裝確認,簡單粗暴一鍵完成安裝的模塊在中的模塊有兩個軟件包,分別是和大多數情況下應該使用第一個。 安裝Apache 在Ubunt14.04下很多功能都在apache2這個軟件包中了,不在區(qū)分mpm-work,mpm-prefork,mpm-event等軟件包了,因...

    myshell 評論0 收藏0
  • php7 + mysql5.7 +apache2.4 on Ubuntu 14.04

    摘要:如果想通過來安裝,則需要添加源。目前網上給出的大部分答案是這樣的這樣是找不到版本的。通過,找到了正確的安裝步驟這樣才能通過來安裝在安裝過程中,會要求輸入的密碼。排錯如果頁面空白,請嘗試強制刷新頁面。此時應該可以看見中的內容了。 Ubuntu 14.04 安裝并配置LAMP 標簽:Ubuntu Linux Apache2.4 Mysql5.7 php7.0 開始之前 系統(tǒng)版本 Ubu...

    gougoujiang 評論0 收藏0

發(fā)表評論

0條評論

王晗

|高級講師

TA的文章

閱讀更多
最新活動
閱讀需要支付1元查看
<