2021. 5. 17. 22:41
2019. 12. 9. 16:30

https://ko.wordpress.org/download/

워드프레스 다운로드

sudo wget "http://wordpress.org/latest.tar.gz"

unzip wordpress.zip

chown -R nginx:nginx wordpress

chcon -t httpd_sys_rw_content_t /usr/share/nginx/html/wordpress -R

 

$ sudo mysql -u root -p

 

이제 wordpress에서 사용할 DB를 만들어 줍니다.

CREATE DATABASE wordpress;

http://localhost/wordpress 접속

 

 

참고:

https://techblog.jeppson.org/2016/10/install-wordpress-centos-7/

https://linuxconfig.org/install-wordpress-on-redhat-8

 

'네트워크 > 자작 NAS' 카테고리의 다른 글

nginx ssl 적용  (0) 2021.05.17
#20. 계정 변경 명령어  (0) 2019.12.09
#18. cockpit 서버관리 도구  (0) 2019.12.08
#15. Subsonic, cherymusic 스트리밍 서버 설치  (0) 2019.12.07
#10. webmin 설치  (0) 2019.12.07
Posted by ramramr
2019. 12. 9. 16:04
사용법
usermod <계정> -l <바꿀 계정>
계정명을 바꿀 계정명 으로 변경합니다. (사용 비 권장)
usermod -c <"이름"> <계정>
계정의 이름을 변경합니다.
usermod -d <"경로"> <계정>	
계정의 홈 디렉터리를 변경합니다.
usermod -s <"셸"> <계정>
계정의 로그인 기본 셸을 변경합니다.
usermod -e <날짜> <계정>
계정이 해당 날짜에 만료되도록 합니다.
ex) usermod -e 2018-05-01 myuser
usermod -g <그룹> <계정>	
사용자의 기본 소속 그룹을 변경합니다.
usermod -G <그룹> <계정>
계정의 소속 그룹을 변경합니다.
만약 여러 그룹을 지정할 때에는 ,(콤마) 로 구분하여 지정합니다.
usermod -a -G <그룹> <계정>	
계정의 소속 그룹을 추가(add) 합니다.
Usage: usermod [options] LOGIN

