Giter Club home page Giter Club logo

Comments (6)

raindylong avatar raindylong commented on May 5, 2024 1

@mega-Q ,你下载后的项目代码放在哪里是由你自己规划的,例如你放在/home/mega/cmdb,你就应该改动这个配置为:
root /home/mega/cmdb ;
readme的作用是参考和引导,各种变化是由自己掌握的。

from bk-cmdb.

mega-Q avatar mega-Q commented on May 5, 2024 1

@raindylong 非常感谢,已经成功展现。


整理解决办法:

##环境准备##
centos7.3上yum安装php、nginx、percona,使用默认值。
wget https://github.com/Tencent/bk-cmdb/archive/master.zip -O bk-cmdb-master.zip
unzip bk-cmdb-master.zip -d /usr/share/nginx/html/

##修改配置文件##
以下所有操作均在工程目录下:
cd /usr/share/nginx/html/bk-cmdb-master
vim /etc/nginx/conf.d/bk-cmdb.conf
server {
listen 80;
server_name cmdb.bk.com;
root /usr/share/nginx/html/bk-cmdb-master; #修改为“工程目录“即可
... ... #剩下内容参考https://github.com/Tencent/bk-cmdb
}

from bk-cmdb.

owenlxu avatar owenlxu commented on May 5, 2024

我们是单入口应用,另外应用是基于CI 框架开发,可以基本不用理解目录结构的

from bk-cmdb.

mega-Q avatar mega-Q commented on May 5, 2024

对于这三个目录,我想知道他们分别的作用,以便快速定位,
另外:
关于404的问题能不能指点一下。
@lowenitt

from bk-cmdb.

raindylong avatar raindylong commented on May 5, 2024

@mega-Q ,你提的问题似乎都是nginx相关,可以搜索一下nginx相关文档,这个似乎不在bk-cmdb的讨论范围内。

from bk-cmdb.

mega-Q avatar mega-Q commented on May 5, 2024

你看我的第二段中提到“root /data/htdocs/cc_openSource;” 的疑惑,
问题是我找不到这个路径,不是我nginx配置错误,
@raindylong 你是怎么定义server 80的root的呢?

from bk-cmdb.

Related Issues (20)

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.