本篇內(nèi)容主要講解“云服務(wù)器怎么搭建lnmp”,感興趣的朋友不妨來(lái)看看。本文介紹的方法操作簡(jiǎn)單快捷,實(shí)用性強(qiáng)。下面就讓小編來(lái)帶大家學(xué)習(xí)“云服務(wù)器怎么搭建lnmp”吧!

我們把 LNMP 一鍵安裝包保存在 /usr/local/src/ 目錄下,第一步仍然是解壓縮一鍵安裝包。命令如下:
[root@localhost ~]# cd /usr/local/src/ [root@localhost src]# tar -zxvf lnmp1.0-full.tar.gz
執(zhí)行安裝腳本安裝 LNMP 一鍵安裝包
既然是腳本安裝包,那就不需要我們一個(gè)一個(gè)手工安裝了,只要執(zhí)行安裝腳本 centos.sh 即可自動(dòng)安裝(Debian 中執(zhí)行腳本為 debian.sh,Ubuntu 中執(zhí)行腳本為 ubuntu.sh)。命令如下:
[root@localhost src]# cd lnmp1.0-full [root@localhost lnmp1.0-full]#./centos.sh
回車(chē)之后安裝就會(huì)繼續(xù),會(huì)看到如下界面:
========================================================== LUMP V1.0 for CentOS/RadHat Linux vps Written by Licess ========================================================== A tool to auto-compile & install Nginx+MySQL+PHP on Linux For more information please visit http://www.lnmp.org/ ========================================================== Please input the root password of mysql: (Default password: root) : 123 #設(shè)定MySQL 的密碼,這里設(shè)為 123 ========================================================== Do you want to install the InnoDB Storage Engine? (Default no,if you want please input: y , if not please press the enter button):y #是否需要安裝MySQL InnoDB,如果需要安裝則輸入y Install PHP 5.3.17,Please input y Install PHP 5.2.17,Please input n or press Enter (Please input y or n) :y #選擇安裝PHP的版本,輸入y安裝的是5.3.17 Install MySQL 5.5.27,Please input y Install MySQL 5.1.60,Please input n or press Enter (Please input y or n) :y #選擇安裝MySQL的版本,輸入y安裝的是5.5.27 Press any key to start. . .or Press Ctrl+c to cancel #按任意鍵開(kāi)始安裝
如果在安裝過(guò)程中輸入錯(cuò)誤,則可以按“Ctrl+Backspace”組合鍵來(lái)進(jìn)行刪除。這個(gè)安裝過(guò)程完全是依賴(lài) centos.sh 腳本自動(dòng)執(zhí)行的,所以比 LAMP 的手工安裝過(guò)程簡(jiǎn)單得多,我們只要指定一些基本的選項(xiàng),就可以完成安裝了。
具體的安裝時(shí)間要視 Linux 服務(wù)器的性能而定,可能會(huì)等待幾十分鐘。如果大家有興趣,則可以查看一下 centos.sh 這個(gè)安裝腳本,看看它是如何實(shí)現(xiàn)自動(dòng)安裝的。如果看到以下界面,則證明安裝成功。
=========================================================
Manager for LNMP VI.0 , Written by Licess
=========================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org
Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================
Nginx is runing!
php-fpm is runing!
MySQL running (12489) [確定]
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:53575 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 :::57454 :::* LISTEN
tcp 0 0 :::111 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 ::1:631 :::* LISTEN
tcp 0 0 ::1:25 :::* LISTENLNMP一鍵安裝包安裝的軟件及具體位置
既然是一鍵安裝,那么默認(rèn)安裝的軟件和軟件的安裝位置都是事先設(shè)定好的,在安裝過(guò)程中不能更改。具體安裝了哪些軟件及其位置如下所示。

也就是說(shuō),LNMP 一鍵安裝只安裝了基本的 Nginx、MySQL、PHP、phpMyAdmin 和 Zend Optimizer。
到此,相信大家對(duì)“云服務(wù)器怎么搭建lnmp”有了更深的了解,不妨來(lái)實(shí)際操作一番吧!這里是創(chuàng)新互聯(lián)網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢(xún),關(guān)注我們,繼續(xù)學(xué)習(xí)!
網(wǎng)站欄目:云服務(wù)器怎么搭建lnmp-創(chuàng)新互聯(lián)
文章位置:http://chinadenli.net/article42/dspiec.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供靜態(tài)網(wǎng)站、外貿(mào)建站、面包屑導(dǎo)航、全網(wǎng)營(yíng)銷(xiāo)推廣、微信公眾號(hào)、虛擬主機(jī)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容