(9)安装开源bbs, discuz

来源:互联网 发布:淘宝建模招聘 编辑:程序博客网 时间:2024/05/23 02:04


1)数据库

mysql -uroot -poldboy

create database bbs;

grant all on bbs.* to wiki@'localhost' identified by ‘bbs’;

flush privileges;

quit;


2)下载discuz

http://www.discuz.net/forum.php


文档:

http://faq.comsenz.com/library/?from=discuzheader

1cd /application/nginx/html/bbs

2wgethttp://download.comsenz.com/DiscuzX/3.0/Discuz_X3.0_SC_GBK.zip

3unzipDiscuz_X3.0_SC_GBK.zip

4

mv upload/* . 

3)域名配置

1vi /application/nginx/conf/nginx.conf

worker_processes  2;

events {

    worker_connections  1024;

}

http {

    include       mime.types;

    default_type  application/octet-stream;

    sendfile        on;

    keepalive_timeout  65;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '

                      '$status $body_bytes_sent "$http_referer" '

                      '"$http_user_agent" "$http_x_forwarded_for"';


    #access_log  logs/access.log  main;


    include extra/bbs.conf;

}


vi /application/nginx/conf/extra/bbs.conf 


server {

        listen       80;

        server_name  wiki.etiantian.org;

            root   html/wiki;

            index  index.php index.html index.htm;

            access_log  logs/wiki_access.log;

        location ~ .*\.(php|php5)?$

        {

                fastcgi_pass  127.0.0.1:9000;

                fastcgi_index index.php;

                include fastcgi.conf;

        }

    }

0 0
原创粉丝点击