 및 CentOS에 ONLYOFFICE를 설치하는 방법.png)
Red Hat Linux(RHEL) 및 CentOS에 ONLYOFFICE를 설치하는 방법
소개
ONLYOFFICE는 팀이 프로젝트, 고객 관계 및 문서를 한 곳에서 관리할 수 있게 해주는 무료 오픈 소스 소프트웨어입니다. Ubuntu가 가장 잘 알려진 Linux 배포판이지만 다른 배포판 사용자가 추위에 소외감을 느끼기를 원하지 않습니다. 이 가이드는 Red Hat/CentOS에 ONLYOFFICE 협업 시스템을 설치하기 위해 취해야 할 단계를 보여줍니다.
시스템 요구 사항
ONLYOFFICE의 올바른 작업을 위해 컴퓨터는 일부 시스템 요구 사항을 충족하고 몇 가지 추가 구성 요소가 설치되어 있어야 합니다.
yum -y install nano yum-utils시스템 저장소에 있는 구성 요소는 yum install 명령을 사용하여 ONLYOFFICE 설치 시 자동으로 설치됩니다. 이러한 구성 요소 중 일부가 누락된 경우 공식 웹 사이트의 지침을 따르십시오.
yum -y install epel-release
yum install http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
MySQL 서비스를 활성화하고 mysql을 시작합니다.
systemctl enable mysqld.serviceMySQL 암호를 설정하고(초기 암호는 비어 있음) 테스트 데이터베이스를 제거합니다.
systemctl start mysqld.service
mysql_secure_installation이 명령은 아래에 설명된 대로 mysql 보안 프로세스를 통해 대화식으로 안내합니다.
[[email protected] ~]# 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]3단계. 저장소에서 ONLYOFFICE 설치
name=onlyoffice repo
baseurl=http://download.onlyoffice.com/repo/centos/noarch/
gpgcheck=0
enabled=1
다음 명령을 실행하기만 하면 됩니다.
sudo yum install onlyoffice
ONLYOFFICE 구성
ONLYOFFICE를 처음 시작하기 전에 데이터베이스를 만들고 연결을 구성해야 합니다. 그렇게 하려면 구성 스크립트를 실행하십시오.
chmod +x /var/www/onlyoffice/configure.sh대화식으로 MySQL 연결 매개변수를 입력하고, 데이터베이스를 생성하고, 구성 파일을 업데이트하고, 모든 서비스를 실행하도록 요청합니다. 참고: 스크립트는 데이터베이스에 대한 사용자를 생성하지 않으며 기존 사용자의 비밀번호를 변경하지 않습니다.
/var/www/onlyoffice/configure.sh
[[email protected] ~]# /var/www/onlyoffice/configure.sh그런 다음 라인을 변경하십시오.
-bash: /var/www/onlyoffice/configure.sh: Permission denied
[[email protected] ~]# chmod +x /var/www/onlyoffice/configure.sh
[[email protected] ~]# /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에 액세스하는 데 사용할 이메일 주소를 지정하십시오. 완료! 작업을 시작할 수 있습니다!