Synology NAS 장비의 데이터 복사시 네트워크 대역폭을 다 써버리면 다른 컴퓨터에서 인터넷 사용시 엄청 느려지게 됩니다.

이럴때를 대비해서 적당한 속도로 제한을 걸어두는게 좋습니다.

 

시놀로지 나스 트래픽 속도 제한

최저 속도는 100Mbps ( 12800KB/s )

최대 속도는 500Mbps ( 64000KB/s )

 

적당한 속도로 입력하고 확인을 누르면 됩니다.

 

블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

Synology 레이드 구성하지 않고 단독 디스크에 iSCSI 초기자로 네트워크 드라이브를 잡아서 속도 체크를 해보았습니다.

하드디스크 속도가 기가인터넷 속도와 비슷해서 순차 읽기 115MB/s, 순차 쓰기 101MB/s 속도가 나왔습니다.

Synology iSCSI CrystalDiskMark

로컬 디스크와 속도가 별로 차이가 없는것 같네요~

 

블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

[시놀로지] 시작프로그램 등록 위치



아래 경로에 쉘스크립트를 작성해서 넣어두면 됩니다.


/usr/local/etc/rc.d/


/etc/init.d 또는 /etc/rc.local 경로인데,

Synology 는 FreeBSD 기반 리눅스 종류인지 /usr/local/etc/rc.d 인 것 같네요~


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

[CentOS] 7.x SELINUX 설정 해제



selinux 가 동작을 하고 있으면 보안 설정이 너무 짜증이 납니다.


# vi /etc/selinux/config 수정


#SELINUX=enforcing

SELINUX=disabled


이제 reboot 명령어로 시스템을 재시작 하면 됩니다.



수동으로는 "setenforce 0" 명령어를 실행하면 됩니다.


[root@localhost ~]# getenforce

Enforcing

[root@localhost ~]# setenforce 0

[root@localhost ~]# sestatus

SELinux status:                 enabled

SELinuxfs mount:                /sys/fs/selinux

SELinux root directory:         /etc/selinux

Loaded policy name:             targeted

Current mode:                   permissive

Mode from config file:          disabled

Policy MLS status:              enabled

Policy deny_unknown status:     allowed

Max kernel policy version:      31


설치후 disabled 로 변경하고 재시작을 권합니다.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

[아파치] PHP Notice:  Undefined index: 에러


/var/log/httpd/ 로그파일에 "PHP Notice:  Undefined index:" 같은 에러가 엄청 많이 기록이 되는군요~

소스를 수정하여도 되겠지만 너무 많다면 로그가 안나오게 할 수도 있습니다.


# vi /etc/php.ini 수정

;error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

error_reporting = E_ALL & ~E_DEPRECATED & ~(E_NOTICE | E_WARNING)

~E_STRICT => ~(E_NOTICE | E_WARNING) 로 수정하고 아파치를 재시작 합니다.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

[시놀로지] 현재 서비스중인 목록 리스트


시놀로지의 service 명은 리눅스와 같은 것도 있지만 어떤것은 이름 달라서 재시작하려고 해도 서스명을 알아야 합니다.

mysql (mariadb5, mariadb10) 서비스를 재시작 하려고 했더니 서비스명을 몰라서 한참을 헤매었네요~

서비스 재시작은 "synoservice --restart 서비스명"입니다.

root@mynas:~/bin# synoservice --status | grep ^Service

Service [synorelayd] status=[enable]

Service [pkgctl-USBCopy] status=[enable]

Service [syslog-acc] status=[enable]

Service [synobackupd] status=[enable]

Service [ddns] status=[enable]

Service [synostoraged] status=[enable]

Service [ups-net] status=[disable]

Service [nslcd] status=[disable]

Service [pkgctl-MariaDB10] status=[enable]

Service [pkgctl-SynologyDrive] status=[enable]

Service [pkgctl-MariaDB] status=[enable]

Service [synowifid] status=[disable]

Service [cups-lpd] status=[disable]

Service [s2s_daemon] status=[enable]

Service [syslog-notify] status=[enable]

Service [bluetoothd] status=[disable]

Service [synowstransfer] status=[disable]

Service [pkgctl-VideoStation] status=[enable]

Service [ftpd-ssl] status=[disable]

Service [ssdp] status=[disable]

Service [pkgctl-Node.js_v8] status=[enable]

Service [nginx] status=[enable]

Service [pkgctl-SynoFinder] status=[enable]

Service [synonetd] status=[enable]

Service [apparmor] status=[enable]

Service [synogpoclient] status=[enable]

Service [atalk] status=[disable]

Service [findhost] status=[enable]

Service [pkgctl-phpMyAdmin] status=[enable]

Service [pkgctl-PHP7.0] status=[enable]

Service [upnpd] status=[disable]

Service [synoovs-db] status=[disable]

Service [synomkthumbd] status=[enable]

Service [tftp] status=[disable]

Service [pkgctl-PHP5.6] status=[enable]

Service [synomkflvd] status=[enable]

Service [snmp] status=[enable]

Service [support-remote-access] status=[disable]

Service [pkgctl-FileStation] status=[enable]

Service [avahi] status=[disable]

Service [synoovs-vswitch] status=[disable]

Service [sftp] status=[enable]

Service [ntpd-client] status=[enable]

Service [synovpnclient] status=[enable]

Service [synocontentextractd] status=[enable]

