뭘 해야하나

고정 헤더 영역

글 제목

메뉴 레이어

뭘 해야하나

메뉴 리스트

  • 홈
  • 태그
  • 방명록
  • 분류 전체보기 (204)
    • centos7 (7)
    • 프로그래밍 (68)
      • linux (29)
    • network (5)
    • mysql (44)
    • php (45)
    • css (4)
    • script (13)
    • nodejs (2)

검색 레이어

뭘 해야하나

검색 영역

컨텐츠 검색

프로그래밍/linux

  • [linux] 리눅스 DNS 특성 사이트 도메인 매핑

    2023.05.19 by 2hansoul

  • [linux] mysql DB자동으로 백업 하기 crontab ,db백업 스크립트 사용

    2023.01.10 by 2hansoul

  • Permission denied (publickey,gssapi-keyex,gssapi-with-> mic) VScode 구글클라우드 서버 연결 하기

    2022.03.28 by 2hansoul

  • [linux] centos7 linux ssh 접속하기 생성

    2022.03.17 by 2hansoul

  • [linux] centos7 서버,디비 자동 실행 httpd,mysql

    2022.03.15 by 2hansoul

  • [Linux] 그룹에 사용자 생성/그룹 관리

    2022.03.02 by 2hansoul

  • [Linux] linux yum update 오류 Another app is currently holding the yum lock; waiting for it to exit.

    2022.02.18 by 2hansoul

  • [Linux]linux 사용자 추가,삭제 그룹 생성,삭제,관리

    2022.02.16 by 2hansoul

[linux] 리눅스 DNS 특성 사이트 도메인 매핑

ping 도 제대로 가고 해당 사이트가 문제 없다고 했을 때 자신만 안들어가진다면 방법이 있을까?? 여러가지 방법이 있지만 그 중 하나인 도메인 매핑 sudo vi /etc/hosts 1 `/etc/hosts` 파일의 구조는 각 줄에 IP 주소, 도메인 이름, 도메인 별명 등이 공백으로 구분되어 있습니다. 예를 들어, 다음과 같은 형식으로 사이트의 IP 주소와 도메인을 추가할 수 있습니다. 127.0.0.1 localhost 192.168.0.1 example.com 위의 예제에서는 `localhost`에 대한 로컬 루프백 주소가 이미 정의되어 있습니다. `example.com`은 `192.168.0.1` IP 주소로 매핑됩니다. 2. 필요한 도메인과 IP 주소를 추가하고 편집 내용을 저장합니다. 3. ..

프로그래밍/linux 2023. 5. 19. 20:42

[linux] mysql DB자동으로 백업 하기 crontab ,db백업 스크립트 사용

1.db백업 스크립트 #!/bin/sh DT=`date '+%Y%m%d'` BACK_DIR='/var/www/html/backup' #BACKUP 디렉터리가 없을경우 디렉터리 생성 if [ ! -d ${BACK_DIR} ] then mkdir ${BACK_DIR} fi #BACKUP 디렉터리로 'test'라는 이름의 DB내용 백업 에러로그는 DB_BACK.log 라는 파일로 전송 mysqldump -uroot -ppassword test > ${BACK_DIR}/${DT}testDB_BACK.sql 2> /tmp/DB_BACK.log #BACKUP 경로의 sql확장자 가진 파일중 5일이상 지난파일은 삭제 find ${BACK_DIR} -name '*.sql' -mtime +5 -exec rm -f {} ..

프로그래밍/linux 2023. 1. 10. 17:50

Permission denied (publickey,gssapi-keyex,gssapi-with-> mic) VScode 구글클라우드 서버 연결 하기

