yum instal mysql-server -y
service mysqld restart
/usr/bin/mysqladmin -u root password "timehuang"
mysql -u root -p
yum install httpd -y
service httpd restart
chkconfig httpd on
yum install php php-fpm php-mysql -y
service php-fpm start
chkconfig php-fpm on
查看php-fpm监听的哪个端口ip:port
netstat -nlpt |grep php-fpm
以上过程lamp搭建完毕
下面安装Discuz
wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip
unzip Discuz_X3.2_SC_UTF8.zip
upload上当为dz源码
php默认的web根目录为/var/www/html,所以把upload目录下面的所有内容copy到 /var/www/html目录下
cp -r upload/* /var/www/html
chmod -R 777 /var/www/html
然后重启php即可:
service httpd restart
购买域名后,需要将域名和ip放在腾讯的dns服务器上,
ping www.mydomain.com 来检查购买的域名是否生效(返回ip则为dns解析成功)