본문
1. UTF-8 서버 설정
출처 : http://www.cyworld.com/gon0121/2698385
1) /etc/environment
LANG="ko_KR.UTF-8"
LANGUAGE="ko_KR:ko:en_GB:en"
PATH 앞에 추가
2) /etc/default/locale
LANGUAGE="ko_KR.UTF-8"
LANG_ALL="ko_KR.UTF-8"
LANG="ko_KR.UTF-8" 뒤에 추가
2. euc_kr Locale 추가
출처 : http://leoric99.tistory.com/entry/Ubuntueuckr-%EB%A1%9C%EC%BC%80%EC%9D%BC-%EC%B6%94%EA%B0%80
1) sudo locale-gen ko_KR.EUC-KR
2) /etc/environment에 바로 추가하는 방법
PATH="/usr/local/sbin;/usr/local/bin;/usr/bin;/....."
LANG="ko_KR.UTF-8"
LANGUAGE="ko_KR:ko:en_GB:en"
이런것에 아래 한줄 추가
PATH="/usr/local/sbin;/usr/local/bin;/usr/bin;/....."
LANG="ko_KR.UTF-8"
LANG="ko_KR.EUC-KR"
LANGUAGE="ko_KR:ko:en_GB:en"
3. Locale 확인하기
root@buy-0431:~# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=ko_KR.eucKR
LANGUAGE=ko_KR.UTF-8
LC_CTYPE="ko_KR.eucKR"
LC_NUMERIC="ko_KR.eucKR"
LC_TIME="ko_KR.eucKR"
LC_COLLATE="ko_KR.eucKR"
LC_MONETARY="ko_KR.eucKR"
LC_MESSAGES="ko_KR.eucKR"
LC_PAPER="ko_KR.eucKR"
LC_NAME="ko_KR.eucKR"
LC_ADDRESS="ko_KR.eucKR"
LC_TELEPHONE="ko_KR.eucKR"
LC_MEASUREMENT="ko_KR.eucKR"
LC_IDENTIFICATION="ko_KR.eucKR"
LC_ALL=
root@buy-0431:~#
한글처리 추가
vi /etc/bash.bashrc
export LANG=en_US
export LC_ALL=en_US
alias seteng='export LANG=en_US;export LC_ALL=en_US'
alias sethan='export LANG=ko_KR.eucKR;export LC_ALL=ko_KR.euckr'
alias setutf='export LANG=ko_KR.UTF-8;export LC_ALL=ko_KR.UTF-8'
setutf
-----------------------
mc 설치
ncftp 설치
----------------------
우분투 vsftp 설치
apt-get -y install vsftpd
vi /etc/vsftpd.conf
listen=YES
anonymous_enable=NO
local_enable=YES
local_umask=022
write_enable=YES
use_localtime=YES
xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
userlist_enable=YES
userlist_deny=NO
tcp_wrappers=YES
#listen_port=75
listen_port=21
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
vi /etc/vsftpd.user_list
ftp 허용할 계정넣어줘..
vi /etc/vsftpd.chroot_list
디렉토리를 전체 사용할 계정들..
테스트 방법
root@actrun:/# ncftp -u계정 localhost
안되면 .. 포트확인하라.. 떠있냐?
root@actrun:/# netstat -an | grep 21
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 192.168.123.134:21 192.168.123.158:1555 ESTABLISHED
unix 3 [ ] STREAM CONNECTED 4821
---------------------------
우분투에서 GD 설치
아파치 가동해서 설정마치니 GD 가 안되어있다.
apt-get install php5 php5-common php5-gd php5-imagick php5-imap php5-mcrypt php5-mysql
로해서 대충 재설치
댓글목록
등록된 댓글이 없습니다.