C# 숫자올림 함수
Remark : 숫자 올림, 내림, 반올림. 올림 : (int)Math.Ceiling(number); 내림 : (int)Math.Truncate(number); 반올림 : (int)Math.Round(number);
Remark : 숫자 올림, 내림, 반올림. 올림 : (int)Math.Ceiling(number); 내림 : (int)Math.Truncate(number); 반올림 : (int)Math.Round(number);
Remark : 사이트 루트에 robots.txt 정보로 표시 robots.txt 설정하기 robots.txt는 검색로봇에게 사이트 및 웹페이지를 수집할 수 있도록 허용하거나 제한하는 국제 권고안입니다. robots.txt 파일은 항상 사이트의 루트 […]
-bash: warning: setlocale: LC_ALL: cannot change locale (ko_KR.utf8) Solution :
|
1 2 3 |
sudo apt-get install --reinstall locales && sudo dpkg-reconfigure locales |
en_GB.UTF-8 과 ko_KR.UTF-8 세팅
Remark : 소프트웨어 설계, 시스템 구조, 데이터 흐름, UI 구성 등 복잡한 정보를 시각적으로 표현하기 위해 사용하는 다이어그램 도구 또는 표현 방법을 의미할 수 있습니다. […]
Remark : cookie 도메인간 쿠키 전달하기 (https에서만 가능) Domain 에서 SubDomain 으로 쿠키 전달하려면 https 만 가능 하다. Main Domin 에서 하위 도메인 모두 사용 […]
보호 글이라서 요약이 없습니다.
Remark : win2016 에서 호스트 파일 수정 하기 권한문제로 수정이 되지 않는다. 바로가기 를 이용하여 만들기
|
1 2 3 |
C:\Windows\System32\notepad.exe C:\windows\system32\drivers\etc\host |
관리자 권한으로 실행
remark : Outbound 가 막혀서 그럴수도 있기 때문에 인터넷 확인 후 되지 않으면 다음 참조 참조 : https://kwjabcd.tistory.com/14 win2016 파일만 있으면 되기 때문에 파일들 올려 […]
crontab을 이용한 디비백업 실행 파일을 만든다. 파일명:sql.sh
|
1 2 3 4 5 6 7 8 |
#!/bin/bash d=$(/bin/date +”%Y%m%d”) /usr/local/mysql/bin/mysqldump -uroot -p’패스워드’ 디비명 >/backup-sql/디비백업파일명.sql cp -Ruf /usr/local/mysql/data/db_young /backup-sql/ tar cvfpz /backup-sql/$d.young_sql.tar.gz /backup-sql/* mv /backup-sql/$d.young_sql.tar.gz /backup-full/ |
그리고
|
1 2 3 4 5 |
crontab -e 3 2 * * * /sql.sh |
xcopy를 이용한 백업과 예약 걸기 만약 D드라이브의 backup 이라는 폴더 안에 백업을 하고자 한다면 1.D드라이브 아래 backup 폴더를 만든다. 2.C드라이브 아래 work폴더를 만들어 XXX.bat 파일 […]
Mssql 테이블 복사 쿼리 문구 간단하지만 유용한 테이블 복사 쿼리문 [mssql 테이블 복사 쿼리 문구] select * into [생성될 테이블명] from [원본테이블명] (설명: 기본 모든 […]
오랜만에 구글 애널리틱스에 들어 가서 사이트 하나 추가 하려 했는데. 너무 어렵다. 프로그래머인 나도 어려운데 보통 사람은 어찌 할고. 2시간 하다가 포기, 시간 없어서 다음 […]
한컬럼은 Null 이 없고, 다름 컬럼이 데이타이 NULL 값이 있는 경우, 속성이 같은 두 컬럼을 기준으로 정렬: COALESCE
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
SELECT TOP 1000 [idx] ,[name] ,[email] ,[homepage] ,[title] ,[num] ,[Regi_Date] ,[Modi_Date] FROM MBoard order by COALESCE([Modi_Date], Regi_Date) DESC |
Ubuntu 20.04.1 로 업데이이트 다음 명령어 단계에서 진행 되지 않으면 업데이트 후 진행 합니다.
|
1 2 3 |
do-release-upgrade |
|
1 2 3 4 |
Checking for a new Ubuntu release Please install all available updates for your release before upgrading. |
Ubuntu 20.04.1
|
1 2 3 |
sudo apt-get update |
|
1 2 3 |
sudo apt-get upgrade -y |
|
1 2 3 |
sudo apt-get dist-upgrade |
|
1 2 3 |
sudo do-release-upgrade |
Y 로 […]
참조 : https://m.blog.naver.com/PostView.nhn?blogId=tjrwjd3535&logNo=220750241376&proxyReferer=https:%2F%2Fwww.google.com%2F /디렉토리 감추기
vb6 에서 마우스 휠과 호환이 안되는 문제가 있어 컴포넌트를 설치하면 해결 됩니다. 다운로드 : vb60_mouserwheel 1. 다운 받아 압축을 풀고 파일중 VB6IDEMouseWheelAddin.dll을 C:\Windows\System32에 복사합니다. 2 […]
sudo apt update sudo apt install mysql-server sudo mysql_secure_installation
|
1 2 3 4 5 |
sudo apt update sudo apt install mysql-server sudo mysql_secure_installation |
sudo mysql_secure_installation
|
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 |
root@localhost:/etc/apache2# sudo mysql_secure_installation Securing the MySQL server deployment. Connecting to MySQL using a blank password. VALIDATE PASSWORD PLUGIN can be used to test passwords and improve security. It checks the strength of password and allows the users to set only those passwords which are secure enough. Would you like to setup VALIDATE PASSWORD plugin? Press y|Y for Yes, any other key for No: y There are three levels of password validation policy: LOW Length >= 8 MEDIUM Length >= 8, numeric, mixed case, and special characters STRONG Length >= 8, numeric, mixed case, special characters and dictionary file Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 0 Please set the password for root here. New password: Re-enter new password: Estimated strength of the password: 50 Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? (Press y|Y for Yes, any other key for No) : y Success. Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? (Press y|Y for Yes, any other key for No) : n ... skipping. By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y - Dropping test database... Success. - Removing privileges on test database... Success. Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? (Press y|Y for Yes, any other key for No) : n ... skipping. All done! |
Check authentication method for MySQL users host 가 % 일경우 #주석처리 #bind-address=127.0.0.0 […]
간단하게 현재 사용중인 우분투의 버전을 확인 lsb_release -a
|
1 2 3 4 5 6 7 8 |
root@localhost:/etc/apache2# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic |
cat /etc/*release
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
root@localhost:/etc/apache2# cat /etc/*release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS" NAME="Ubuntu" VERSION="18.04.1 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.1 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic |
설치된 리눅스(우분투)가 32비트인지 64비트인지 확인 uname -m
|
1 2 3 4 |
root@locahost:/etc/apache2# uname -m x86_64 |
ubuntu html, php 확장자가 사용 가능하도록 변경 sudo vi /etc/apache2/mods-enabled/mime.conf 파일에서 AddType application/x-bzip2 .bz2 밑에 AddType application/x-httpd-php .php .jsp .html .htm 등록 아파치 재시작 참조 […]
Copyright © 2026 | WordPress Theme by MH Themes