linux-centos7-php 설치
·
linux/basis
//저장소 업데이트 # yum -y update //서버시간 설정 # ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime # date //아파치(Apache 2.4) 설치 # yum install httpd //마리아 Yum 저장소 생성 #vi /etc/yum.repos.d/MariaDB.repo # MariaDB 10.1 CentOS repository list # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.1/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-..
리눅스 기본명령어 - linux-basic-comand
·
linux/basis
//사용자 정보 - user info. $ cat /etc/passwd //ftp login log $ tail -f /etc/log/secure //보기에서 줄번호 나오게 하기 :set number //apache vhost.conf vi /usr/share/doc/httpd-2.4.6/httpd-vhosts.conf //현제 디렉토리 용량 | 큰순정렬 du -sh * | sort -hr //마운트 mount -t nfs 10.11.12.13:/beforeNAS mgood_data //로그파일 비우기 cat /dev/null > ./error_log //리눅스 버전 확인 cat /etc/redhat-release //특정파일 이름 찾아 지우기 find . -name "access_log_202104*"..
구글 클라우드(GCP) root 계정 접속
·
linux/basis
//GCP 인스턴스를 만들고 나서, 웹을 통해 SSH 접속합니다. 아래와 같이 입력하여 root 패스워드를 설정해줍니다. $ sudo passwd New password: //설정한 비밀번호로 root 로그인. $ su - //GCP는 기본적으로 root 접속이 막혀있으므로 원격접속이 가능하도록 풀어줍니다. $ vi /etc/ssh/sshd_config //아래파일을 찾아 yes 로 변경해주자. / 입력후 text를입력하면 더욱 빠르게 찾을 수 있다 (예 : /PermitRootLo) PermitRootLogin yes //root 로그인 허용. PasswordAuthentication yes //pw 이용한 로그인 허용. //sshd 데몬 재시작. $ systemctl restart sshd.service
Google Cloud (GCP) 터미널 접속(root접속)
·
linux/basis
초기 root 패스워드를 설정합니다. 이후 putty 접속 시도 Google server putty connect 'Disconnected: No supported authentication methods available (server sent: publickey) 위와같이 에러가 발생한다면 다시 구글 SSH TOOL 을 이용해 아래와 같이 입력합니다. /PermitRootLogin 과 /PasswordAuthentication 검색 후 no -> yes 로 변경 :wq 저장 후 서비스 재시작