뭘 해야하나

고정 헤더 영역

글 제목

메뉴 레이어

뭘 해야하나

메뉴 리스트

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

검색 레이어

뭘 해야하나

검색 영역

컨텐츠 검색

root

  • [linux] root 로그인 시 -bash-4.2#

    2022.08.08 by 2hansoul

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

    2022.03.17 by 2hansoul

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

    2022.02.16 by 2hansoul

  • [PHP] php 디비 사용 하는 법 dbconn.php

    2021.12.17 by 2hansoul

  • Linux passwd 변경

    2021.11.03 by 2hansoul

  • mariadb root 비빌번호 설정

    2021.09.28 by 2hansoul

  • ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

    2021.06.16 by 2hansoul

[linux] root 로그인 시 -bash-4.2#

Last login: Mon Aug 8 09:33:56 KST 2022 on pts/0 -bash-4.2# 디비 빽업 파일 설정 경로를 루트로 잡았더니 언제부터 루트 로그인이 bash라고 나온다 이렇게 되면 내가 어디 위치에 있는지 pwd로 자꾸 확인해야 되서 변경 작업을 한다 -bash-4.2# csh [root@ip-172-31-36-52 ~]# csh 입력시 변경은 되는데 로그아웃하면 다시 원상태로 돌아오는 것 같음 vi /etc/passwd root에 /bin/bash 였는데 csh 로 변경 후 세이브 하면 잘 나온다

카테고리 없음 2022. 8. 8. 10:06

[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]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

[PHP] php 디비 사용 하는 법 dbconn.php

생성한 dbconn.php 파일을 매번 직접 입력 할수 없으니 include로 가져와서 사용한다 위 사진은 상대경로를 사용 했는데 같은 곳에 있어서 따로 안 적어줬지만 경로가 바끼게 되면 안돌아간다 include $_SERVER['DOCUMENT_ROOT']. "/dbconn.php"; 절대 경로 사용해서 사용하는게 더 좋음 user,host를 모른다면 select user,host from user; 로 확인 비밀번호는 복호화가 되어 있기때문에 찾는건 불가능 하고 다시 비빌번호 설정을 해야된다 2021.09.28 - [mysql] - mariadb root 비빌번호 설정 2021.11.04 - [mysql] - mysql 비밀번호 입력하지 않고 root 계정으로 접속 하기

php 2021. 12. 17. 20:44

Linux passwd 변경

- Linux passwd 란? passwd 는 리눅스 사용자계정의 비밀번호를 변경하는 명령어 입니다. - passwd 사용방법 passwd [사용자계정] - 예제 1 test1 이라는 계정을 생성한 후 패스워드를 변경하시오. - 예제 1 실행화면 [root@localhost ~]# useradd test1 [root@localhost ~]# passwd test1 Changing password for user test1. New password: [새로운 패스워드 입력] Retype new password: [새로운 패스워드 한번 더 입력] passwd: all authentication tokens updated successfully. - passwd -e 사용방법 passwd -e [사용자계정]..

프로그래밍 2021. 11. 3. 18:15

mariadb root 비빌번호 설정

비밀번호에 아무거나 입력해도 공백으로 접속을 해도 가능 하다 root계정은 중요한데 MariaDB [mysql]> update user set password=PASSWORD("1234") where user ='root'; ERROR 1356 (HY000): View 'mysql.user' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them update 를 이용 하면 비번 변경이 하려고 했으냐 mariadb 10.4 버전 부터는 다른 방식을 이용해야 한다고 함 MariaDB [mysql]> alter user 'root'@'localhost' identified b..

mysql 2021. 9. 28. 22:20

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Using password :no 면 비번을 입력을 안했다는 건데 yes 뜨면 조금 다르다 sudo mysql -u root -p 로 입력하고 비번 입력창이 뜰 탠데 1234 를 해보거나 아니면 그냥 비번을 입력하지 않고 엔터를 눌러서 접속 한다 접속이 되면 비밀번호 재설정을 해주면 된다 mysql> use mysql; mysql> UPDATE user set password=password("1234") where user = 'root'; Query OK, 1 row affected (0.02 sec) Rows matched: 4 Changed: 4 Warnings: 0 mysql> flush privileges; ERROR 1356 (HY000): View 'mysql.user' references..

mysql 2021. 6. 16. 19:35

추가 정보

반응형

인기글

최신글

페이징

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

티스토리툴바