일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- CentOS
- 와일드카드
- properties
- tomcat
- Spring
- SeLinux
- 리눅스
- error
- 정규식
- curl
- jquery
- input
- Linux
- JSON
- ajax
- php
- java
- 안드로이드
- junit
- javascript
- laravel
- Android
- DB
- MySQL
- NetBeans
- html
- 톰캣
- File
- 이클립스
- larravel
- Today
- Total
목록리눅스 (9)
합쭈기 programming
http://fruitdev.tistory.com/19 참조 chkconfig 등록이 안 될때 상단에 추가 # chkconfig: 2345 90 90 # description: init file for Apache server daemon # processname: /usr/local/server/apache/bin/apachectl # config: /usr/local/server/apache/conf/httpd.conf # pidfile: /usr/local/server/apache/logs/httpd.pid
명령어 + | grep 검색어 ex) ls -a | grep tomcat
소유자 변경chown -R 파일 or 폴더 -R은 하위 디렉토리까지 적용시킴 권한 변경 chmod 777 비트8진수 텍스트 접근권한의미 8400r-------- 소유자 읽기 7200-w------- 소유자 쓰기 6100--x------ 소유자 실행 5040 ---r----- 그룹 읽기 4020 ----w---- 그룹 쓰기 3010 -----x--- 그룹 실행 2004 ------r-- 그외 사용자 읽기 1002 -------w- 그외 사용자 쓰기 0001 --------x 그외 사용자 실행
모든프로세스ps -e 실행중인 프로세스pstree
리눅스 검색 find / -name 검색어
서비스 등록chkconfig --add 서비스이름 (*) 표일때 부팅 시 자동 시작한다 서비스 확인service --status-all 또는 setup 포트 확인netstat -atlpvn 특정포트 확인netstat -nap | grep 8080 포트 사용 프로세스 확인lsof -i TCP:8080 프로세스 죽이기fuser -k -n tcp 8080
웹 정보 얻기wget {url} body만 보고 싶을 때는curl -d {url}-d는 post 데이터
설치 여부 확인$ yum list | grep httpd 아파치 설치 $ yum install httpd.x86_64 톰캣 설치 http://tomcat.apache.org/ download > core > tar.gz 다운로드 후 $ tar –zxvf {tar.gz 파일명} 으로 압축해제※ yum으로 설치도 가능한데 그건 단독 톰캣 돌릴때 써야 될 것 같다. Java JDK 설치 $ yum install java-1.7.0-openjdk-devel.x68_64 Tomcat connector 설치를 위한 httpd-devel 설치 $ yum install httpd-devel gcc gcc-c++ Tomcat connector(mod_jk) 설치http://tomcat.apache.org/download..