2010. 12. 20. 20:34 Windows

Apache+ASP.NET(퍼옴)

Mod_AspDotNet : http://sourceforge.net/projects/mod-aspdotnet/
Apache Homepage : http://www.apache.org/

이 문서는 WIndows XP에서 아파치 서버를 구동하는 경우를 기준으로 쓴다.
미완성 프로젝트라고는 하지만, 아직까지는 별다른 기능상의 제약을 만난적은 없다.

위의 Mod_AspDotNet의 링크에서 지원모듈을 다운받아서 설치하면 아파치 설정문서에 아래와 같은 항목이 추가된다.

# Use the asp.net handler for all common ASP.NET file types
AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo

<IfModule mod_aspdotnet.cpp>

    # Mount the IBuySpy C# example application
    AspNetMount /WebApp "C:/webpubs/wwwroot/webapp"
    AspNetMount /WebApp "C:/webpubs/wwwroot/webapp/island"

    # Map all requests for /StoreCSVS to the IBuySpy application files
    Alias /WebApp "C:/webpubs/wwwroot/webapp"
    Alias /WebApp "C:/webpubs/wwwroot/webapp/island"

    # Allow asp.net scripts to be executed in the IBuySpy example
    <Directory "C:/webpubs/wwwroot/webapp">
        Options FollowSymlinks ExecCGI
        Order allow,deny
        Allow from all
        DirectoryIndex Default.htm Default.aspx
    </Directory>
    <Directory "C:/webpubs/wwwroot/webapp/island">
        Options FollowSymlinks ExecCGI
        Order allow,deny
        Allow from all
        DirectoryIndex Default.htm Default.aspx
    </Directory>

    # For all virtual ASP.NET webs, we need the aspnet_client files
    # to serve the client-side helper scripts.
    AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) \
          "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
    <Directory \
          "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
        Options FollowSymlinks
        Order allow,deny
        Allow from all
    </Directory>

</IfModule>

빨간색으로 강조되어있는 부분처럼 디스크상의 절대경로를 수정하면 모든설정 완료.
제일 마지막 구문에서 알 수 있듯이, 컴퓨터상에 .NET FrameWork지원 모듈이 설치되어 있어야 이 모듈도 정상적으로 돌아간다.
위의 설정을 보면 알 수 있지만, 똑같은 구문이 경로만 다르게 2개 잡혀있는것을 알 수 있다.
ASP.NET을 지원하는 폴더를 더 늘리고싶다면 위와 같이, 각 구문을 복사해서 절대경로만 알맞게 수정해주면 된다.
아쉽게도 하위 디렉토리까지 모두 지원해주지는 않는다.

반응형
Posted by She쥐포s

2010. 12. 20. 15:01 Unix

vi에서 정렬

:sort   또는  :%sort
버퍼의 모든 라인 정렬

:2,4sort
2번라인부터 4번라인까지 정렬

:sort -u
정렬후 중복 없애기

반응형
Posted by She쥐포s
Solaris에서 메모리량 확인 법

# /usr/platform/sun4u/sbin/prtdiag

# wsinfo

# /usr/sbin/prtconf | grep -i memory

두번째 방법은 나도 처음보는 거군요...

출처 : Unix Tip 메일링 리스트
반응형
Posted by She쥐포s
파일 시스템 inode full

파일시스템의 inode 사용량이 100%로 full이 된 경우 파일이 많은 디렉토리를
찾기란 쉽지 않다. 만일 파일 사이즈가 작은 경우 du에 의존하기도 힘들다.

이 경우 다음의 명령을 사용하면 현재 파일시스템에서 디렉토리와 그에 속한
파일의 수를 출력할 수 있다.

find . -xdev -type d -exec /bin/echo -n "{} : " \; -exec sh -c "ls {} | wc -l" \;

옵션설명)
-xdev : 다른 파일시스템은 검색하지 않기
-type d : 파일 타입이 d인 경우(디렉토리), f : 일반파일, l : 링크
-exec : 명령 수행

※ 원문 내용에 첨삭함.

------------------------------------------ 원문 ----------------------------------------------

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

                             UNIX GURU UNIVERSE
                                UNIX HOT TIP

                       Unix Tip 3577 - November 25, 2010

                   http://www.ugu.com/sui/ugu/show?tip.today

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


FULL OF FILESYSTEM INODES

We recently had a problem where a file system had 100% inode usage.
Unfortunately there isn't an easy way to search for directories with
a lot of files in them (1 file = 1 inode). And if the files are small,
you can't rely on du to help you out.

Here is a find command that will print all the directories in the
current filesystem, with the number of files (inodes) in that directory.

find . -xdev -type d -exec /bin/echo -n {} \; -exec sh -c "ls {} | wc -l" \;

