Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build your own online wiki document system

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to build your own online wiki document system". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to build your own online wiki document system.

What is MinDoc?

MinDoc is an online document management system, which is suitable for teams, individuals and so on. The original purpose of the developer is to make it easy to use within the company and to emulate cloud development. There are laravel versions and golang versions. However, the laravel version is quite troublesome to deploy, because to build the PHP development environment still need their own configuration, coupled with limited energy, suspended the research and development of laravel. This article uses the golang version to introduce how to install, installation tutorials are actually available in GitHub, but in the installation, the author found that several places are not perfect, I would like to record this article.

How to get MinDoc

Official website, github,wiki, code download, demo version

Set up the environment and prepare for it

There are no special requirements for building an environment, as long as the system can work properly. This article demonstrates the centos7.0,1 core 2G.

Redis build, read the author's article, did not find that it is necessary to build redis, but in the actual building must require redis service. The steps of building a redis are described in how to build it.

The version of mysql, I chose 5.7. because the demo version belongs to golang development, I don't know about golang and I don't know what version of mysql is required.

How to build

The system can customize the cache driver according to the user, and the system supports file cache, memcached,redis and other cache methods. Just modify the following configuration in the configuration file and change file to your cache driver. I use redis here as a cache driver. Here's how I install redis and how to use it.

Cache_provider= "${MINDOC_CACHE_PROVIDER | | file}"

Building redis

Download redis, http://download.redis.io/releases/redis-4.0.11.tar.gz

Decompress tar-zxvf redis-4.0.11

Create a soft connection to facilitate later versions to update ln-s redis-4.0.11 redis

Update the system tcl, because the minimum requirement for tcl is 8.5, you can use yum update tcl directly. After the installation is completed, check to see if gcc,yum install gcc is installed.

Start compiling and installing cd redis & & make & & make test & & make install. These steps can be performed step by step and it is easy to find out which step has gone wrong.

Set redis to run the service as a background process. Find the redis.conf file under the redis directory. Copy the files to the / opt directory (this directory is self-defined), which makes it easy to manage multiple redis services. Modify the rdis.conf under / opt and change the daemonize no in the configuration file to daemonize yes.

Start the service redis-service / opt/redis.conf

Configure golang system environment variables and install

After downloading according to how to get the demo version described in, extract and move all applications to the / opt directory (this directory can be defined by yourself, it is best to create a directory and move the package to this directory before unzipping).

Configure the system environment variables. What I configure here is the global system environment variables. Vim / etc/profile adds the following code to the bottom export ZONEINFO=$PATH:/opt/lib/time/zoneinfo.zip. Note that the directory here in opt is defined by you. Because I moved to the / opt directory as mentioned in the previous step.

Modify the database configuration file, the configuration file in the conf/app.conf file, fill in your own database configuration information. It is recommended to create a new account and grant some permissions to http://www.qqdeveloper.com/a/76.html. You can read this article to create a database account.

Grant permissions and install chmod + x mindoc_linux_amd64 & &. / mindoc_linux_amd64 service install so that you can register with the system service, that is, run the service in the background.

Start / stop / restart the service service mindocd start/stop/restart so that the installation is complete. It can be accessed directly by using http://ip:8181. The author also posted how to use the domain name management just sent. The code is as follows.

Server {

Listen 80

# your domain name should be configured here:

Server_name webhook.iminho.me

Charset utf-8

# configure your access log here. Please create this directory manually:

Access_log / var/log/nginx/webhook.iminho.me/access.log

Location / {

Try_files / _ not_exists_ @ backend

}

# here is the configuration for the specific service proxy

Location @ backend {

Proxy_set_header X-Forwarded-For $remote_addr

Proxy_set_header Host $http_host

Proxy_set_header X-Forwarded-Proto $scheme

# configure the address and port number of the MinDoc program here

Proxy_pass http://127.0.0.1:8181;

}

} at this point, I believe you have a deeper understanding of "how to build your own online wiki document system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report