1.下載VMWare 點(diǎn)擊地址鏈接:http://pan.baidu.com/s/1nvrns5j 密碼:uyzz(版本包含 9 或11或者12)
在CentOS 7.2 環(huán)境下安裝
在CentOS 6.5環(huán)境下安裝
(1)啟動(dòng)Apache 出現(xiàn)的問題
1.出現(xiàn)問題:連不上網(wǎng)絡(luò) 酣胀。鏈接可看下設(shè)置CentOS_7的網(wǎng)絡(luò)
或者修改vi /etc/sysconfig/network-scripts/ifcfg-(自己的網(wǎng)卡)設(shè)置BOOTPROTO=static為靜態(tài)
2.網(wǎng)絡(luò)不通电湘。 測(cè)試:ping www.baidu.com 發(fā)現(xiàn)網(wǎng)絡(luò)不通臭挽。
查看是否有網(wǎng)卡拢切,如果沒有猴凹。則需要打開
vi /etc/sysconfig/network-scripts/ifcfg-enoxxxxxx路鹰。
更改這部分
ONBoot = yes
Service network restart 重新啟動(dòng)服務(wù)
3.遠(yuǎn)程web瀏覽器無法打開頁面
測(cè)試centos 是否打開apache curl localhost
修改防火墻端口號(hào):
查看當(dāng)前配置:iptables -L
防火墻配置文件:
vi /etc/sysconfig/iptables
開放80端口:
iptables -A INPUT -p tcp -s 0/0 --dport 8180 -j ACCEPT
重啟服務(wù):
/etc/rc.d/init.d/iptables restart
啟動(dòng)和停止服務(wù)分別用start矾飞、stop
chkconfig –level 2345 iptables off
service iptables stop不推薦關(guān)閉防火墻
- 重啟后生效
(2)啟動(dòng)mysql 和配置相關(guān)命令
出現(xiàn)錯(cuò)誤:mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: YES)'
原因 mysql登錄錯(cuò)誤
解決辦法
composer update 失敗 :之前要 執(zhí)行composer global require ”fxp/composer-asset-plugin:1.”
或者 php composer.phar global require “fxp/composer-asset-plugin:1.”
然后 composer update