標籤:version efault server ubuntu load bsp 關於 rest keyword
系統需求
- 系統支援:CentOS 6+/Debian 7+/Ubuntu 12+
- 記憶體要求:≥ 512MB
- 硬碟要求:至少 5GB 以上的剩餘空間
- 伺服器必須配置好 軟體源 和 可串連外網
- 必須具有系統 root 許可權
- 強烈建議使用全新系統來安裝
支援組件
- 支援 PHP 內建幾乎所有組件
- 支援 MySQL、MariaDB、Percona Server資料庫
- 支援 Redis(可選安裝)
- 支援 XCache (可選安裝)
- 支援 Swoole (可選安裝)
- 支援 Memcached (可選安裝)
- 支援 ImageMagick (可選安裝)
- 支援 GraphicsMagick (可選安裝)
- 支援 ionCube Loader (可選安裝)
- 自助升級 Apache,PHP,phpMyAdmin,MySQL/MariaDB/Percona Server至最新版本
- 命令列新增虛擬機器主機(使用 lamp 命令),操作簡便
- 支援一鍵卸載
安裝步驟
- 事前準備(安裝 wget、screen、unzip,建立 screen 會話)
注意:雙斜杠//後的內容不要複製輸入
yum -y install wget screen git // for CentOSapt-get -y install wget screen git // for Debian/Ubuntu
- git clone 並賦予指令碼執行許可權
git clone https://github.com/teddysun/lamp.gitcd lampchmod +x *.sh
- 開始安裝
screen -S lamp./lamp.sh
組件安裝
關於本指令碼支援的所有組件,都可以在指令碼互動裡可選安裝。
使用提示
lamp add 建立虛擬機器主機lamp del 刪除虛擬機器主機lamp list 列出虛擬機器主機
如何升級
注意:雙斜杠//後的內容不要複製輸入
git pull // Get latest version./upgrade.sh // Select one to upgrade./upgrade.sh apache // Upgrade Apache./upgrade.sh db // Upgrade MySQL/MariaDB/Percona./upgrade.sh php // Upgrade PHP./upgrade.sh phpmyadmin // Upgrade phpMyAdmin
如何卸載
./uninstall.sh
程式目錄
- MySQL 安裝目錄: /usr/local/mysql
- MySQL 資料庫目錄:/usr/local/mysql/data(預設,安裝時可更改路徑)
- MariaDB 安裝目錄: /usr/local/mariadb
- MariaDB 資料庫目錄:/usr/local/mariadb/data(預設,安裝時可更改路徑)
- Percona 安裝目錄: /usr/local/percona
- Percona 資料庫目錄:/usr/local/percona/data(預設,安裝時可更改路徑)
- PHP 安裝目錄: /usr/local/php
- Apache 安裝目錄: /usr/local/apache
命令一覽
- MySQL 或 MariaDB 或 Percona 命令
/etc/init.d/mysqld (start|stop|restart|status)
/etc/init.d/httpd (start|stop|restart|status)
/etc/init.d/memcached (start|stop|restart|status)
/etc/init.d/redis-server (start|stop|restart|status)
網站根目錄
預設的網站根目錄: /data/www/default
lamp centos下一鍵安裝