Search Results for 'centos'

8 POSTS

  1. 2012.08.09 JIRA5 설치[1/2] Linux에 install 하기.
  2. 2012.04.11 Linux hostname 변경시 주의사항
  3. 2011.11.16 CentOS6.0 vsftpd 설치

JIRA 평가판 최신버전(5.1.2)을 다운받아서 설치해 봤습니다. 리눅스(CentOS 5.x에)

JIRA를 설치하려면 우선 JDK를 다운받아서 설치해야 합니다. 해당 서버에 맞는 JDK를 다운받습니다.

wget http://download.oracle.com/otn-pub/java/jdk/7u3-b04/jdk-7u3-linux-x64.rpm

rpm -ivh jdk-7u3-linux-x64.rpm


/etc/profile 에 다음의 내용을 추가합니다.

.... 

pathmunge /usr/java/default/bin

pathmunge /wecon/cassandra/bin

export JAVA_HOME="/usr/java/default"

....

unset i

unset pathmunge


서버를 재부팅 해줍니다.

vi /etc/profile 에 다음의 내용을 추가합니다.


JIRA를 다운받습니다.

다운받은 bin 파일에 실행권한을 부여합니다.

chmod +x atlassian-jira-5.1.2-x64.bin


[root@jira ~]# ./atlassian-jira-5.1.2-x64.bin 

Unpacking JRE ...

Starting Installer ...



jara를 설치할꺼라고 합니다. o와 enter를 쳐줍니다.

This will install JIRA 5.1.2 on your computer.

OK [o, Enter], Cancel [c]


설치유형을 선택하라고 합니다.

Choose the appropriate installation or upgrade option.

Please choose one of the following:

Express Install (use default settings) [1], Custom Install (recommended for advanced users) [2, Enter], Upgrade an existing JIRA installation [3]


advanced users가 아니면서도 2번을 선택했습니다.

디렉토리를 선택하는 아니 지정하라고 하는 내용입니다. /home 밑으로 생성했습니다. 찾기가 좋을듯 해서...

Where should JIRA 5.1.2 be installed?

[/opt/atlassian/jira]

/home/atlassian/jira


jira 데이터를 저장할 디렉토리를 지정하라고 합니다.

Default location for JIRA data

[/var/atlassian/application-data/jira]

/home/atlassian/jira/data

위와 같이 입력하면 다음과 같이 안된다는 내용의 메시지가 나옵니다. jira홈디렉토리는 data디텍토리로 사용할수 없도록 합니다.

이유는 잘 모르겠지만 문제의 소지가 있어서 그런듯 합니다.

The home directory cannot be a sub-directory of the installation directory. Please use another location.

Default location for JIRA data

[/home/atlassian/jira/data]

/home/atlassian/jira_data


jira를 서비스하기 위한 Port를 지정하라는 질문이 나옵니다.

Configure which ports JIRA will use.

JIRA requires two TCP ports that are not being used by any other

applications on this machine. The HTTP port is where you will access JIRA

through your browser. The Control port is used to Startup and Shutdown JIRA.

Use default ports (HTTP: 8080, Control: 8005) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]

1

톰캣의 8080과 중복될수도 있으나 일단 디폭트로 지정합니다.


JIRA can be run in the background.

You may choose to run JIRA as a service, which means it will start

automatically whenever the computer restarts.

Install JIRA as Service?

Yes [y, Enter], No [n]

y


Extracting files ...

백그라운드 서비스로 지정할꺼냐고 묻습니다. yes

이후 파일들의 압축이 풀립니다.


Please wait a few moments while JIRA starts up.

Launching JIRA ...

Installation of JIRA 5.1.2 is complete

Your installation of JIRA 5.1.2 is now ready and can be accessed via your

browser.

JIRA 5.1.2 can be accessed at http://localhost:8080

Finishing installation ...

그리고는 어마있어 위와 같은 메시지와 함께 설치가 마무리 됩니다.


이제 브라우져를 열고 해당 아이피:8080 으로 접속하여 Configuration을 잡습니다.

Configuration에 대한 내용은 다음포스팅으로 넘깁니다.






Linux hostname 변경시 주의사항

Posted 2012. 4. 11. 23:06

리눅스 hostname변경에 대한 검색을 해보면 대부분 두개의 파일(/etc/sysconfig/network, /proc/sys/kernel/hostname) 만 수정하라고 나온다.

사실 표면적으로는 한개(/proc/sys/kernel/hostname)만 수정해도 변경된것처럼 보인다.

일반적인 시스템 상황에선 두개의 파일만 변경해도 문제가 없다.

하지만 드물게(본인의 경우는 cassandra 서버로 사용할 경우) 문제를 발생시킨다.

이유는 /etc/hosts를 변경하지 않았다는 이유로...

귀찮다고 놔두지 말고 /etc/hosts파일도 꼭 수정하도록 하자.

 

1. vi /etc/sysconfig/network

2. echo 변경할-hostname >  /proc/sys/kernel/hostname

3. vi /etc/hosts

 

끝.

 

추가 : hosts파일이 Default에서 변경되지 않았다면 굳이 변경할일도 없다.



CentOS6.0 vsftpd 설치

Posted 2011. 11. 16. 16:30

yum install후 신규로 계정을 생성했는데, 접속이 안된다.
접속이 안된다기보다 다음의 메시지를 반환...
500 OOPS: cannot change directory:/home/user

Google검색해 보니 다음의 방법으로 해결된다.

getsebool -a | grep ftp
allow_ftpd_anon_write --> off
allow_ftpd_full_access --> off
allow_ftpd_use_cifs --> off
allow_ftpd_use_nfs --> off
ftp_home_dir --> off
ftpd_connect_db --> off
httpd_enable_ftp_server --> off
sftpd_anon_write --> off
sftpd_enable_homedirs --> off
sftpd_full_access --> off
sftpd_write_ssh_home --> off
tftp_anon_write --> off

setsebool -P ftp_home_dir on

==> 요기서 꽤 시간이 걸린다. 인내를 갖고 기다리지 못하고 Ctrl+C를 눌러 취소했었다가 다시 실행했다.ㅎㅎㅎ
getsebool -a | grep ftp
allow_ftpd_anon_write --> off
allow_ftpd_full_access --> off
allow_ftpd_use_cifs --> off
allow_ftpd_use_nfs --> off
ftp_home_dir --> on
ftpd_connect_db --> off
httpd_enable_ftp_server --> off
sftpd_anon_write --> off
sftpd_enable_homedirs --> off
sftpd_full_access --> off
sftpd_write_ssh_home --> off
tftp_anon_write --> off

off로 되어 있던 ftp_home_dir 이 on 으로 바뀐것을 알수 있다.
이후 접속해보니 잘 된다.

 

SELinux 를 Disable 시키고 세팅하기. iptables지정은 추후에 하기로 한다.

yum remove -y vsftpd (제거했다가 다시 설치해보자.)
remove -f /etc/vsftpd/*
yum install -y vsftpd
vi /etc/vsftpd/vsftpd.conf

chroot_local_user=YES

chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list

chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list

#계정마다 동적으로 설정할 경우
chroot_local_user=YES
passwd_chroot_enable=YES

vi /etc/vsftpd/chroot_list 파일을 만들어 줍니다. ftp에 사용할 계정을 넣어줍니다.

이런식으로 하면 /etc/passwd 파일을 참고하여 chroot 를 설정할 수 있습니다.
vi /etc/passwd 파일을 열어 ftp root를 변경해줍니다.

admin:x:500:500::/var/www/html:/bin/bash

 

 

 



« PREV : 1 : 2 : 3 : NEXT »