압축 풀때 .tar확장자 tar xvf <파일명> 압축 할때 .tar확장자 tar cvf <파일명.tar> <압축할 폴더명> 압축풀기 -x(extract) 압축 -z(없으면 압축하지않고 단순 묶음(tar)) 퍼미션 -p(파일이나 폴더의 퍼미션까지 압축
리눅스 로그 systemlog file로 남기기 node server.js 9090 >> log.txt &
#인코딩 변경 iconv -f cp949 -t utf8 json_code.properties > json_code.properties.utf8
port 80번의 경우 root권한으로만 가능하므로 일반계정에서 사용하기 위해 라우팅테이블을 수정한다. iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080 iptables -t nat -I OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 8080

sudo update-alternatives --config java




netstat -na

참 서버에대해서 암것도 몰랐던것 같다 이런 간단한 명령어 조차 모르고 지냈다.

1 --x execute
2 -w- write
3 -wx write and execute
4 r-- read
5 r-x read and execute
6 rw- read and write
7 rwx read, write and execute

http://en.wikipedia.org/w/index.php?title=File_system_permissions

+ Recent posts