메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


1. /etc/apache2/mods-enabled로 이동한다.

cd /etc/apache2/mods-enabled


2. symbolic link를 생성한다.

ln -s ../mods-available/userdir.conf

ln -s ../mods-available/userdir.load


3. 수정내용을 반영해준다.

service apache2 restart



#참고 : Document Root를 public_html이 아닌 다른 명칭의 경로를 사용하는 경우 아래와 같이 변경해준다.

-----------------------mods-enable/userdir.conf-----

<IfModule mod_userdir.c>
        #UserDir public_html
        UserDir www

        UserDir disabled root

        #<Directory /home/*/public_html>
        <Directory /home/*/www>

                AllowOverride FileInfo AuthConfig Limit Indexes
                Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
                <Limit GET POST OPTIONS>
                        Require all granted
                </Limit>
                <LimitExcept GET POST OPTIONS>
                        Require all denied
                </LimitExcept>
        </Directory>
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet


4. 사용자계정을 생성및 경로/권한을 생성한다.

  가. useradd gdime

  나. passwd gdime

  다. home경로 생성 : mkdir /home/gdime

  라. Document Root경로 생성 : mkdir /home/gdime/www

  마. home경로 권한 설정

    chmod 711 /home/gdime

  바. Document Root경로 권한 설정
    chmod -R 755 /home/gdime/www

번호 제목 날짜 조회 수
421 Cannot create /var/run/oozie/oozie.pid: Directory nonexistent오류 2014.06.03 537
» 여러 홈페이지를 운영하거나 혹은 서버에 가입한 사용자들에게 홈페이지 계정을 나누어 줄수 있도록 설정/계정 생성방법 2018.01.23 536
419 github에 있는 프로젝트와 로컬에서 작업한 프로젝트 합치기 2016.11.22 536
418 halyard의 console스크립트에서 생성한 repository는 RDF4J Web Applications에서 공유가 되지 않는다. 2017.07.05 533
417 new Gson().toJson(new ObjectId())을 사용하면 값이 다르게 나오는 경우가 있음 2016.12.23 531
416 python실행시 ValueError: zero length field name in format오류 해결방법 2016.05.27 526
415 Could not configure server becase SASL configuration did not allow the Zookeeper server to authenticate itself properly: javax.security.auth.login.LoginException: Checksum failed 2019.05.18 525
414 hadoop 어플리케이션을 사용하는 사용자 변경시 바꿔줘야 하는 부분 2016.09.23 524
413 Error: E0501 : E0501: Could not perform authorization operation, User: hadoop is not allowed to impersonate hadoop 해결하는 방법 2015.06.07 521
412 AIX 7.1에서 hive실행시 "hive: line 86: readlink: command not found" 오류가 발생시 임시 조치사항 2016.09.25 520
411 Caused by: java.lang.ClassNotFoundException: org.apache.spark.Logging 발생시 조치사항 2017.04.19 519
410 [HIVESERVER2]프로세스의 thread및 stack trace를 덤프하는 방법(pstack, jstack) 2022.05.11 518
409 우분투 서버에 GUI로 접속하기 file 2018.05.27 518
408 fuseki에서 제공하는 script중 s-post를 사용하는 예문 2017.09.15 517
407 서버중 slave,worker,regionserver만 재기동해야 할때 필요한 기동스크립트및 사용방법 2017.02.03 516
406 Soft memory limit exceeded (at 100.05% of capacity) 오류 조치 2022.01.17 515
405 streaming작업시 입력된 값에 대한 사본을 만들게 되는데 이것이 실패했을때 발생하는 경고메세지 2017.04.03 515
404 우분투 16.04LTS에 Jupyter설치 2018.04.17 514
403 Windows7 64bit 환경에서 Apache Hadoop 2.7.1설치하기 2017.07.26 513
402 mongodb에서 큰데이타 sort시 오류발생에 대한 해결방법 2015.12.22 512
위로