아파치 실행시 권한문제로 소켓생성 실패.. & 맥어드레스 변경사항 유지

망치의 이미지

vmware 에서 웹서버를 띄워보려고 웹서버 포트를 80 에서 8888 로 바꿨는데 아파치 구동시 다음 에러가 떠버립니다.
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:8888
httpd.conf 에서 listen 부분을 그냥 8888 로 줘도, 0.0.0.0:8888 로 줘도 마찬가지인데, 그냥 80 만 줬을때는 제대로 실행이 됩니다.

CentOS 4.2 를 설치해놨는데 포트별 사용권한을 지정해줘야하는 부분이 있나요? 아파치는 OS 인스톨시 포함되어있던 패키지입니다.

그리고 이건 다른 질문인데요, ifconfig eth0 hw ether MAC 로 랜카드의 맥어드레스를 변경한걸 리부팅시에도 계속 유지되도록 하려면 어디서 변경을 해줘야 하는건가요?

망치의 이미지

망치 wrote:
그리고 이건 다른 질문인데요, ifconfig eth0 hw ether MAC 로 랜카드의 맥어드레스를 변경한걸 리부팅시에도 계속 유지되도록 하려면 어디서 변경을 해줘야 하는건가요?

요건 /etc/sysconfig/network-scripts/ifcfg-eth0 에 MACADDR 을 넣어서 해결했습니다. :oops: :oops:

---------------------------------------
http://www.waitfor.com/
http://www.textmud.com/

망치의 이미지

message 로그에 담긴 내용입니다

Quote:
Jan 10 14:27:53 cent kernel: audit(1136870873.858:9): avc: denied { name_bind } for pid=4168 comm="httpd" src=8888 scontext=root:system_r:httpd_t tcontext=system_u:object_r:port_t tclass=tcp_socket
Jan 10 14:27:53 cent httpd: (13)Permission denied: make_sock: could not bind to address [::]:8888
Jan 10 14:27:53 cent httpd: no listening sockets available, shutting down
Jan 10 14:27:53 cent httpd: Unable to open logs
Jan 10 14:27:53 cent httpd: httpd startup failed

audit 에 대해서 찾아봐야 될것같습니다 =_=;;

ps. SELINUX 란 녀석을 처음 접하다보니 생긴 문제 같습니다 :?

---------------------------------------
http://www.waitfor.com/
http://www.textmud.com/

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.