- 링크만들기
$> ln -s [target directory or file] [symlink shortcut]
For example, to link the /usr/local/lib/example directory to /example, use the following command:
$> ln -s /usr/local/lib/example /example
- 링크지우기
$> unlink [symlink shortcut]
For example,
$> unlink /example
-
apache(아파치), tomcat(톰캣) 심볼릭링크 사용하기
톰캣에서 설정 할 경우
톰캣홈디렉토리/conf/server.xml 파일을 연다.
<Context path="..." reloadable="true" docBase="..." allowLinking="true" />
아파치 설정의 경우 아래와 같은 부분 알아서 설정한다.
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory><Directory "/usr/local/apache/htdocs">
Options Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
</Directory><Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>
댓글 없음:
댓글 쓰기