Centos7阿里云安装OpenProject-亲测
10/18
2019年10月18日
13:50
参考 <https://ywnz.com/linuxyffq/4085.html>
说在前头:网上有各种教程,包括官方自己的教程,在阿里云服务器上安装的时候遇到各种错误,
另外数据库只能用他官方推荐的PostgreSQL,官网给出很明白的说明
Can I use MySQL instead of PostgreSQL?
Briefly: no. OpenProject has traditionally supported both MySQL and PostgreSQL, but in order to optimize for performance and SQL functionality, it is unfeasible to support both DBMS that are becoming more and more disjunct when trying to use more modern SQL features. This shift has started some years ago when full-text search was added for PostgreSQL, but at the time MySQL did not yet support it - and as of yet many distributions still do not support MySQL 8 natively.
This led us to the path of removing support in the upcoming stable releases of OpenProject in order to focus on these goals. Please see our blog post on the matter for additional notes.
来自 <https://www.openproject.org/download-and-installation/#configuration>
记得最后安装完开启端口,然后重启网络服务还有重启服务器
/sbin/iptables -I INPUT -p tcp --dport 端口号 -j ACCEPT #开启端口
service network restart
更新系统
在安装之前请更新系统软件包到最新的版本:
sudo yum -y update
添加OpenProject存储库
接下来是通过在终端中执行以下命令来添加OpenProject Repository:
sudo yum -y install wget(阿里云应该是不需要执行这个)
sudo wget -O /etc/yum.repos.d/openproject-ce.repo https://dl.packager.io/srv/opf/openproject-ce/stable/8/installer/el/7.repo
sudo wget -O /etc/yum.repos.d/openproject.repo \ https://dl.packager.io/srv/opf/openproject/stable/10/installer/el/7.repo
安装OpenProject Community Edition包
项目主页:https://github.com/opf/openproject-ce(本文所介绍的安装方法不需要你另外去下载)
添加OpenProject存储库并为OpenProject配置数据库后,在CentOS 7/Fedora 29上安装OpenProject Community Edition软件包。
sudo yum -y install openproject
在CentOS 7上配置OpenProject
OpenProject安装向导支持MySQL数据库的自动设置,OpenProject包是通过传递给openproject用户的ENV参数配置的。
运行以下命令读取当前ENV参数:
$ openproject run env
附:重新配置OpenProject的方法
如果你想重新配置OpenProject,请运行以下命令:
$ openproject reconfigure
上面的命令将再次显示安装向导,请注意,它将从头开始配置/安装过程。
如果刚刚更新了OpenProject版本,则应运行openproject configure,它将自动重用以前的配置,并且只有在有
新的配置选项可用时才会需要你来确认。
扩展缓存
Scaling the number of web workers
Depending on your free RAM on your system, we recommend you raise the default number of workers. The default from 9.0.3 onwards is four worker processes. Each worker will take roughly 300-400MB RAM.
We recommend at least four workers. Please check your current worker count with
sudo openproject config:get OPENPROJECT_WEB_WORKERS
If it returns nothing, the default worker count of 4 applies. To increase or decrease the worker count, call
sudo openproject config:set OPENPROJECT_WEB_WORKERS=number
Where number is a positive number between 1 and round(AVAILABLE_RAM * 1.5).
After changing these values, call sudo openproject configure to apply it to the web server.
有关备份
Backup your OpenProject installation
Note: this guide only applies if you've installed OpenProject using our DEB/RPM packages.
We advise to backup your OpenProject installation regularly — especially before upgrading to a newer version.
What should be backed up
In general the following parts of your OpenProject installation should be backed up:
Data stored in the database
Configuration files
Uploaded files (attachments)
Repositories (typically subversion) if applicable
How to backup
The DEB/RPM packages provide a backup tool which can be used to take a snaphsot of the current OpenProject installation. This tool will create a backup of all parts mentioned above. The backup tool is used by executing the following command:
sudo openproject run backup
The command will create backup files in the following location on your system
/var/db/openproject/backup
The content of that directory should look very similar to the following (depending on your used database, you will see a postgresql-dump-` file).
root@test-packager-backup:/opt/openproject# ls -l /var/db/openproject/backup/total 24-rw-r----- 1 openproject openproject 117 Apr 8 09:55 attachments-20150408095521.tar.gz-rw-r----- 1 openproject openproject 667 Apr 8 09:55 conf-20150408095521.tar.gz-rw-r----- 1 openproject openproject 8298 Apr 8 09:55 postgresql-dump-20150408095521.sql.gz-rw-r----- 1 openproject openproject 116 Apr 8 09:55 svn-repositories-20150408095521.tar.gz
How to restore
The backup created with the tool consists of four parts which are all compressed using gzip. Except the database dump these parts can be restored by decompressing the *.tar.gz files and copy the content to the proper location. The command to untar and unzip the *.tar.gz files looks like this (using sample file names from above):
tar vxfz attachments-20150408095521.tar.gz
Database
The <dbuser>, <dbhost> and <dbname> variables have to be replaced with the values that are container in the DATABASE_URL setting of your installation. This setting can be seen by running:
openproject config:get DATABASE_URL#=> e.g.: postgresql://dbusername:dbpassword@dbhost:dbport/dbname
PostgreSQL
To restore the PostgreSQL dump please use the pg_restore command utilities.
pg_restore -h <dbhost> -u <dbuser> -W <dbname>
First the dump has to be extracted (unzipped) and then restored. The command used should look very similar to this:
Note:
You can find the master document in GitHub. You can propose a change to this guide by creating a pull request on GitHub.
来自 <https://www.openproject.org/operations/backup/backup-guide-packaged-installation/>
Centos7阿里云安装OpenProject-亲测的更多相关文章
- Linux中oracle的安装,亲测
一.下载oracle的软件包 地址: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-li ...
- 阿里云安装mysql后查看不到初始密码的解决办法
在阿里云安装mysql后用grep 'A temporary password' /var/log/mysqld.log命令查看MySQL初始密码,毛线都没有看到,然后直接到/var/log/mysq ...
- 阿里云安装Nginx+vue项目部署
阿里云安装Nginx+vue项目部署 nginx安装包下载 http://nginx.org/en/download.html nginx安装 首先先安装PCRE pcre-devel 和Zlib,因 ...
- 本地ES集群数据通过_reindex方式迁移到腾讯云服务器(亲测有效)
本地ES集群数据通过_reindex方式迁移到腾讯云服务器(亲测有效) 随着业务量的增加,本地的ES集群服务器性能和磁盘空间有点不够使用,项目组考虑使用腾讯云服务器,以下是我测试的使用_reindex ...
- CentOS 初体验十四:阿里云安装Gitlab
网址:https://about.gitlab.com/install/#centos-7 https://blog.csdn.net/zhaoyanjun6/article/details/7914 ...
- 转 CentOS 初体验十四:阿里云安装Gitlab
原文 https://blog.csdn.net/zhaoyanjun6/article/details/79144175 非Unix操作系统(Windows) GitLab是专为Unix操作 ...
- 阿里云安装mysql,初始化密码修改
阿里云服务器,centos7, rpm包安装MySQL,初始化了个奇葩密码 登陆不上, 修改配置文件/etc/my.cnf,在[mysqld]下面添加一行代码:skip-grant-tables se ...
- 压力测试(六)-阿里云Linux服务器压测接口实战
1.SpringBoot 接口打包,并用jar包方式部署 简介:用jar包方式在控制台进行启动 打包 mvn package && java -jar target/gs-spring ...
- 阿里云安装JDK1.7
本人阿里云选择的是CentOS 7.0系统,本系列文件将全部基于此环境. 1.下载JDK,版本为jdk-7u79-linux-x64.tar.gz 2.使用FileZilla上传至/softwar ...
随机推荐
- 安装DEDECMS出现Function ereg_replace()错误的解决方法
这个问题我记得以前有遇到的,是在本地调试dedecms整站程序的时候,从网上下载了一个整套程序包括模板到本地调试,导入数据库安装都正常,但是登陆 后台就出现"Deprecated: Func ...
- 全面系统Python3入门+进阶-1-7 课程内容与特点
结束
- 算法习题---5.1大理石在哪(UVa10474)
一:题目 现有N个大理石,每个大理石上写了一个非负整数.首先把各数从小到大排序,然后回答Q个问题.每个问题问是否有一个大理石写着某个整数x,如果是,还要回答哪个大理石上写着x.排序后的大理石从左到右编 ...
- 关于Image模块的调色板
参考:https://blog.csdn.net/zhangziju/article/details/79123275 https://blog.csdn.net/qq_21239003/articl ...
- go micro 微服务框架温习
go mod edit -require="github.com/chromedp/chromedp@v0.1.0" @后面加上你需要的版本号.就可以 已经修改go.mod 里的依 ...
- HTML布局排版2如何设置div总是相对于页面居中
由于浏览器页面有大有小,为了适应浏览器宽度,可以让div总是对于浏览器居中,设置div左右两边的margin为auto可以实现这个效果.如图,第一个是默认div,无上下左右外边距,第二个是设置了mar ...
- VUE中事件修饰符:stop prevent self capture
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8 ...
- ACS712电流传感器应用
1. 原理图 其中第7脚输出的是电压值,那么电压值和测量的电流什么关系?看下图,有3个量程,我用的是20A电流的,100mv电压对应1A电流 看下图,不同的温度会有影响,不过区别不大 最后计算的公式是 ...
- 06点睛Spring4.1-Bean的初始化和销毁
6.1 Initialization和Destruction spring对bean初始化的时候和销毁时候进行某些操作提供了支持 利用@Bean的initMethod和destroyMethod(和x ...
- docker里安装kali linux
docker里安装kali linux 官网镜像 docker search kali docker pull kalilinux/kali-linux-docker vi /etc/apt/sour ...