Service [ssh-shell] status=[enable]

Service [pkgctl-Node.js_v4] status=[enable]

Service [iscsitrg] status=[enable]

Service [synoconfd] status=[enable]

Service [pkgctl-SynologyApplicationService] status=[enable]

Service [syslog-ng] status=[enable]

Service [ldap-server] status=[disable]

Service [pkgctl-OAuthService] status=[enable]

Service [synocgid] status=[enable]

Service [btacd] status=[disable]

Service [synoindexd] status=[enable]

Service [synomount] status=[enable]

Service [pkgctl-WebStation] status=[enable]

Service [ftpd] status=[disable]

Service [heartbeat] status=[enable]

Service [synoagentregisterd] status=[enable]

Service [synoperfeventd] status=[disable]

Service [synocrond] status=[enable]

Service [scemd] status=[enable]

Service [usbipd] status=[disable]

Service [crond] status=[enable]

Service [samba] status=[enable]

Service [hotplugd] status=[enable]

Service [synologanalyzer] status=[enable]

Service [cupsd] status=[disable]

Service [natpmpd] status=[disable]

Service [ups-usb] status=[disable]

Service [synosnmpcd] status=[enable]

Service [telnetd] status=[disable]

Service [pgsql] status=[enable]

Service [winbindd] status=[disable]

Service [miniupnpd-handler] status=[disable]

Service [dc-output] status=[enable]

Service [rsyncd] status=[disable]

Service [gcpd] status=[disable]

Service [synotunnel] status=[disable]

Service [pkgctl-LogCenter] status=[enable]

Service [synologrotate] status=[enable]

Service [bonjour] status=[disable]

Service [synotifyd] status=[enable]

Service [DSM] status=[enable]

Service [synocacheclient] status=[enable]

Service [pkgctl-PhotoStation] status=[enable]

Service [pkgctl-Apache2.4] status=[enable]

Service [pkgctl-PHP7.2] status=[enable]

Service [pkgctl-AntiVirus] status=[enable]

Service [dbus] status=[enable]

Service [nfsd] status=[disable]

Service [ntpd-server] status=[disable]

Service [nmbd] status=[enable]

synoservice --status 명령어로 리스트를 뽑아낸 다음에 grep 으로 걸러내면 됩니다.

synoservice --status | grep ^Service | grep enable 명령어가 최종 서비스중인 리스트가 됩니다.

mariadb 5 는 서비스명이 pkgctl-MariaDB 이고, mariadb 10 은 pkgctl-MariaDB10 입니다.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

[리눅스] 쉘스크립트 실행 /bin/sh^M 오류


윈도우에서 만들어진 쉘스크립트 파일을 시놀로지에 넣어서 실행하니깐 아래와 같은 오류가 생기더군요~

root@mynas:~/bin# ./test.sh

-ash: ./test.sh: /bin/sh^M: bad interpreter: No such file or directory

또는

line 1: #!/bin/sh: No such file or directory ( <feff> 유니코드 BOM 으로 저장된 경우 )

개행 문자를 unix 로 바꿔주어야 합니다.


# vi test.sh

:set fileformat=unix

저장하고 다시 실행해보세요~


line 1: #!/bin/sh: No such file or directory

이렇게 나온다면

# vi -b test.sh 로 실행해서 

<feff>#!/bin/sh

위와 같이 나오면 앞에 문자를 지워주고 저장하면 됩니다.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

[시놀로지] ssh root 계정 권한 획득


나스 관리자계정으로 ssh 접속을 한 다음에 sudo -i 명령으로 루트 계정 획득이 가능합니다.

login as: myadmin

myadmin@192.168.1.100's password:

Could not chdir to home directory /var/services/homes/myadmin: No such file or directory

myadmin@mynas:/$ sudo -i

Password:

root@mynas:~#

root 권한으로 명령어를 실행해야 할 것이 많다면 권한을 획득한 다음에 작업하는게 편합니다.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

[시놀로지] phpMyAdmin 특정 IP에서만 접속 허용하기


Synology 에 phpmyadmin 을 설치하고 특정 아이피 또는 외부가 아닌 로컬 네트워크에서만 접속이 가능하게 하려면,

nginx 설정을 변경하고 재시작 하면 됩니다.

먼저 ssh 터미널을 활성화 시키고 접속합니다.


$ sudo vi /etc/nginx/conf.d/www.phpMyAdmin.enable.conf 편집

location ^~ /phpMyAdmin/ {

    allow 192.168.1.0/24;

    deny all;

    ...

}

$ sudo synoservice --restart nginx 재시작

허용하려는 ip 목록을 작성하면 됩니다.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

[리눅스] PHP SESSION 저장 안되는 문제


아파치에서 VirtualHost 를 다른 소유자로 변경하고 재시작 했더니 잘되던 phpmyadmin 에서 아래와 같은 오류가 뜨더군요~

mod_ruid2 모듈과 함께 사용중인데 원인을 찾는데 함참 걸렸네요~

import.php: Missing parameter: import_type

import.php: Missing parameter: format

세션이 저장되는 폴더 /var/lib/php/session 폴더의 퍼미션을 777로 바꾸어도 안되더니 가만 생각해 보니 그 안에 원래 있던 세션 파일의 소유자가 달라서 그렇더군요~

해당 파일을 지우고 하니 잘 됩니다~


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,