웹사이트 검색

RedHat Linux(RHEL) 및 CentOS에 ONLYOFFICE를 설치하는 방법


이 페이지에서

  1. 소개
  2. 시스템 요구 사항\n
  3. ONLYOFFICE 설치
  4. ONLYOFFICE 구성
  5. ONLYOFFICE 실행\n
  6. 유용한 정보\n
  7. 링크

소개

ONLYOFFICE는 팀이 프로젝트, 고객 관계 및 문서를 한 곳에서 관리할 수 있는 무료 오픈 소스 소프트웨어입니다. Ubuntu가 가장 잘 알려진 Linux 배포판이지만 다른 배포판 사용자가 소외감을 느끼지 않기를 바랍니다. 이 가이드는 Red Hat/CentOS에 ONLYOFFICE 협업 시스템을 설치하기 위해 수행해야 할 단계를 보여줍니다.

시스템 요구 사항

ONLYOFFICE가 올바르게 작동하려면 시스템이 일부 시스템 요구 사항을 충족하고 몇 가지 추가 구성 요소가 설치되어 있어야 합니다.

  • RAM: 2GB 이상
  • 스왑 파일: 최소 2GB
  • HDD: 최소 2GB의 여유 공간
  • 모노: 버전 3.2 이상
  • MySQL: 버전 5.6 이상
  • nginx

몇 가지 필수 구성 요소를 설치하고 다음에 대한 추가 리포지토리를 활성화합니다(CentOS 7의 경우).

yum -y install nano yum-utils
yum -y install epel-release
yum install http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

시스템 리포지토리에 있는 구성 요소는 ONLYOFFICE 설치 시 yum install 명령을 사용하여 자동으로 설치됩니다.
이러한 구성 요소 중 일부가 누락된 경우 해당 공식 웹 사이트의 지침을 따르십시오.

MySQL 서비스를 활성화하고 mysql을 시작합니다.

systemctl enable mysqld.service
systemctl start mysqld.service

MySQL 암호를 설정하고(초기 암호는 비어 있음) 테스트 데이터베이스를 제거합니다.

mysql_secure_installation

이 명령은 아래 설명된 대로 mysql 보안 프로세스를 통해 대화식으로 안내합니다.

[ ~]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.
Set root password? [Y/n] Y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!

By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] y
... Success!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] y
... Success!
By default, MySQL comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y
- Dropping test database...
ERROR 1008 (HY000) at line 1: Can't drop database 'test'; database doesn't exist
... Failed! Not critical, keep moving...
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
... Success!
All done! If you've completed all of the above steps, your MySQL
installation should now be secure.
Thanks for using MySQL!
Cleaning up...

ONLYOFFICE 설치

1단계. Ctrl+Alt+T를 사용하여 터미널을 엽니다.

2단계. yum ONLYOFFICE 저장소를 추가합니다.

그렇게 하려면 /etc/yum.repos.d/onlyoffice.repo를 만듭니다. 다음 내용이 포함된 파일:

nano /etc/yum.repos.d/onlyoffice.repo
[onlyoffice]
name=onlyoffice repo
baseurl=http://download.onlyoffice.com/repo/centos/noarch/
gpgcheck=0
enabled=1

3단계. 리포지토리에서 ONLYOFFICE 설치

다음 명령을 실행하십시오.

sudo yum install onlyoffice

ONLYOFFICE 구성

처음으로 ONLYOFFICE를 시작하기 전에 데이터베이스를 만들고 연결을 구성해야 합니다.
그렇게 하려면 구성 스크립트를 실행하십시오.

chmod +x /var/www/onlyoffice/configure.sh
/var/www/onlyoffice/configure.sh

대화식으로 MySQL 연결 매개변수 입력, 데이터베이스 생성, 구성 파일 업데이트 및 모든 서비스 실행을 요청합니다.
참고: 스크립트는 데이터베이스에 대한 사용자를 생성하지 않으며 기존 사용자의 암호를 변경하지 않습니다.

[ ~]# /var/www/onlyoffice/configure.sh
Configuring MySQL access...
Host: localhost
Database name: onlyoffice
User: root
Password: <- enter the mysql root password here
Trying to establish MySQL connection... OK
Installing MySQL database... Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
OK
Restarting services... OK

그런 다음 줄을 변경

listen       80 default_server;

에게

listen       81 default_server;

/etc/nginx/nginx.conf 파일에서 ONLYOFFICE는 포트 80에서 자체 기본 가상 호스트를 정의하고 nginx를 활성화하고 시작합니다.

nano /etc/nginx/nginx.conf

그런 다음 nginx를 활성화하고 시작합니다.

systemctl enable nginx.service
systemctl start nginx.service

운영 중인 ONLYOFFICE

웹 브라우저에서 사무실을 열려면 localhost(http://127.0.0.1)를 입력하거나 데스크톱이 설치되어 있지 않은 경우 브라우저의 주소 표시줄에 서버의 외부 IP를 입력합니다. 환영 페이지가 열립니다:

비밀번호를 입력하고 다음에 ONLYOFFICE에 액세스하는 데 사용할 이메일 주소를 지정하십시오.
완료! 작업을 시작할 수 있습니다!

팁과 요령

  • 팁 1. ONLYOFFICE는 Mono v. 3.2 이상을 사용하여 공식 지침을 확인하여 설치합니다. 현재 버전을 찾기 위해 설치된 경우 다음 명령을 실행합니다. mono --version.\n
  • 팁 2. 최신 버전의 nginx를 설치하려면 공식 지침을 따르십시오.\n
  • 팁 3. ONLYOFFICE는 MySQL 버전 5.6 이상이 필요합니다. 컴퓨터에 설치하려면 공식 지침을 참조하십시오.\n
  • 팁 4. ONLYOFFICE가 설치되면 필요에 맞게 사용자 지정하고 관리해야 할 수 있습니다. 필요한 모든 지침은 ONLYOFFICE 공식 웹 사이트에서 찾을 수 있습니다.\n
  • 팁 5. 그래픽 사용자 인터페이스를 사용하여 ONLYOFFICE를 설치하려면 SourceForge에서 설치 파일을 다운로드하십시오.\n
  • 팁 6. ONLYOFFICE를 설치하는 가장 간단하고 안전한 방법을 찾고 있다면 Docker 서비스를 사용하세요.\n

연결

  • 온리오피스\n