Options:
  -c, --comment COMMENT         new value of the GECOS field
  -d, --home HOME_DIR           new home directory for the user account
  -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
  -f, --inactive INACTIVE       set password inactive after expiration
                                to INACTIVE
  -g, --gid GROUP               force use GROUP as new primary group
  -G, --groups GROUPS           new list of supplementary GROUPS
  -a, --append                  append the user to the supplemental GROUPS
                                mentioned by the -G option without removing
                                the user from other groups
  -h, --help                    display this help message and exit
  -l, --login NEW_LOGIN         new value of the login name
  -L, --lock                    lock the user account
  -m, --move-home               move contents of the home directory to the
                                new location (use only with -d)
  -o, --non-unique              allow using duplicate (non-unique) UID
  -p, --password PASSWORD       use encrypted password for the new password
  -R, --root CHROOT_DIR         directory to chroot into
  -P, --prefix PREFIX_DIR       prefix directory where are located the /etc/* files
  -s, --shell SHELL             new login shell for the user account
  -u, --uid UID                 new UID for the user account
  -U, --unlock                  unlock the user account
  -v, --add-subuids FIRST-LAST  add range of subordinate uids
  -V, --del-subuids FIRST-LAST  remove range of subordinate uids
  -w, --add-subgids FIRST-LAST  add range of subordinate gids
  -W, --del-subgids FIRST-LAST  remove range of subordinate gids
  -Z, --selinux-user SEUSER     new SELinux user mapping for the user account

'네트워크 > 자작 NAS' 카테고리의 다른 글

nginx ssl 적용  (0) 2021.05.17
#21. CentOS wordpress 설치  (0) 2019.12.09
#18. cockpit 서버관리 도구  (0) 2019.12.08
#15. Subsonic, cherymusic 스트리밍 서버 설치  (0) 2019.12.07
#10. webmin 설치  (0) 2019.12.07
Posted by ramramr
2019. 12. 8. 13:50

CentOS 8부터 기본 내장되있는 cockpit

리소스도 얼마 안먹고 편리하다. 

 

설치

yum -y install cockpit

실행

systemctl start cockpit

자동실행 등록

systemctl enable cockpit.socke

 

서버의 iptables 방화벽 사용시 방화벽 포트오픈 [기본포트 9090을 사용하므로 9090포트를 오픈해도된다]

firewall-cmd –permanent –zone=public –add-service=cockpit

firewall-cmd –permanent –zone=public –add-port=9090/tcp     //9090포트오픈

 

firewall-cmd –reload

'네트워크 > 자작 NAS' 카테고리의 다른 글

#21. CentOS wordpress 설치  (0) 2019.12.09
#20. 계정 변경 명령어  (0) 2019.12.09
#15. Subsonic, cherymusic 스트리밍 서버 설치  (0) 2019.12.07
#10. webmin 설치  (0) 2019.12.07
#9. phpmyadmin 설치  (0) 2019.12.07
Posted by ramramr
2019. 12. 7. 23:08

http://www.subsonic.org/pages/download.jsp

 

Subsonic

  Windows Subsonic 6.1.6 Instructions   Mac OS X Subsonic 6.1.6 Instructions   Debian / Ubuntu Subsonic 6.1.6 Instructions   Red Hat / Fedora Subsonic 6.1.6 Instructions   Stand-alone version (all platforms) Subsonic 6.1.6 Instructions   WAR version (all p

www.subsonic.org


자신의 운영체제에 맞는패키지 다운로드

레드햇기준

rpm -ivh subsonic.rpm

systemctl start subsonic

http://localhost:4040


프리미엄 인증

/etc/hosts 파일에 subsonic.org 등록

프리미엄 라이센스 등록

foo@bar.com

f3ada405ce890b6f8204094deb12d8a8


cherrymusic
https://github.com/devsnd/cherrymusic

'네트워크 > 자작 NAS' 카테고리의 다른 글

#20. 계정 변경 명령어  (0) 2019.12.09
#18. cockpit 서버관리 도구  (0) 2019.12.08
#10. webmin 설치  (0) 2019.12.07
#9. phpmyadmin 설치  (0) 2019.12.07
#8. 예약작업 crontab  (0) 2019.12.07
Posted by ramramr
2019. 12. 7. 22:58

http://www.webmin.com/download.html

자신의 배포판에 맞는 파일을 다운로드

 

perl기반으로 만들어져서 perl이 필요합니다.
dnf install perl perl-core perl-Encode-Detect perl-Net-SSLeay openssl perl-IO-Tty
rpm -ivh webmin-1.930-1.noarch.rpm

방화벽에 포트 10000번 허용

firewall-cmd --permanent --zone=public --add-port=10000
firewall-cmd --reload

접속

https://server-ip:10000

'네트워크 > 자작 NAS' 카테고리의 다른 글

#18. cockpit 서버관리 도구  (0) 2019.12.08
#15. Subsonic, cherymusic 스트리밍 서버 설치  (0) 2019.12.07
#9. phpmyadmin 설치  (0) 2019.12.07
#8. 예약작업 crontab  (0) 2019.12.07
#7. NAS 전원 관리  (0) 2019.11.09
Posted by ramramr
2019. 12. 7. 22:58

https://www.phpmyadmin.net/

 

phpMyAdmin

Your download should start soon, if not please click here. Please verify the downloaded file Please take additional steps to verify that the file you have downloaded is not corrupted, you can verify it using the following methods: phpMyAdmin needs your con

www.phpmyadmin.net

chown -R nginx:nginx phpmyadmin

chmod 755 phpmyadmin

'네트워크 > 자작 NAS' 카테고리의 다른 글

#15. Subsonic, cherymusic 스트리밍 서버 설치  (0) 2019.12.07
#10. webmin 설치  (0) 2019.12.07
#8. 예약작업 crontab  (0) 2019.12.07
#7. NAS 전원 관리  (0) 2019.11.09
#6. 토렌트 원격 다운로드 서버  (0) 2019.11.06
Posted by ramramr
2019. 12. 7. 22:57
[root@localhost ~]# cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root

# For details see man 4 crontabs

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name  command to be executed

ex) 0 5 * * * root /usr/bin/rdate -s time.bora.net && /sbin/hwclock -w

'네트워크 > 자작 NAS' 카테고리의 다른 글

#10. webmin 설치  (0) 2019.12.07
#9. phpmyadmin 설치  (0) 2019.12.07
#7. NAS 전원 관리  (0) 2019.11.09
#6. 토렌트 원격 다운로드 서버  (0) 2019.11.06
#5. plex 미디어 서버 설치  (0) 2019.11.06
Posted by ramramr
2019. 11. 9. 21:10

0. 윈도우 자동 시작, 종료 예약 프로그램

http://www.lifsoft.com/downloads.html

 

1. 하드 절전

하드디스크를 여러개 달고 사용할 경우 절전이 필요합니다.
 
하드절전 적용 방법은 
 
/etc/hdparm.conf 파일을 열어서 
 
#spindown_time = 24 항목 앞에 #을 지고 뒤 숫자(1 = 5초 단위)를 적절한 숫자로 바꿔주시면 됩니다. 
 
만약 10분 후에 하드디스크를 멈추게 하고 싶다면 
 
spindown_time = 120 이라고 수정하시면 됩니다.

 

2. Wol을 사용한 원격 컴퓨터 켜기

바이오스에서 Power On By PCI-E를 활성화 해줍니다.

윈도우의 경우 장치관리자에가서 장치관리자 - 랜카드에서 활성화 해줍니다.

리눅스에서는 sudo apt-get install ethtool을 설치합니다.

post-up /sbin/ethtool -s 인터페이스명 wol g
post-down /sbin/ethtool -s 인터페이스명 wol g

다음부팅때는 자동으로 wol이 활성화 됩니다.

'네트워크 > 자작 NAS' 카테고리의 다른 글

#9. phpmyadmin 설치  (0) 2019.12.07
#8. 예약작업 crontab  (0) 2019.12.07
#6. 토렌트 원격 다운로드 서버  (0) 2019.11.06
#5. plex 미디어 서버 설치  (0) 2019.11.06
#4. samba 서버 설치  (0) 2019.11.05
Posted by ramramr
2019. 11. 6. 20:12

sudo apt-get install transmission-daemon

sudo vi /etc/transmission-daemon/settings.json


"bind-address-ipv4": "0.0.0.0", #바인드 ip주소이다.
"download-dir": "/down", #다운로드 디렉토리이다.
"rpc-bind-address": "0.0.0.0", #WEB-Interface으로 접근가능한 주소이다. 0.0.0.0는 모두 접속가능하다.
"rpc-authentication-required": true, #계정과 비밀번호를 입력해야 하는지 설정이다 false로 설정할시에 그냥 접속할수있다.
"rpc-enabled": true, #당연하지만 외부에서 접속이 가능하게 활성화가 필요하다.
"rpc-password": "passwd", #비밀번호 접속계정의 비밀번호다. 설정후에 다시보면 난수로 되어있다.
"rpc-username": "user", #접속계정 이름이다.
"rpc-whitelist": "*.*.*.*", #whitelist... 
"rpc-port": 9091, #원격으로 접속하는 WEB-Interface의 포트번호이다.

sudo service transmission-daemon restart

sudo service transmission-daemon reload

설정이 초기화될시 먼저 reload해줍니다.

웹이나 앱으로 원격 접속해서 NAS로 다운로드가 가능합니다.

 

'네트워크 > 자작 NAS' 카테고리의 다른 글

#8. 예약작업 crontab  (0) 2019.12.07
#7. NAS 전원 관리  (0) 2019.11.09
#5. plex 미디어 서버 설치  (0) 2019.11.06
#4. samba 서버 설치  (0) 2019.11.05
#3. vsftpd 서버 설치  (0) 2019.11.05
Posted by ramramr