ssh 포트포워드 공유기에서 설정해야하고
외부 22112 / 내부 22 이런식으로 변경하는걸 추천
root@~~~~:/volume2/@docker# sudo ls -al
ls: cannot access 'containers': Input/output error
ls: cannot access 'plugins': Input/output error
ls: cannot access 'btrfs': Input/output error
ls: cannot access 'image': Input/output error
total 0
drwx--x--- 1 root root 74 May 13 20:40 .
drwxr-xr-x 1 root root 1244 May 13 20:40 ..
d????????? ? ? ? ? ? btrfs
drwx------ 1 root root 12 Nov 9 2019 containerd
d????????? ? ? ? ? ? containers
d????????? ? ? ? ? ? image
d????????? ? ? ? ? ? plugins
이런식으로 안되는 경우 보통 마운트가 깨져서 그런데 이럴땐 언마운트 > e2fsck 나 btrfs > 마운트 명령어로 해결
//SSH를 통해 NAS에 접속 후 root 권한을 얻습니다.
sudo -i
//현재 상태 확인
df -h
//볼륨 언마운트
umount /volume2
//!주의 btrfs 파일시스템일 경우 아래 명령어만 사용
btrfs check --repair /dev/md3
//!주의 ext2, ext3, ext4 파일시스템일 경우 아래 명령어만 사용
e2fsck -f -v -y /dev/md3
//볼륨 마운트
mount /dev/md3 /volume2
//상태 확인
df -h
ls -al /volume2/@docker
접속방법 계정@(ip주소 or domain):외부포트
EX) [email protected]:22112
관리자 권한 얻기 sudo -i
설치된 패키지 리스트 모두 보기 synopkg list --name
설치된 서비스 리스트 보기 sudo systemctl list-units pkgctl-*
설치된 패키지 모두 실행/중단 [서버 파일 시스템 검사 복구 할때 꺼놓을 필요있음] systemctl stop pkgctl-* systemctl start pkgctl-*
설치된 패키지 재실행 시키기 sudo systemctl restart pkgctl-WebStation.service
EX) pkgctl-WebStation.service 웹스테이션 재실행
synolo y 에서 위에 패키지 설치 명령어는 ipkg를 설치해야한다.
wget http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/syno-i686-bootstrap_1.2-7_i686.xsh
sh syno-i686-bootstrap_1.2-7_i686.xsh
ls /opt/bin/ipkg
ipkg 입력했을 때 제대로 나오면 된거임
ipkg list
ipkg install [package name]
ipkg update
docker ps -a, docker container ls //실행중인 도커 컨테이너 다 볼 수 있음
docker exec -it {컨테이너 ID} /bin/bash //조회된 컨테이너 ID로 도커에 접속
docker exec -u 0 -it {컨테이너 ID} /bin/bash //조회된 컨테이너 ID로 도커에 관리자 권한으로 접속
exit // 도커 접속 종료
현재 OS 정보 확인
uname -a
필수 설치 패키지들
apt-get 명령어로 설치
apt-get update 목록 업데이트
apt-get install -f 패키지이름
-y 옵션은 무조건 yes 누르기
-f는 --fix-broken 옵션으로, 의존성 관련 문제를 해결할때 사용
1. vi 파일 편집기 apt-get install -f vim
2. sudo root권한으로 실행 apt-get install -f sudo
3. curl 명령어 실행기 apt-get install -f curl
firebase projects:list // 프로젝트 리스트 볼수있음.
firebase database:get / --project your-project-id > database-data.json // 실서버에서 .json 파일로 모든데이터 가져오기
firebase emulators:start --import=./mydir --export-on-exit mydir // 폴더에 있는 .json 데이터 기반으로 에뮬레이터에 가져오고 내보내기