GithubHelp home page GithubHelp logo

majiajue / 94imm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zephyr-y/94imm

0.0 1.0 0.0 1.14 MB

New 94 IMM website application

Python 32.62% HTML 13.32% CSS 25.30% Shell 2.55% JavaScript 24.69% TSQL 1.53%

94imm's Introduction

安装说明:

自动安装:

wget -O install.sh https://github.com/Turnright-git/94imm/blob/master/install.sh && chmod +x install.sh &&./install.sh

安装过程中需要输入

> * allow url:www.94imm.com   # 防盗链允许的使用的域名
> * site_name:94imm   # 网站名称,将显示在网站底部网站title和底部
> * site_url:www.94imm.com   # 网站url
> * Create databases:94imm   # 添加数据库
> * Create databases password:   # 数据库账号(root)如未安装mysql,此处将设置为root密码
> * Password for root:   # 如本机以安装mysql,此处需输入root密码

参数配置

配置文件为根目录下的config.py

# 数据库信息,一键脚本自动添加
mysql_config = {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': '94imm',
        'USER': '94imm',
        'PASSWORD': '94imm',
        'HOST': '127.0.0.1',
        'PORT': '3306',
    }
# 数组形式,可以添加多个域名
allow_url=["www.94imm.com","94imm.com"]
# 缓存超时时间,服务器性能好可缩短此时
cache_time=300
# 使用的模板(暂时开放一个)
templates="zde"
# 网站名
site_name="94iMM"
# 一键脚本自动添加
site_url = "https://www.94imm.com"
# 网站关键词
key_word = "关键词1,关键词2,关键词3"
# 网站说明
description = "这是一个高质量的自动爬虫"
# 底部联系邮箱
email = "[email protected]"
# 网站调试模式
debug = False
# 页面底部友情链接
friendly_link = [{"name":"94imm","link":"https://www.94imm.com"},{"name":"获取源码","link":"https://github.com/Turnright-git/94imm.git"}]

使用说明

进入项目根目录

启动网站
./start s
关闭网站
./start stop
重启网站
./start r
清空网站缓存(使所做的修改立即生效)
./start c

项目模板目录templates,base.html中可直接添加统计代码

手动安装说明

项目依赖python3.6 mysql5.6

git clone https://github.com/Turnright-git/94imm.git
cd 94imm
vi config.py  #参照配置说明修改
vi uwsgi.ini  #修改uwsgi配置

如需使用反向代理,在nginx.conf中添加如下server段

server {
        listen       80;
        server_name  localhost; # 网站域名

        location / {
            proxy_pass http://127.0.0.1:8000;
        }

94imm's People

Contributors

zxyge avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.