Ubuntu 16에 Zimbra를 설치하려고 하니 아래와 같은 에러가 나왔습니다.
ERROR: Installation can not proceeed. Please fix your /etc/hosts file
/etc/hosts 가장 윗부분을 아래와 같이 수정하였습니다.
127.0.0.1 localhost.localdomain 내호스트네임 localhost
* 내 호스트테임은 hostname으로 확인 할 수 있습니다.
Ubuntu 16에 Zimbra를 설치하려고 하니 아래와 같은 에러가 나왔습니다.
ERROR: Installation can not proceeed. Please fix your /etc/hosts file
/etc/hosts 가장 윗부분을 아래와 같이 수정하였습니다.
127.0.0.1 localhost.localdomain 내호스트네임 localhost
* 내 호스트테임은 hostname으로 확인 할 수 있습니다.
AWS를 사용하지 않을 이유를 특별한 이슈가 없다면 찾기 힘든것 같습니다..
몇년전에 free tier를 하다가 신경을 안썼는데 이번에 다시 웹서비스를 할 일이 생겨 12month Free tier를 생성해 보았습니다.
SSH접속을 하기 위해서 key를 생성했고 Privacy Key는 로컬로 다운로드 하였고 Public Key는 서버에 저장이 되더군요,
다운로드한 키는 퍼미션 400으로 수정 후 맥 터미널에서 아래 명령어를 이용해서 접속하면 됩니다.
chmod 400 aws_linux.pem
ssh -i "aws_linux.pem" ec2-user@<사용자별로 틀림>.ap-northeast-2.compute.amazonaws.com
http://egloos.zum.com/mcchae/v/10937316
아래 코드를 응용하여 cron에 등록하면 됩니다.
#!/bin/sh
cd /media/backupHDD/mysql_backup/
time=`date +%Y%m%d%H%M`
mysqldump -root -ppassword crmdb > $time".sql"
WEEKAGO=`date -d "7 days ago" +%Y%m%d`
rm /media/backupHDD/mysql_backup/$WEEKAGO*.sql
crontab -l
00 08 * * * /media/backupHDD/mysql_backup/dbbackup.sh
30 12 * * * /media/backupHDD/mysql_backup/dbbackup.sh
00 20 * * * /media/backupHDD/mysql_backup/dbbackup.sh
워드프레스 테마를 설치 후 이것저것 커스트마이징을 하게 됩니다. 워드프레스 테마쪽에 직접 코드를 수정한 후 테마 업데이트가 있을 경우
곤란한 상황에 처할 수 있습니다. 그럴 경우를 대비하여 부모-자식 테마를 설정하여 테마 업데이트를 하여도 문제가 없도록 할 수 있습니다.
구글검색하면 여러 방법이 나옵니다. 간단하게 플러그인으로도 가능합니다.
아래 플러그인을 설치해보세요^^
https://wordpress.org/plugins/child-theme-configurator/
wordpress 플러그인 또는 코어가 업데이트 되면 수동으로 업데이트 파일을 다운로드하여 업데이트 하는게 번거롭습니다.
ftp 데몬인 vsftp를 설치하여 wordpress 관리자 페이지에서 보다 쉽게 업데이트 하는 방법을 메모합니다.
먼저 터미널에서 sudo apt-get install 명령어로 vsftpd vsftp 데몬을설치
wordpress 관리자 페이지에서 플러그인 또는 코어 업데이트를 클릭한 후 ftp정보를 입력
- 내부 사설 ip를 입력
- 로그인 계정
- 로그인 비밀번호
1. Web Server Ownership
The first level is actually to make sure that your web server has ownership over the directories:chown -R www-data:www-data your-wordpress-directory
2. Directory Permissions
The second level is also required – you must make sure that the directory permissions are properly set:sudo find /var/www/wordpress/ -type d -exec chmod 755 {} \;
sudo find /var/www/wordpress/ -type f -exec chmod 644 {} \;
I’ve found that most solutions posted on the web show part two but skip the first part.
출처 :
http://blog.kaniski.eu/2014/10/tip-using-synology-to-recover-data-from-another-hard-drive/
1. 먼저 시놀로지 나스에 ntfs하드 디스크를 장착한 후 아무것도 하지 않은 상태로 부팅합니다.
2. 환경설정에서 SSH를 활성화 한 후 root계정으로 SSH 로그인 접근합니다.
3. 아래 코드를 참고하여 ntfs 파티션을 마운팅 후 cp 명령어로 내부 나스 공유폴더에 복사하면 됩니다.
df -k
### OUTPUT ###
# Filesystem 1K-blocks Used Available Use% Mounted on
# /dev/md0 2451064 526740 1821924 22% /
# /tmp 59248 736 58512 1% /tmp
# /dev/vg1000/lv 1913548228 1167461820 745984008 61% /volume1
fdisk -l /dev/sdd
### OUTPUT ###
# Disk /dev/sdd: 320.0 GB, 320072933376 bytes
# 255 heads, 63 sectors/track, 38913 cylinders
# Units = cylinders of 16065 * 512 = 8225280 bytes
# Device Boot Start End Blocks Id System
# /dev/sdd1 1 38914 312568832 7 HPFS/NTFS
mkdir /tmp/ntfs
ntfs-3g -o ro /dev/sdd1 /tmp/ntfs
df -k
### OUTPUT ###
# Filesystem 1K-blocks Used Available Use% Mounted on
# /dev/md0 2451064 526740 1821924 22% /
# /tmp 59248 736 58512 1% /tmp
# /dev/vg1000/lv 1913548228 1167461820 745984008 61% /volume1
# /dev/sdd1 312568768 270452224 42116544 87% /tmp/ntfs
dir
### OUTPUT ###
# drwxrwxrwx 1 root root 0 Oct 11 10:11 $RECYCLE.BIN
# drwxrwxrwx 1 root root 4096 Oct 11 10:11 .
# drwxrwxrwt 10 root root 1300 Oct 20 22:11 ..
# drwxrwxrwx 1 root root 0 Oct 11 09:55 FILES
# drwxrwxrwx 1 root root 0 Oct 11 08:44 System Volume Information
cp -R /tmp/ntfs/FILES /volume1/public/
아래 파일을 수정하였다. 이 방법은 정확하지 않을 수 있습니다.
/etc/apache2/sites-available/000-default.conf
<VirtualHost *:80> ServerAdmin admin@example.com ServerName example.com ServerAlias www.example.com DocumentRoot /var/www/example.com/public_html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>