IT개발(106)
-
Git 저장소 이동하기(사설gitlab-> Bitbucket) 성공!
참고 : https://www.atlassian.com/git/tutorials/git-move-repository 위 Bitbucket에 있는 가이드를 따라해보았다. ==요약== 1. 사설 저장소(OLD) => 내 로컬로 clone 2. 로컬에 clone 한 git remote 주소(OLD)를 제거 3. 로컬에 git remote 주소(NEW) 추가( bitbucket 저장소 변경 ) 4. bitbucket 저장소(NEW) 로 source 이력 push 끝! 전체 Git 저장소를 이동하는 방법 여러 Git 리포지토리를 랭글링하는 경우 결국 파일을 한 곳에서 다른 곳으로 옮기고 싶을 것입니다. 이 튜토리얼에서는 한 원격 서버에서 다른 서버로 전체 Git 리포지토리를 이동하는 방법을 보여줍니다. 아래 단계..
2021.07.20 -
[devexpress] menu tree에서 icon을 image로 교체하기
https://js.devexpress.com/Documentation/Guide/Themes_and_Styles/Icons/#Custom_Images_as_Icons // 선택전 아이콘 이미지 .dx-icon-customicon { // in Angular apps, add ::ng-deep before background-image: url(https://naver.com/favicon.ico); } // 선택 후 아이콘 이미지 .dx-state-selected .dx-icon-customicon { background-image: url(https://kakao.com/favicon.ico); } Layout.vue 파일내 menuItems 데이터 참고! ... // Layout.vue 파일 내부 ..
2021.07.15 -
npm run build 전후 스크립트 추가하기
// package.json 내부 설정 { "name": "npm-scripts-example", "version": "1.0.0", "description": "npm scripts example", "scripts": { "prebuild": "echo I run before the build script", "build": "cross-env NODE_ENV=production webpack", "postbuild": "echo I run after the build script" } }
2021.07.15 -
vue router 에서 vuex modules store 참조하기
router.js에서 store.js 내 vuex 저장소 모듈을 사용하려면 아래와 같이, store.getters["스토어모듈명/함수명"] 접근하면 됨. const isLogin = store.getters["userStore/isLogin"]; // router.js import Vue from "vue"; import Router from "vue-router"; import { store } from "@/js/store/store"; Vue.use(Router); ... ... router.beforeEach((to, from, next) => { console.log(store); const isLogin = store.getters["userStore/isLogin"]; if (to.match..
2021.07.14 -
디스크 파트 삭제 파티션 재정의가 작동하지 않음
참고 사이트 : https://www.easeus.co.kr/partition-manager-software/delete-partition-override-not-working.html [해결] 디스크 파트 삭제 파티션 재정의가 작동하지 않음-EaseUS 파티션 재정의 매개 변수를 사용하여 파티션을 삭제합니다. "delete partition override"를 입력하고 "Enter"키를 누릅니다. 재정의 매개 변수를 사용하여 선택한 파티션을 강제 삭제합니다. 프로세스가 www.easeus.co.kr 일반적으로 디스크 파트 재정의를 사용하면 숨겨진 파티션이나 보호된 파티션을 삭제할 수 있습니다. 그러나 때때로 "이 작업은 개체에서 지원되지 않습니다. 지정된 명령 또는 매개 변수가 이 시스템에서 지원되지 ..
2021.07.12 -
devexpress customs theme 적용하기
https://js.devexpress.com/Documentation/20_1/Guide/Vue_Components/Create_a_DevExtreme_Application/ Create a DevExtreme Application: DevExtreme - JavaScript UI Components for Angular, React, Vue and jQuery by DevExpress 20.1 Thank you! We appreciate your feedback. js.devexpress.com Configure Themes Switch the Theme The DevExtreme Vue Template uses a main theme for the view content and an addition..
2021.07.08 -
Nginx Reverse Proxy 설정시 502 Bad Gatway 문제
결론 setsebool -P httpd_can_network_connect true 요 명령어로 해결! : ) 원인 (SELinux 의 보안 모듈에 의해) 기본적으로 httpd 프로세스에 의해 네트워크 연결 허용 여부가 false 이다. 현상 우선 nginx를 설치하고 springboot를 기동시켰다. 그다음 revers proxy 기능을 탑재하였는데 어라... 502 Bad Gateway ???? 음... 흠... 너... 나를 삽질의 구렁텅이로 밀어넣을껴? 대처 자자 일단 젤먼저 로그를 보자! 일단 /var/log/nginx/error.log 로 이동! 로그를 보니...( 글 하단 참고 ) 응? Permission denied? 왜! 내앞길을 막는건데!! 로그 특정부분(connect() to 127...
2021.07.07 -
centos7 에 nginx 설치하기
외부저장소 추가하기 폴더로 이동 : cd /etc/yum.repos.d/ 관리자 권한으로 저장소파일 편집모드 : sudo vi nginx.repo [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/7/$basearch/ gpgcheck=0 enabled=1 nginx 설치하기 sudo yum install -y nginx AWS 80 포트 개방하기 nginx 서비스 시작하기 : sudo systemctl start nginx os booting시, nginx 서비스 자동활성화 하기 : sudo systemctl enable nginx 설치 제대로 되었는지 브라우저에서 확인! 오호! 성공!
2021.07.06 -
centos7 에 openjdk14버전 설치하기
openjdk14버전 다운로드 wget https://download.java.net/java/GA/jdk14.0.2/205943a0976c4ed48cb16f1043c5c647/12/GPL/openjdk-14.0.2_linux-x64_bin.tar.gz 압출풀기 tar -xvf openjdk-14.0.2_linux-x64_bin.tar.gz 현재 계정에 jdk 환경변수 설정 현재 계정의 home으로 이동 : cd ~ 현재 계정의 환경설정파일 편집모드 : vi .bashrc vi 편집기내에서 jdk bin 폴더 PATH에 추가하기 PATH="/home/centos/jdk-14.0.2/bin:$PATH" export PATH 저장하고 나가기 :wq 환경설정 반영하기 : source .bashrc 잘적용되었는..
2021.07.06 -
AWS EC2 Instance 의 ssh 접근시, OS별 기본 username
https://docs.aws.amazon.com/ko_kr/AWSEC2/latest/UserGuide/managing-users.html OS/Distro Official AMI ssh Username Legacy / Community / Other AMI ssh Usernames Amazon Linux ec2-user Ubuntu ubuntu root Debian admin root RHEL 6.4 and later ec2-user RHEL 6.3 and earlier root Fedora fedora ec2-user, root Centos centos root SUSE ec2-user root BitNami bitnami TurnKey root NanoStack ubuntu FreeBSD ec2-u..
2021.07.06 -
Git remote 저장소 정보 조회 하기
git config --get remote.origin.url 간혹 remote url 주소를 알고 싶을땐 명령어로 조회하자!
2021.07.02 -
리눅스 메모리 점유율 확인하기
RSS 란 Resident set size 약어로 의미는 : 주메모리에서 하나의 프로세스가 실제 점유한 메모리크기 현재 메모리를 점유한 모든 프로세스 보기 명령어 ps -eo user,pid,ppid,rss,size,vsize,pmem,pcpu,time,cmd --sort -rss // 프로세스를 실행한 명령어 및 인자 표현 또는 ps -eo user,pid,ppid,rss,size,vsize,pmem,pcpu,time,comm --sort -rss // 프로세스를 실행한 명령어만 표현 상위 10개만 보고싶으면 아래처럼... ps -eo user,pid,ppid,rss,size,vsize,pmem,pcpu,time,cmd --sort -rss | head -n 10 또는 ps -eo user,pid,pp..
2021.06.28 -
리눅스 현재 레벨에서의 폴더별 용량보기
sudo du -h --max-depth=1 이렇게 하면, 현재 레벨에서의 폴더별 용량을 보여준다. 파일용량 체크할때 최애 명령어 ㅋㅋ
2021.04.13 -
리눅스 OS 시간 KST 한국시간 설정
date => 명령을 통하여 현재 한국시간인지 확인하라! ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime => 한국시간으로 변경하는 명령!, 그리고 다시 date 명령하면 KST 확인하면 끝!
2021.04.13 -
전자정부 3.8에서 jdk 13,14 버전 사용시 오류 발생! 12버전은 돌아감
젠킨스에서 jdk1.8 이용하여 빌드하였더니, LocalDateTime 에서 오류를 뿜었다. ( 로컬PC에선 잘되는데 뭐지... api문서엔 분명 1.8부터 쓸수 있다고 했는데 음... ) 하여 로컬 PC에서 pom.xml 내 java.version : 14로 적용해 톰캣 기동시켰더니 이번엔 전자정부 관련 클래스에서 오류를 뿜뿜했다. 아놔 뭐여... 그럼 13으로 해도 오류 뿜뿜, 12로 하니! 톰캣 정상동작!!! 결국 pom.xml 내 java.version : 12로 설정하고, 젠킨스에서 빌드했더니 이번엔 default jdk가 1.8이라 14를 추가하고 해당 jdk14로 지정하여 빌드했더니 성공!! 아참 참고로 pom.xml에서 java.version 표현하는건 1.8까진 1.x 표현이고 그이후부터..
2021.03.31 -
CloudFront 캐시 삭제방법
클라우드 프론트에 올려져있는 캐싱파일이 1시간동안 유지되게 되어있어서 강제로 비울필요가 있었다. 배포된걸 즉시적용하기위해... 하여 아래와 같이 Create Invalidation 기능을 통해 싹비워버렸더니 굿굿 잘됨!!! 참고 : infraboy.tistory.com/5
2021.03.31 -
Apache Tomcat Versions
tomcat.apache.org/whichversion.html Apache Tomcat Versions Apache Tomcat® is an open source software implementation of a subset of the Jakarta EE (formally Java EE) technologies. Different versions of Apache Tomcat are available for different versions of the specifications. The mapping between the specifications and the respective Apache Tomcat versions is: Servlet Spec JSP Spec EL Spec WebSocke..
2021.03.31 -
[mysql/mariaDB] 원격지DB에서 로컬PC로 바로 export
1. 원격지 DB에서 dump file export(내보내기) => 내 로컬PC로 다운로드됨 mysqldump -h 원격지IP -u 계정 -p 내보낼_DB명 > 내보낼_dump파일의_경로_및_파일명 예시) mysqldump -h 123.456.789.012 -u root -p egov3.7 > D:\DB\MariaDB\dump\egov3.7.sql Enter password: **** 2. 원격지 DB에서 로컬DB로 바로 데이터를 import하기 mysqldump -h 원격지IP -u 원격지계정 -p원격지패스워드 원격지_대상DB | mysql -u 로컬계정-p로컬패스워드 로컬DB명 예시) mysqldump -h 123.456.789.012 -u root -premote1234 egov3.7 | mysql..
2021.03.09 -
[mysql/mariaDB] dump export/import 하기
1. dump file export(내보내기) mysqldump -u 계정 -p 내보낼_DB명 > 내보낼_dump파일의_경로_및_파일명 예시) mysqldump -u root -p egov3.7 > D:\DB\MariaDB\dump\egov3.7.sql Enter password: **** 2. dump file import(가져오기) mysql -u 계정 -p 대상DB D:\DB\MariaDB\dump\project5_2020_02_21.sql mysqldump -u root -p project2 > D:\DB\MariaDB\dump\project4_2020_02_21.sql -- dump 파일 읽어오기(import) mysql -u root -p project1 < D:\DB\MariaDB\dump\..
2021.03.09 -
eclipse에서 자바코드 복붙 시, 역슬래시 자동삽입 해제하기
이클립스에서 코드를 복붙(Copy&Paste)할때, 쌍따옴표가 있는 코드는 역슬래시가 자동으로 붙여진다. 은근 편리할때도 있었지만 오히려 방해가 되었다. 그기능을 해제하려면 아래와 같이 하면 끝! Window => Preferences => Java => Editor => Typing => Escape text when pasting into a string literal 체크해제!!!!! 참끝!
2021.03.08