centos 7 install part1
UEFI 메인보드에서 UEFI CD 혹은 USB 가 아니라면 설치가 불가하다는 메시지를 볼 수 도 있다. GUI인스톨 이전 단계에서 멈춰버린다.
요즘은 UEFI를 지원하는 메인보드가 대부분이니 USB를 UEFI설치 USB로 제작하는 것이 좋다.
UEFI 메인보드에서 UEFI CD 혹은 USB 가 아니라면 설치가 불가하다는 메시지를 볼 수 도 있다. GUI인스톨 이전 단계에서 멈춰버린다.
요즘은 UEFI를 지원하는 메인보드가 대부분이니 USB를 UEFI설치 USB로 제작하는 것이 좋다.
Jquery 버전
1 2 3 4 5 6 7 8 9 |
<form id='form-id'> <input id='watch-me' name='test' type='radio' value="a" />Show Div <br /> <input name='test' type='radio' value="b" /> <br /> <input name='test' type='radio' value="c" /> </form> <div id='show-me' style='display:none'>Hello</div> |
1 2 3 4 5 6 |
<script type='text/javascript'> $("input[name='test']").click(function () { $('#show-me').css('display', ($(this).val() === 'a') ? 'block':'none'); }); </script> <script src="//code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script> |
Show Div Hello 혹은 원시적으로 ….. 근데 이건 이 페이지에서 실행이 안됨 실행 URL Here
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
<script type="text/javascript"> function dispList(selectList) { var obj1 = document.getElementById("sc1_list"); // 상품1 리스트 var obj2 = document.getElementById("sc2_list"); // 상품2 리스트 if( selectList == "0" ) { // 상품1 리스트 obj1.style.display = "block"; obj2.style.display = "none"; alert( obj.style.display ) ; } else { // 상품2 리스트 obj1.style.display = "none"; obj2.style.display = "block"; } } </script> <input type="radio" name="choose" id="sc1" onclick="dispList('0');"> 학생 리스트 <input type="radio" name="choose" id="sc2" onclick="dispList('1');">선생님 리스트 <br/> <br/> <div id="sc1_list" style="display:none"> 1. 상품 1-1 <br/> 2. 상품 1-2 <br/> 3. 상품 1-3 <br/> </div> <div id="sc2_list" style="display:none"> 1. 상품 2-1 <br/> 2. 상품 2-2 <br/> 3. 상품 2-3 <br/> </div> |
상품1 리스트 상품2 리스트 1. 학생 1 2. 학생 2 3. 학생 3 1. 선생 1 2. 선생 2 3. 선생 3
테마 : Enfold 하나보드 한글파일 업로드 허용
1 2 |
/* User Add Uploads */ define('ALLOW_UNFILTERED_UPLOADS', true ); |
1 2 3 4 5 6 |
function add_custom_mime_types($mimes){ return array_merge($mimes,array ( 'hwp' => 'application/hangul' )); } add_filter('upload_mimes','add_custom_mime_types'); |
첨부파일 링크 수정 다운로드 후 페이지 리도드 멈춤현상 : 55번 라인 _blank 추가
1 2 3 4 5 6 7 8 9 10 |
<li> <a href="<?php echo $file->url;?>" target="_blank" title="<?php echo esc_attr( $file->title );?>"> <span class="attachment-filename"> <?php echo $file->title; ?> </span> <span class="attachment-filesize"> <?php echo ( empty($file->filesize) ? "" : "(".$file->filesize.")" ) ?> </span> </a> </li> |
the7 테마 수정사항 /wp-content/themes/brooklyn/partials/blog/content.php 87번라인 주석처리 싱글컨텐츠 출력시 피처이미지 숨김
1 2 3 4 5 |
<?php if ( is_single() ) : ?> <!--<div class="entry-thumbnail"> <img alt="<?php echo $caption; ?>" class="wp-post-image" src="<?php echo $thumbnail; ?>"> </div>//--> <?php else : ?> |
전환율 스크립트실행 do_action
테마 function 추가
/wp-content/plugins/dopbsp/includes/reservations/class-frontend-reservations.php 85라인
네비게이션 리디렉트 \wp-content\themes\dt-the7\inc\helpers\post_navigation.php 247
아카이브 칼럼4개 강제 \wp-content\themes\dt-the7\inc\helpers\masonry-template.php 39 45
이미지 라이트박스 팝업 방지 \wp-content\themes\dt-the7\inc\mods\portfolio\public\mod-portfolio-helpers.php 337 외
매일 00시 00분에 명령어 실행.. 관리자에 메일보내기 안하기 > /dev/null 2>&1 추가
1 2 |
02 3 * * * root /usr/bin/rdate -s time.bora.net | clock -w > /dev/null 2>&1 05 4 * * * root /root/bin/su_backup > /dev/null 2>&1 |
8기가 램에 설정파일 스크랩 합니다. MySQL config 5.0.x, 5.1.x, 5.5.x Connections : 1000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
[mysqld_safe] nice = -15 [client] socket = /var/lib/mysql/mysql.sock default-character-set = utf8 [mysqld] ## Charset and Collation character-set-server = utf8 collation-server = utf8_general_ci ## Files back_log = 300 open-files-limit = 8192 open-files = 1024 port = 3306 socket = /var/lib/mysql/mysql.sock pid-file = /var/lib/mysql/mysql.pid skip-external-locking skip-name-resolve ## Logging datadir = /var/lib/mysql relay_log = mysql-relay-bin relay_log_index = mysql-relay-index #log = mysql-gen.log log_error = mysql-error.err log_warnings log_bin = mysql-bin log_slow_queries = mysql-slow.log #log_queries_not_using_indexes long_query_time = 10 #default: 10 max_binlog_size = 256M #max size for binlog before rolling expire_logs_days = 4 #binlog files older than this will be purged ## Per-Thread Buffers * (max_connections) = total per-thread mem usage thread_stack = 256K #default: 32bit: 192K, 64bit: 256K sort_buffer_size = 512K #default: 2M, larger may cause perf issues read_buffer_size = 512K #default: 128K, change in increments of 4K read_rnd_buffer_size = 512K #default: 256K join_buffer_size = 512K #default: 128K binlog_cache_size = 64K #default: 32K, size of buffer to hold TX queries ## total per-thread buffer memory usage: 4736000K = 4.625GB ## Query Cache query_cache_size = 32M #global buffer query_cache_limit = 512K #max query result size to put in cache ## Connections max_connections = 2000 #multiplier for memory usage via per-thread buffers max_connect_errors = 100 #default: 10 concurrent_insert = 2 #default: 1, 2: enable insert for all instances connect_timeout = 30 #default -5.1.22: 5, +5.1.22: 10 max_allowed_packet = 32M #max size of incoming data to allow ## Default Table Settings sql_mode = NO_AUTO_CREATE_USER ## Table and TMP settings max_heap_table_size = 1G #recommend same size as tmp_table_size bulk_insert_buffer_size = 1G #recommend same size as tmp_table_size tmp_table_size = 1G #recommend 1G min #tmpdir = /data/mysql-tmp0:/data/mysql-tmp1 #Recommend using RAMDISK for tmpdir ## Table cache settings #table_cache = 512 #5.0.x #table_open_cache = 512 #5.1.x, 5.5.x ## Thread settings thread_concurrency = 16 #recommend 2x CPU cores thread_cache_size = 100 #recommend 5% of max_connections ## Replication #read_only #skip-slave-start #slave-skip-errors = <default: none, recommend:1062> #slave-net-timeout = <default: 3600> #slave-load-tmpdir = <location of slave tmpdir> #slave_transaction_retries = <default: 10> #server-id = #replicate-same-server-id = #auto-increment-increment = #auto-increment-offset = #master-connect-retry = #log-slave-updates = <default: 0 disable> #report-host = <master_server_ip> #report-user = <replication_user> #report-password = #report-port = <default: 3306> #replicate-do-db = #replicate-ignore-db = #replicate-do-table = #relicate-ignore-table = #replicate-rewrite-db = #replicate-wild-do-table = #replicate-wild-ignore-table = ## Replication Semi-Synchronous 5.5.x only, requires dynamic plugin loading ability #rpl_semi_sync_master_enabled = 1 #enable = 1, disable = 0 #rpl_semi_sync_master_timeout = 1000 #in milliseconds , master only setting ## 5.1.x and 5.5.x replication related setting. #binlog_format = MIXED ## MyISAM Engine key_buffer = 512K #global buffer myisam_sort_buffer_size = 128M #index buffer size for creating/altering indexes myisam_max_sort_file_size = 256M #max file size for tmp table when creating/alering indexes myisam_repair_threads = 4 #thread quantity when running repairs myisam_recover = BACKUP #repair mode, recommend BACKUP ## InnoDB Plugin Dependent Settings #ignore-builtin-innodb #plugin-load=innodb=ha_innodb_plugin.so;innodb_trx=ha_innodb_plugin.so;innodb_locks=ha_innodb_plugin.so;innodb_cmp=ha_innodb_plugin.so;innodb_cmp_reset=ha_innodb_plugin.so;innodb_cmpmem=ha_innodb_plugin.so;innodb_cmpmem_reset=ha_innodb_plugin.so;innodb_lock_waits=ha_innodb_plugin.so ## InnoDB IO Capacity - 5.1.x plugin, 5.5.x #innodb_io_capacity = 200 ## InnoDB IO settings - 5.1.x only #innodb_file_io_threads = 16 ## InnoDB IO settings - 5.5.x and greater #innodb_write_io_threads = 16 #innodb_read_io_threads = 16 ## InnoDB Plugin Independent Settings innodb_data_home_dir = /var/lib/mysql innodb_data_file_path = ibdata1:128M;ibdata2:10M:autoextend innodb_log_file_size = 256M #64G_RAM+ = 768, 24G_RAM+ = 512, 8G_RAM+ = 256, 2G_RAM+ = 128 innodb_log_files_in_group = 4 #combined size of all logs <4GB. <2G_RAM = 2, >2G_RAM = 4 innodb_buffer_pool_size = 4G #global buffer innodb_additional_mem_pool_size = 4M #global buffer innodb_status_file #extra reporting innodb_file_per_table #enable always innodb_flush_log_at_trx_commit = 2 #2/0 = perf, 1 = ACID innodb_table_locks = 0 #preserve table locks innodb_log_buffer_size = 128M #global buffer innodb_lock_wait_timeout = 60 innodb_thread_concurrency = 16 #recommend 2x core quantity innodb_commit_concurrency = 16 #recommend 4x num disks #innodb_flush_method = O_DIRECT #O_DIRECT = local/DAS, O_DSYNC = SAN/iSCSI innodb_support_xa = 0 #recommend 0, disable xa to negate extra disk flush skip-innodb-doublewrite ## Binlog sync settings ## XA transactions = 1, otherwise set to 0 for best performance sync_binlog = 0 ## TX Isolation transaction-isolation = REPEATABLE-READ #REPEATABLE-READ req for ACID, SERIALIZABLE req XA ## Per-Thread Buffer memory utilization equation: #(read_buffer_size + read_rnd_buffer_size + sort_buffer_size + thread_stack + join_buffer_size + binlog_cache_size) * max_connections ## Global Buffer memory utilization equation: # innodb_buffer_pool_size + innodb_additional_mem_pool_size + innodb_log_buffer_size + key_buffer_size + query_cache_size [mysqldump] quick quote-names max_allowed_packet = 128M |
자바스크립트 쿠키활용 예제코드 2016 오키나와에세이 렌트카 부분활용 예제
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
// 쿠키 생성 function setCookie(cName, cValue, cDay){ var expire = new Date(); expire.setDate(expire.getDate() + cDay); cookies = cName + '=' + escape(cValue) + '; path=/ '; if(typeof cDay != 'undefined') cookies += ';expires=' + expire.toGMTString() + ';'; document.cookie = cookies; } // 쿠키 출력 function getCookie(cName) { cName = cName + '='; var cookieData = document.cookie; var start = cookieData.indexOf(cName); var cValue = ''; if(start != -1){ start += cName.length; var end = cookieData.indexOf(';', start); if(end == -1)end = cookieData.length; cValue = cookieData.substring(start, end); } return unescape(cValue); } // 쿠키확인 function checkCookie(){ var source=getCookie('source'); if(source!=""){ alert("Welcome again " + source); }else{ setCookie('source', getParameter('source'), 0); } } } checkCookie(); |