티스토리 뷰

OS/Linux

Ubuntu 22.04 : Nextcloud 설치 및 구성

파란크리스마스 2022. 11. 27. 00:21
728x90

출처

Nextcloud 설치

Nextcloud 스냅 패키지를 다운로드하여 Ubuntu에 설치

$ sudo snap install nextcloud

설치 확인

bluesanta@bluesanta-Default-string:~$ snap changes nextcloud
ID   Status  Spawn               Ready               Summary
3    Done    today at 00:18 KST  today at 00:19 KST  Install "nextcloud" snap

Nextcloud Snap에 대한 추가 정보 얻기

bluesanta@bluesanta-Default-string:~$ snap info nextcloud
name:      nextcloud
summary:   Nextcloud Server - A safe home for all your data
publisher: Nextcloud✓
store-url: https://snapcraft.io/nextcloud
contact:   https://github.com/nextcloud/nextcloud-snap
license:   unset
description: |
  Access, share and protect your files, calendars, contacts, communication and
  more at home and in your enterprise.
commands:
  - nextcloud.disable-https
  - nextcloud.enable-https
  - nextcloud.export
  - nextcloud.import
  - nextcloud.manual-install
  - nextcloud.mysql-client
  - nextcloud.mysqldump
  - nextcloud.occ
services:
  nextcloud.apache:          simple, enabled, active
  nextcloud.logrotate:       simple, enabled, inactive
  nextcloud.mdns-publisher:  simple, enabled, active
  nextcloud.mysql:           simple, enabled, active
  nextcloud.nextcloud-cron:  simple, enabled, active
  nextcloud.nextcloud-fixer: simple, enabled, active
  nextcloud.php-fpm:         simple, enabled, active
  nextcloud.redis-server:    simple, enabled, active
  nextcloud.renew-certs:     simple, enabled, active
snap-id:      njObIbGQEaVx1H4nyWxchk1i8opy4h54
tracking:     latest/stable
refresh-date: today at 00:18 KST
channels:
  latest/stable:    24.0.6snap1               2022-10-08 (31751) 244MB -
  latest/candidate: 24.0.6snap2               2022-10-27 (32090) 249MB -
  latest/beta:      24.0.6snap2+git5.9cc018c  2022-11-08 (32250) 250MB -
  latest/edge:      master-2022-11-26         2022-11-26 (32521) 266MB -

connections이 스냅이 정의 하는 스냅 확인

bluesanta@bluesanta-Default-string:~$ snap connections nextcloud
Interface        Plug                       Slot           Notes
network          nextcloud:network          :network       -
network-bind     nextcloud:network-bind     :network-bind  -
network-observe  nextcloud:network-observe  -              -
removable-media  nextcloud:removable-media  -              -

관리 계정 구성

새 관리자 계정으로 Nextcloud를 구성

nextcloud.manual-install [계정명] [암호]
bluesanta@bluesanta-Default-string:~$ sudo nextcloud.manual-install sammy password
Nextcloud was successfully installed

신뢰할 수 있는 도메인 등록

trusted_domains배열 값 확인

bluesanta@bluesanta-Default-string:~$ sudo nextcloud.occ config:system:get trusted_domains
localhost

아이피 확인

bluesanta@bluesanta-Default-string:~$ ifconfig | grep inet
        inet 192.168.0.52  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::a4c8:5bb:89d8:91e4  prefixlen 64  scopeid 0x20<link>
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>

도메인 추가

bluesanta@bluesanta-Default-string:~$ sudo nextcloud.occ config:system:set trusted_domains 1 --value=192.168.0.52
System config value trusted_domains => 1 set to string 192.168.0.52

도메인 추가 확인

bluesanta@bluesanta-Default-string:~$ sudo nextcloud.occ config:system:get trusted_domains
localhost
192.168.0.52
댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함