본문 바로가기

전체 글210

[Ubuntu] 우분투 타임존 변경하기 우분투 서버 타임존 변경하기 sudo dpkg-reconfigure tzdata ubuntu20.04 타임존 변경 우분투 timezon 변경 2022. 8. 10.
[Ansible] ansible windows dns 설정 윈도우 dns주소를 ansible로 설정할 수 있다. --- - hosts: all vars: ansible_port: 5985 ansible_connection: winrm ansible_winrm_server_cert_validation: ignore ansible_winrm_scheme: http ansible_winrm_transport: basic tasks: - name: set dns win_dns_client: adapter_nates: Ethernet ipv4_addresses: "{{ vardns }}" - name: result win_shell: "powershell ipconfig /all | findstr 'DNS'" register: result - name: print deb.. 2022. 8. 8.
[Windows] gcp windows server 2019 한글 언어팩 설치 gcp windows server 2019 한글 언어팩 설치 방법 시작버튼 > settings 클릭 Time & Language 클릭 Language 탭 클릭 Add language 클릭 korean 검색후 한국어 검색결과 나오면 더블클릭 체크해제 모두한다.(스샷은 실수로 체크해제를 안한체로 스샷뜸) 한국어가 위로 정렬될 수 있도록 하고 options 클릭 Basic typing 클릭 완료되면 로그아웃 후 다시 접속해야한다(중요!) erorrcode 0x80070422가 뜨면 윈도우 업데이트 서비스가 활성화가 안되었다는 뜻이다. 활성화 시켜주면 된다. service도구 > windoes update > automatic 선택 > start 로그아웃후 다시 한국어 > 언어옵션에 가보면 언어팩 다운로드 창이.. 2022. 8. 3.
[powershell] 윈도우 스케줄러 enable/disable 윈도우 스케줄 batch 로 disable enable 하는 방법 powershell Disable-ScheduledTask -TaskName "스케줄명" powershell enable-ScheduledTask -TaskName "스케줄명" 파워쉘 윈도우 스케줄러 enable disable 배치 윈도우 스케줄러 batch windows scheduler enable disable 2022. 8. 2.
[Ansible] 앤서블 와일드카드 find 아스테리크 - hosts: all become: yes vars: ansible_become_password: "{{ sudopasswd }}" tasks: - name: deploy check script copy: src: /data/ansible/file/scripttest.sh dest: /tmp/Unix_v1.3.3_contain_web_was.sh mode: 0755 #user: "infra" - name: exec check script shell: cmd: /tmp/scripttest.sh register: result - name: result debug: msg: "{{ result.stdout_lines }}" - name: find result file find: paths: "/home/in.. 2022. 7. 30.
[Ansible] ansible fetch 앤서블 파일 끌어오기 앤서블이 제어하는 인벤토리 호스트에서의 파일을 끌어오기 위한 플러그인 취약점 결과를 파일로 남겨 앤서블 서버에 결과파일을 업로딩하는 플레이북 --- - hosts: all become: yes vars: ansible_become_password: "{{ sudopasswd }}" tasks: # 인벤토리 호스트의 /root/에 check.sh 스크립트 배포 - name: deploy check script copy: src: /data/ansible/file/check.sh dest: /root/check.sh # 실행을 위한 권한 수정 - name: exec chmod check script shell: cmd: chmod 755 /root/check.sh # check.sh 스크립트 실행&결과 저장.. 2022. 7. 29.
[PHP] FILE UPLOAD DISABLE 파일 업로드 OFF PHP 파일업로드 기능을 disble하고자 한다. php.ini 파일에 아래와같이 설정하고 httpd 서비스를 재시작하면 된다. [PHP] file_uploads = Off php.ini 파일이 존재하지 않는 경우가 있었다. 이경우에는 사용하는 php가 어떤 설정파일을 어디서 읽는지를 알아야 하는데 이경우 아래 명령어를 사용하면 된다. php -i | grep php.ini Loaded Configuration File => /etc/php.ini 간혼 로드되고 있는 php.ini 파일이 없다고도 하는데 이경우 configuration file path에 설정된 폴더에 php.ini를 생성해서 후 서비스 재시작 해주어 적용하면 된다. php file upload 해제 php file upload disa.. 2022. 7. 28.
[Ansible] windows 파일배포 & 압축 해제 윈도우 시스템에 zip파일을 배포 후 압축 해제 함 --- - hosts: all vars: ansible_port: 5985 ansible_connection: winrm ansible_winrm_server_cert_validation: ignore ansible_winrm_scheme: http ansible_winrm_transport: basic tasks: - name: deploy disk mount file win_copy: src: '/data/ansible/file/Disk_Part.ps1' dest: 'c:\Disk_Part.ps1' - name: run powershell win_shell: 'powershell.exe -ExecutionPolicy Bypass -File c:\Di.. 2022. 7. 27.
[powershell] windows 계정 이름 rename 윈도우 계정 이름 rename Rename-LocalUser -Name 'administrator' -NewName '바꿀계정' 2022. 7. 26.
[powershell] 파워쉘 윈도우 계정 패스워드 변경 기존에 있는 계정의 패스워드를 변경할 수 있다. $PASSWORD= ConvertTo-SecureString –AsPlainText -Force -String qlalfqjsgh123! Set-LocalUser -Name "seotest" -Password $PASSWORD powershell windows user password change 파워쉘 패스워드 변경 2022. 7. 26.
반응형