CMS主站产品介绍
DedeCMS
###################
####MySQL的配置####
###################
##登录MySQL数据库
mysql -uroot -poldboy123
##创建数据库
create database dedecms;
##显示数据库
show databases;
##授权
grant all on dedecms.* to [email protected]‘172.16.1.%‘ identified by ‘123456‘;
#grant all on dedecms.* to [email protected]‘localhost‘ identified by ‘123456‘;
##刷新生效
flush privileges;
##查看所有用户
select user,host from mysql.user;
quit;
##测试的discuz用户是否可以登录
#mysql -udedecms -p123456
mysql -udedecms
quit;
###################
####Nginx的配置####
###################
#!/bin/sh
. /etc/profile
. /etc/init.d/functions
#PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
#export PATH
################dedecms start##################
# Adjust www configuration
cat >/application/nginx/conf/extra/www.conf<<EOF
server {
listen 80;
server_name www.etiantian.org etiantian.org;
location / {
root html/www;
index index.php index.htm;
}
location ~ .*\.(php|php5)?$ {
root html/www;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
}
EOF
#Check restart
/application/nginx/sbin/nginx -t
/application/nginx/sbin/nginx -s reload
# Download blog installation
cd /home/oldboy/tools && \
wget http://updatenew.dedecms.com/base-v57/package/DedeCMS-V5.7-UTF8-SP1.tar.gz && \
tar xf DedeCMS-V5.7-UTF8-SP1.tar.gz && \
cp -a DedeCMS-V5.7-UTF8-SP1/uploads/* /application/nginx/html/www/ && \
chown -R www.www /application/nginx/html/www/