전체 글 (221) 썸네일형 리스트형 [ Linux ] YUM 패키지 관리자 서버 설치 [ YUM 패키지 관리자 서버 ] # repository 저장소 생성을 위한 패키지 다운로드 yum -y install createrepo # repository 폴더 생성 mkdir -p /app/repo createrepo /app/repo # http를 통하여 레포지토리를 사용할 수 있도록 설정 yum -y install httpd # repo 경로 추가 cat /etc/httpd/conf/httpd.conf # yum repository server configuration Alias /repo "/app/repo" Options FollowSymLinks DirectoryIndex index.html index.htm index.jsp *.jsp *.php Order allow,deny Allo.. [ Java ] Crontab 기능 구현 public static void main(String[] args) { // year month day hour minute String[] cron = "2021 11 3 2 12".split(" "); scheduler(cron[0], cron[1], cron[2], cron[3], cron[4]); } public static void scheduler(String year, String month, String day, String hour, String minute) { Calendar calendar = Calendar.getInstance(); Date currentDate = calendar.getTime(); calendar.set(Calendar.SECOND, 0); if(minute.. [ Windows ] 윈도우 서비스 배치 명령어 :: 서비스 리스트 확인 sc query :: 디스플레이명 확인 sc getdisplayname [서비스이름] [ Docker Tool Box ] 에러 대응 리스트 1. 도커 실행시 인증에러 발생 시 재인증 ※ docker certificate has expired or is not yet valid docker-machine regenerate-certs --client-certs default 2. 도커 cgroup 마운트 에러 발생 docker-machine ssh sudo mkdir /sys/fs/cgroup/systemd sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd 3. OCI runtime create failed 에러 발생 # Error response from daemon: OCI runtime create failed: container with id exists: .. [ JavaScript ] onclick 이벤트 추가 자바스크립트에서의 여러가지 이벤트 리스너 추가방법을 소개한다. 1. 해당 객체에 직접 콜백 함수를 추가 var input = document.createElement("input"); input.onclick = function() { // Click Event 발생 시 동작 함수를 입력한다. examFunc(this); } 클릭 이벤트를 발생할 객체에 직접 이벤트 리스너를 추가하는 방식이다. Html 코드만으로 이벤트 리스너가 등록되었는지는 확인할 수 없어 코드 분석을 조금 어렵게 할 수 있는 장점이 있다. [ 2. 해당 객체의 속성에 콜백 함수를 추가 ] 방식과 비교해 보면 좀 더 쉽게 이해할 수 있다. 2. 해당 객체의 속성에 콜백 함수를 추가 var input = document.createEle.. 이전 1 ··· 25 26 27 28 다음