(주)누리웨어

화상연동/Web,APP 구축및서비스/LMS/평생교육/학점은행/기업교육/연수관리/설문구축/

Linux/Unix

Unix – HP-UX 명령어

start/stop start : 파워스위치를 3초정도 길게 누른다. stop : shutdown -hy 0(0초이내 즉시 재부팅) 재부팅 : shutdown -ry 강제종료 : shutdown -h 0 디스크의 용량 # bdf 명령 실행 중지 ctrl + c 대신 delete 키를 누름 패치목록 확인 #swlist -l product  프로세스 갯수 #ps -ef | wc    os bit #getconf KERNEL_BITS IP확인 #netstat -in […]

HP-UX 에서 Apache + Tomcat 설치

설치된 OS버젼을 확인

개별 환경 변수 설정의 경우는   cd ~ 해당 홈디렉토리 의 vi .profile 예 저장하시면 되구요 전체 공용 계정별 환경변수 저장은 vi /etc/profile에 설정 하면됩니다.   다운로드 https://h20392.www2.hp.com/portal/swdepot/displayProductsList.do?category=NSM 설치하기

설치선택화면 설치선택완료화면(선택하고 Actions>Mark for Install 그다음  Actions>install하면 설치합니다. 설치중 화면 대화형 창이 뜨면 Space Bar로 apache를 선택 2)위의 명령어로 설치하면

위에서 […]

Linux 7 (Centos, Redhat Linux, Oracle Linux) systemctl

6버젼에서 사용했던 chkconfig로 사용하던 것들을 systemctl로 바꾸었다. /usr/lib/systemd/system/의 하부에 링크가 걸려있는 것도 있다. 목록보기 ]#systemctl ]#systemctl list-units ]#systemctl list-unit-files 서비스시작 ]#systemctl start service명.service 서비스중지 ]#systemctl stop service명.service 부팅시 자동실행 ]#systemctl enable service명.service 부팅시 자동 미실행 ]#systemctl disable sercie명.service   MySql Service 등록 예제 ]#vi /etc/systemd/system/mysqld.service

Unit 에서 After는 해당하는 서비스가 실행후 실행되는 서비스를 말합니다. 최초 […]

CentOS 에 postfix 설정

1.CentOS 에 기본적으로 6.*이상버젼에서는 설치가 되어 있습니다. 안되어 있으면

2.설정파일 수정

내용중

  3.서비스 시작

  postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off 위와 같이 나오면 서비스에 이미 올라가 있다 시작하자

  끝    

Linux user jboss .bash_profile Sample

# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH umask 022 #환경변수 JAVA_HOME=/app/jdk/jdk1.7.0_80 JBOSS_HOME=/app/was/EAP-6.4.0 DOMAINS_HOME=/app/was/domains/ HTTPD_HOME=/app/web/apache2 PATH=.:$HTTPD_HOME/bin:$JAVA_HOME/bin:$PATH #환경변수 적용 export JAVA_HOME JBOSS_HOME PATH export JENKINS_HOME=/app/jenkins export LANG=ko_KR.utf8 export EDITOR=vi export HISTFILE=$HOME/.bash_history export TMP=/tmp export TMPDIR=/tmp PS1=whoami@hostname‘:$PWD> ‘ […]

Linux 유용한 명령어 rename 과 mv

mv 파일명 변경 또는 파일위치 변경 보통 한개의 파일명 변경할때 사용 mv 옵션 소스데이타 바뀔데이타 mv access.log access.log.20150125 rename 여러개의 파일명 변경시 사용 rename jpg(바꿀파일명) JPG(바뀔파일명) *.jpg(이 파일중에서)

Ubuntu – Tomcat Service 등록

  vi tomcat.sh 상단에  description ,processname등을 입력한다.

링크를 걸어준다.

  권한변경

  서비스등록

  이상   service Tomcat start   TroubleShooting 서비스해지 sudo update-rc.d -f Tomcat remove warnging missing LSB information

Ubuntu – The APR based Apache Tomcat Native library which allows optimal ~ APR 못차는 에러

Tomcat 실행시 The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

위의 /usr/lib밑으로 링크를 걸어준다.

해결된다.

Linux – 폴더별 용량 du, df

전체용량 du -sh

    현재폴더위 위치에서 첫번째 폴더 du -h –max-depth=1(두번째는 2)

 

 

 

Previous Posts Next posts