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-..
1-2. linux svn 설정
·
linux/svn
// svn 저장소 생성 # svnadmin create --fs-type fsfs TestStore1 # chmod -R g+ws TestStore1 // 저장소 설정 TestStore1/conf/svnserve.conf 수정 # vi TestStore1/conf/svnserve.conf // 비로그인 접속 권한 read, write, none anon-access = read // 로그인 접속권한 read, write, none auth-access = write // 비밀번호 관리할 파일 password-db = passwd // 파일 디렉토리 접근 권한 관리할 파일 authz-db = authz // 인증 시 보여주는 간단한 저장소 설명 (생략 가능) realm = My First Reposito..
1-1. linux-centos-svn 설치
·
linux/svn
//svn 설치 유무 # rpm -qa | grep subversion //svn 설치 가능한 리스트 # yum list subversion //svn 설치 # yum install -y subversion //svn 저장할 폴더 생성 # cd / # mkdir svn_repos //svn 저장소 설정 # vi /etc/sysconfig/svnserve # OPTIONS is used to pass command-line arguments to svnserve. # # Specify the repository location in -r parameter: OPTIONS="--threads --root /svn_repos" //svn 방화벽 설정 # sudo firewall-cmd --permanent -..
리눅스 기본명령어 - 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 저장 후 서비스 재시작