Linux

Linux

[etc] scp from local to remote / from window to linux /

SCP 를 활용해서 파일 업로드 또는 다운로드를 해보쥬~ window = local / linux = remote 1. window[local] to ubuntu[remote] or 2. ubuntu[remote] to window[local] 1. window[local] to ubuntu[remote] scp -rP[port] [Local 파일 경로] [계정]@[Remote 주소]:[Remote 경로] -r option Recursive, 디렉토리 전송, P port 번호 window cmd scp -rP24512 D:/path1/path2 name@192.168.0.1:/home/name2 2. ubuntu[remote] to window[local] scp -rp[prot] [계정]@[Remote..

Linux

[linux](ubuntu 18.04) apache2 port 변경 root 변경 password 설정

port 변경 방법 1. nano ports.conf $sudo nano /etc/apache2/ports.conf Listen 80 -> 원하는 포트로 변경 후 저장 ctl+x -> y 2.nano 000-default.conf $sudo nano /etc/apache2/sites-available/000-default.conf 3. 원하는 포트로 변경 후 저장 ctl+x -> y 4.아파치 서비스 재시작하기 $sudo /etc/init.d/apache2 restart $sudo /etc/init.d/apache2 restart root 변경 방법 1.nano /etc/apache2/apache2.conf $sudo nano /etc/apache2/apache2.conf root directory 추가..

Linux

[linux] (ubuntu18.04) docker run/port forwarding issue/

docker run 명령어 option 중에 port forwarding option이 안먹힐 때!!! 안될 때!!! argument 순서만 처음으로 배치하면 단번에 해결! ex) maria DB를 docker run 시킬때 $docker run -p 3306:3306 --name maria -v /data/hdd1/mariadb:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123 -d mariadb:latest

Linux

[linux](ubuntu18.04) 폴더 압축시 argument list is too long issue 해결

tar 기본 사용법 tar -[option] option x : 묶음 해제 c : 파일을묶음 v : 묶음/해제 과정 화면에 표시 z : gunzip 사용 f : 파일 이름 지정 p : 권한 유지 $tar -czf $tar -czf sample_new.tar.gz sample linux에서 폴더 압축시 파일 갯수가 일정 수 이상일 경우 error : argument list is too long 발생 할 수 있다. 해결법 : 우선 folder 소유를 root 말고 다른 user 로 변환 후 아래 명령어 이용 $find . -name ‘*.jpg’ -print > ./allfiles $tar -cf alljpg.tgz --files-from ./allfiles

Chandler.j
'Linux' 카테고리의 글 목록 (3 Page)