安装依赖环境
yum -y install php php-fpm php-mysql
yum -y install mysql mysql-server
/etc/init.d/php-fpm start
chkconfig php-fpm on
/etc/init.d/mysqld start
chkconfig mysqld on
安装nginx
http://blog.youkuaiyun.com/u013619834/article/details/38894903
添加配置文件
下载discuz
wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip
访问地址进行安装
http://192.168.3.14/
unzip Discuz_X3.2_SC_UTF8.zip
mkdir -p /var/www
mv upload /var/www/discuz
chmod -R 777 config
chmod -R 777 data
chmod -R 777 uc_client/data/cache
chmod -R 777 uc_server/data
访问discuz地址进行安装
http://192.168.3.14
yum -y install php php-fpm php-mysql
yum -y install mysql mysql-server
/etc/init.d/php-fpm start
chkconfig php-fpm on
/etc/init.d/mysqld start
chkconfig mysqld on
安装nginx
http://blog.youkuaiyun.com/u013619834/article/details/38894903
添加配置文件
server {
listen 80;
server_name discuz;
root /var/www/discuz;
index index.html index.htm index.php;
access_log logs/discuz_access.log;
location / {
}
location ~ \.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~* \.(gif|jpg|jpeg|png|bmp|swf)$ {
expires 30d;
}
location ~* \.(js|css)$ {
expires 1h;
}
}
下载discuz
wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip
访问地址进行安装
http://192.168.3.14/
unzip Discuz_X3.2_SC_UTF8.zip
mkdir -p /var/www
mv upload /var/www/discuz
chmod -R 777 config
chmod -R 777 data
chmod -R 777 uc_client/data/cache
chmod -R 777 uc_server/data
访问discuz地址进行安装
http://192.168.3.14