/매크로오류 끄기
/표식지정 공격1
/오른쪽대상
/표식지정 공격
/오른쪽대상
/표식지정 공격
/오른쪽대상
/표식지정 공격
/대상지정 <공격1>
2016년 5월 22일 일요일
2016년 5월 16일 월요일
CentOS postfix gmail
postfix install
# yum install postfix cyrus-sasl cyrus-sasl-devel
# vi /etc/postfix/main.cf
relayhost = [smtp.gmail.com]:587
smtp_use_tls=yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.trust.crt
smtp_sasl_security_options =
# vi /etc/postfix/sasl_passwd
[smtp.gmail.com]:587 GoogleAccount@gmail.com:GootleAccountPassword
# chmod 400 /etc/postfix/sasl_passwd
# postmap /etc/postfix/sasl_passwd
# service postfix reload
Test
# echo "Postfix Mail Test Success!!" | mail -S from="GoogleAccount@gmail.com" -s "Postfix Mail Test" "GoogleAccount@gmail.com"
# yum install postfix cyrus-sasl cyrus-sasl-devel
# vi /etc/postfix/main.cf
relayhost = [smtp.gmail.com]:587
smtp_use_tls=yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.trust.crt
smtp_sasl_security_options =
# vi /etc/postfix/sasl_passwd
[smtp.gmail.com]:587 GoogleAccount@gmail.com:GootleAccountPassword
# chmod 400 /etc/postfix/sasl_passwd
# postmap /etc/postfix/sasl_passwd
# service postfix reload
Test
# echo "Postfix Mail Test Success!!" | mail -S from="GoogleAccount@gmail.com" -s "Postfix Mail Test" "GoogleAccount@gmail.com"
2016년 5월 9일 월요일
CentOS 6.x kernel 최적화
CentOS 6.x kernel 최적화
/etc/sysctl.conf
net.ipv4.ip_local_port_range = 2000 65535
net.ipv4.tcp_fin_timeout = 15
net.core.somaxconn = 65535
net.ipv4.tcp_tw_reuse = 1
# 유휴 메모리관리 (Page Cache) default 100
vfs_cache_pressure = 10000
2016년 5월 4일 수요일
mysql 개발용 설정
my.cnf
[client]
port = 3306
default-character-set = utf8
[mysqld_safe]
default-character-set = utf8
[mysqld]
user = mysql
port = 3306
datadir = /var/lib/mysql
tmpdir = /tmp
# Log
general_log_file = mysql-general.log
general_log = 1
slow_query_log = 1
slow_query_log_file = mysql-slow.log
long_query_time = 10
server-id = 1
open_files_limit = 65535
skip-name-resolve
skip-external-locking
skip-host-cache
character-set-server = utf8
collation-server = utf8_general_ci
max_connections = 100
thread_cache_size = 100
query_cache_type = 1
query_cache_size = 256M
thread_concurrency = 2
sort_buffer_size = 25M
key_buffer = 128M
# InnoDB
innodb_buffer_pool_size = 256M
innodb_use_sys_malloc = ON
innodb_flush_method = O_DIRECT
innodb_log_file_size = 64M
innodb_log_buffer_size = 8M
innodb_thread_concurrency = 4
innodb_flush_log_at_trx_commit = 2
sync_binlog = 0
innodb_support_xa = 0
innodb_adaptive_hash_index = 1
innodb_file_per_table = 1
innodb_file_format = Barracuda
[client]
port = 3306
default-character-set = utf8
[mysqld_safe]
default-character-set = utf8
[mysqld]
user = mysql
port = 3306
datadir = /var/lib/mysql
tmpdir = /tmp
# Log
general_log_file = mysql-general.log
general_log = 1
slow_query_log = 1
slow_query_log_file = mysql-slow.log
long_query_time = 10
server-id = 1
open_files_limit = 65535
skip-name-resolve
skip-external-locking
skip-host-cache
character-set-server = utf8
collation-server = utf8_general_ci
max_connections = 100
thread_cache_size = 100
query_cache_type = 1
query_cache_size = 256M
thread_concurrency = 2
sort_buffer_size = 25M
key_buffer = 128M
# InnoDB
innodb_buffer_pool_size = 256M
innodb_use_sys_malloc = ON
innodb_flush_method = O_DIRECT
innodb_log_file_size = 64M
innodb_log_buffer_size = 8M
innodb_thread_concurrency = 4
innodb_flush_log_at_trx_commit = 2
sync_binlog = 0
innodb_support_xa = 0
innodb_adaptive_hash_index = 1
innodb_file_per_table = 1
innodb_file_format = Barracuda
피드 구독하기:
글 (Atom)