구글서버랑 vs코드 연결을 하려고 하는데 권한이 없다고 뜬다 ssh키를 생성해서vs코드접속 할때 같이 입력해주어야 한다 https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html 푸티키젠 다운 윈도우에서 ssh키를 생성하기 위해서는 PuTTYgen을 사용하면 됩니다 키가 생성되면 어짜피 세이브하긴 하는데 혹시 모르니 메모장에 하나 복붙해놓자 키 커맨드에는 구글클라우드 유저명을 정확히 입력해야 한다 밑에 퍼블릭키,프라이빗키 둘다 저장을 해주면 됌 기억하기 쉅게 문서폴더에 키커맨드 이름으로 저장해주면 된다. 위 처럼 뜨면 성공한거임 구글서버랑 vscode에서 연동 됐고 수정이 가능하다 이제는 깃을 연동 해보자

프로그래밍/linux 2022. 3. 28. 22:01

[linux] centos7 linux ssh 접속하기 생성

centos7은 firewall 사용하기 때문에 ssh port22번 열어준다 [root@localhost ~]# firewall-cmd --zone=public --add-port=22/tcp --permanent success root계정으로 직접적으로 로그인 못 하게 root로그인 설정 차단 [root@localhost ~]# vi /etc/ssh/sshd_config systemctl start sshd 실행 sshd 기본 포트는 22로 설정이 되어있음 ifconfig 로 자신의 ip를 확인 해준다 ifconfig 명령어를 찾을수 없으면 yum install net-tools ip128가상머신A / ip129가상머신B 2개를 생성해서 테스트 해보려고 한다 129가상머신에 접속하기 위해 ssh 유저..

프로그래밍/linux 2022. 3. 17. 20:18

[linux] centos7 서버,디비 자동 실행 httpd,mysql

[root@localhost etc]# systemctl enable httpd Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service. [root@localhost etc]# systemctl enable mariadb Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service

프로그래밍/linux 2022. 3. 15. 20:50

[Linux] 그룹에 사용자 생성/그룹 관리

리눅스 유저 생성 [root@localhost home]# useradd test-1 그룹 생성 [root@localhost home]# groupadd group_test 그룹에 유저 추가 root@localhost home]# gpasswd -a test-1 group_test group_test 그룹에 유저 test-1이 정상적으로 들어가있다 근데 home에서 보면 아직도 자신에 유저그룹을 사용중인게 보여진다 유저 test-1은 group_test와 test-1 그룹을 2개 사용 중이다 처음 사용한건 usermod -G 새로운 그룹(group_test)에 추가를 시켰고 [root@localhost home]# usermod -g group_test test-1 usermod -g 를 사용하게 되면 ..

프로그래밍/linux 2022. 3. 2. 23:15

[Linux] linux yum update 오류 Another app is currently holding the yum lock; waiting for it to exit.

리눅스 에서 yum 업데이트를 하려고 하는데 오류가 난다 실행 중인 프로세스 죽이면 된다 [root@localhost ~]# ps -ef | grep yum [root@localhost ~]# kill -9 10298 [root@localhost ~]# kill -9 10435 .... 모든 프로세스를 다 죽이고 [root@localhost ~]# rm -rf /var/run/yum.pid [root@localhost ~]# yum -y update

프로그래밍/linux 2022. 2. 18. 20:51

[Linux]linux 사용자 추가,삭제 그룹 생성,삭제,관리

1.유저 생성후 /etc/group 로 확인 해보면 hansol-2~ 4 까지 생성하였다 2. #groupadd group-1 그룹 생성 후 생성한 그룹에 hansol-2~4까지 넣어보자 usermod -G 그룹이름 유저 [root@localhost ~]# usermod -G group-1 hansol-2 [root@localhost ~]# usermod -G group-1 hansol-3 [root@localhost ~]# usermod -G group-1 hansol-4 [root@localhost ~]# usermod -G group-1 hansol-5 3. 그룹에 유저를 생성해보자 gpasswd -a 유저 그룹이름 [root@localhost ~]# gpasswd -a hansol-5 group-..

프로그래밍/linux 2022. 2. 16. 20:26

추가 정보

반응형

인기글

최신글

페이징

이전
1 2 3 4
다음
TISTORY
뭘 해야하나 © Magazine Lab
페이스북 트위터 인스타그램 유투브 메일

티스토리툴바