반응형
Posted by She쥐포s

○ 상용 Unix에서 절대 경로로 묶인 tar 파일 풀기

    Linux가 아닌 일반 상용 Unix(HP-UX, Solaris 등)에서 리눅스에서 tar 파일
    풀 듯이 아무 생각없이 풀어버리다가 낭패를 당한 적이 있을 것이다.
    어느 회사의 미들웨어 시스템이 HP-UX이던 시절, Test 서버에서 아무
    생각없이 tar를 풀다가 헐~ 하는 경우를 당했었는데..
    Test 서버였기 망정이지..

    어제 갑자기 지인이 그 방법을 물어오길래 생각이 나서..
    한 노트 끄적여 보려고 한다. 

    □ Method 1. GNU tar로 해결 

        지금 생각해 보면 무식한 방법이었던 것 같다. root 권한을 마음대로
        사용할 수 없었는데 root 권한을 갖고 있는 사람에게 굽신굽신하며
        설치를 부탁했던 기억이 난다. 

    □ Method 2. pax 사용 

        "Linux 서버 관리 Hacks 100"이란 책을 보다가 알게된 방법으로 pax를
        사용하는 방법이다.


        - 파일 내용 보기
            # pax -f FILENAME
            예) pax -f sinzi76.tar

        - 절대경로를 상대경로로 바꾸어서 풀기
            # pax -rv -s,절대경로,상대경로, -f FILENAME
            예) pax -rv -s,/home,./pgclks, -f sinzi76.tar

        - Interactive하게 풀기 옵션(-i)
            # pax -rif FILENAME
            예) pax -rif sinzi76.tar
            이 옵션을 사용하면 파일마다 경로를 바꿀 것인지 그대로 풀 것인지 확인

        ※ pax는 tar 및 cpio 파일을 풀 수 있으며 파일이 압축된 경우 -z 옵션을
           함께 사용한다. 그렇지 않으면 에러를 내므로 pax를 사용하기 전에
            file 명령을 이용하여 압축여부를 확인하여 사용하도록 한다.

        ※ 기타 자세한 내용은 man page 참조

반응형
Posted by She쥐포s

늦게 올리지만...
지난 포스트 다음날.. 친구의 부음을 들었다..

아직은 우리가 떠날 시간은 아닌데..
고맙던 친구.. 부디 편한 곳에서.. 편하게 쉬시게나...

 

49제때 보고 싶진 않지만..
그래도 마지막 당신의 모습을 한번 더 보고 싶네...

안녕..

반응형
Posted by She쥐포s
...
언제나 웃는 모습으로 기억되던 분..
..
사고로.. 안 좋으시다더니...
생일날 택시비도 없어.. 쩔쩔 매던날..
떠나셨단다..

편히 쉬세요...
반응형
Posted by She쥐포s

[oracle@localhost ~]$ sqlplus /nolog
SQL*Plus: Release 10.1.0.3.0 - Production on Tue Jul 27 14:29:47 2010

Copyright (c) 1982, 2004, Oracle.  All rights reserved.

SQL> conn sys as sysdba
Enter password:
Connected.
SQL> select * from v$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Prod
PL/SQL Release 10.1.0.3.0 - Production
CORE    10.1.0.3.0      Production
TNS for Linux: Version 10.1.0.3.0 - Production
NLSRTL Version 10.1.0.3.0 - Production

SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@localhost ~]$

반응형
Posted by She쥐포s
ㅁ netsh interface ip set address "Local Area Connection" dhcp
지정한 Interface Adapter를 DHCP로 변경

ㅁ netsh interface ip show config
모든 Interface Adapter의 현재 IP 주소와 함께 표시

* 참고 : 날으는 물고기님의 블로그 : http://blog.naver.com/choibit?Redirect=Log&logNo=140034636583
반응형
Posted by She쥐포s

파일 내의 모든 제어문자를 제거하기 위한 방법(^M, ^H,  ^I(탭) 등)

$ strings FILENAME > FILENAME.another

----------
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                             UNIX GURU UNIVERSE
                                UNIX HOT TIP
                       Unix Tip 3450 - July 21, 2010
                   http://www.ugu.com/sui/ugu/show?tip.today
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

STRING STRIPPING

Remove all ^M and other control
characters from file ABC

strings ABC > ABC-good

This tip generously supported by:
brillj@constellation.navy.mil

반응형
Posted by She쥐포s
이전버튼 1 2 3 4 5 6 7 ··· 34 이전버튼

블로그 이미지
She쥐포s
Yesterday
Today
Total

달력

 « |  » 2024.4
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

최근에 올라온 글

최근에 달린 댓글

글 보관함