yum安裝lamp
程式下載連結:http://pan.baidu.com/s/1eSEgGM2
密碼:t8xl
安裝LAMP執行環境
yum install httpd,php,php-mysql,mysql-server,mysql
檢視是否有php模組
httpd -M
檢視php安裝資訊
rpm -ql php
啟動服務service httpd start
service httpd start
測試連線php是否成功,在/var/www/html中新增檔案index.php
<?php
phpinfo();
?>
測試資料庫是否連線成功。
<?php
$link=mysql_connect(`127.0.0.1`,`mysql`,“);
if ($link)
echo “Success”;
else
echo “Failure”;
mysql_close();
?>
部署
wordpress(個人部落格)
unzip wordpress-4.8.1-zh_CN.zip
cp -r wordpress /var/www/html/
cd /var/www/html/wordpress
cp wp-config-sample.php wp-config.php
修改資料庫名等資訊
建立MYsql使用者
GRANT ALL ON wpdb.* TO `wpuser`@`localhost` IDENTIFIED BY `wppasswd`
GRANT ALL ON wpdb.* TO `wpuser`@`127.0.0.1` IDENTIFIED BY `wppasswd`
CREATE DTABASE wpdb
FlUSH PRIVILEGES
phpmyadmin(mysql的影像化管理程式)
cp config.sample.inc.php config.inc.php
生成隨機碼,填寫到cfg=[`blowfish_secrest`]=`此處`
tr -d `a-zA-Z0-9` < /dev/urandom | head -30 |md5sum
yum install php-mbstring(PHP處理多位元組字元)
設定資料庫使用者密碼
SET PASSWORD FOR `root`@`localhost`=PASSWORD(`123456`)
SET PASSWORD FOR `root`@`127.0.0.1`=PASSWORD(`123456`)
FLUSH PRIVILEGES
壓力測試工具
ab -c 200 -n 10000 http://172.16.6.13/index.html
本文轉自阿倫艾弗森 51CTO部落格,原文連結:http://blog.51cto.com/perper/1961129,如需轉載請自行聯絡原作者
相關文章
- LAMP:用yum安裝LAMP
- CentOS下LAMP一鍵yum安裝指令碼CentOSLAMP指令碼
- Linux6下yum方式安裝配置LAMP平臺LinuxLAMP
- lamp安裝LAMP
- yum安裝
- LAMP原始碼安裝+wordpress安裝LAMP原始碼
- mysql安裝 (yum 安裝)MySql
- 原始碼安裝lamp原始碼LAMP
- yum 安裝 PHPPHP
- mysql yum 安裝MySql
- yum安裝nginxNginx
- yum安裝mysqlMySql
- linux 安裝yum 安裝phpLinuxPHP
- Centos 安裝yum,安裝ansibleCentOS
- yum安裝ansible
- CentOS安裝配置yumCentOS
- AIX的yum安裝AI
- postgres yum源安裝
- Linux 安裝 yumLinux
- 96.2.Yum安裝
- CentOS yum安裝mcryptCentOS
- YUM安裝MYSQL(轉)MySql
- linux配置本地yum安裝--FTP yumLinuxFTP
- 編譯安裝LAMP環境編譯LAMP
- LAMP原始碼編譯安裝LAMP原始碼編譯
- [LAMP]安裝PHP5/7LAMPPHP
- yum安裝與原始碼安裝比較原始碼
- CentOS 7 yum 安裝 MySQLCentOSMySql
- CentOS 7 yum 安裝 NGINXCentOSNginx
- yum安裝簡潔版
- 【Linux】yum 安裝nginxLinuxNginx
- zabbix2.4yum安裝
- YUM安裝最新的MYSQLMySql
- MAC: Homebrew(代替yum)安裝Mac
- Redhat 5 上安裝yumRedhat
- yum的安裝與配置
- yum安裝及使用全集
- CentOS下yum安裝MySQLCentOSMySql