ubuntu apm 설치기록

--
-- 기본 설치
--

1. 우분투 기본 설치

2.nfs 설치 및 마운트

 apt-get install nfs-kernel-server nfs-common portmap
 vi /etc/exports
 
 /etc/init.d/portmap restart
 /etc/init.d/nfs-kernel-server restart
 /etc/init.d/portmap restart

 ## test
 mount -t nfs 10.0.1.94:/data2002 data

 ## fstab 에 추가
 10.0.1.94:/data2002     /home/appdata/2002      nfs     bg      0  0
 10.0.1.94:/data2003     /home/appdata/2003      nfs     bg      0  0
 10.0.1.94:/data2004     /home/appdata/2004      nfs     bg      0  0
 10.0.1.94:/data2005     /home/appdata/2005      nfs     bg      0  0
 10.0.1.94:/data2006     /home/appdata/2006      nfs     bg      0  0
 10.0.1.94:/data2007     /home/appdata/2007      nfs     bg      0  0
 10.0.1.94:/data2008     /home/appdata/2008      nfs     bg      0  0
 10.0.1.94:/data2009     /home/appdata/2009      nfs     bg      0  0
 10.0.1.94:/data2010     /home/appdata/2010      nfs     bg      0  0
 
--
-- APM
--
1. Apache
   apt-get install apache2

2. mysql 인증 모듈
   apt-get install libapache2-mod-auth-mysql

3. MySQL
   apt-get install mysql-server mysql-client
  #설치가 완료되면 MySQL서버가 자동으로 시작

4. PHP5
   apt-get install php5-common php5 libapache2-mod-php5

5. MySQL과 연동하기 위한 모듈
   apt-get install php5-mysql

6.아파치 웹서버를 재시작
   /etc/init.d/apache2 restart

7. FreeTDS (MS-SQL CLI) 설치
 apt-get install freetds-dev tdsodbc php5-sybase
  
  ## /etc/freetds/freetds.conf
 [SQL7]
     host = 192.0.1.27
     port = 1433
     tds version = 7.0
     client charset = EUC-KR


    
    
    

 

by 맥가이버 | 2010/02/12 09:54 | 트랙백 | 덧글(0)

서버이름을 바꿀때 조치사항

--
-- 서버이름을 바꾸었다 !!
--
EXEC sp_dropserver 'OLD-SERVER' -- Your_OLD_Computer_Name
GO

EXEC sp_addserver 'NEW-SERVER' , 'local'  -- Your_NEW_Computer_Name'
GO

-- Restart your SQL Server service. Connect using Query
-- Analyzer and run the following command (It should
-- output the new server name):

SELECT @@SERVERNAME
GO


--

by 맥가이버 | 2010/01/18 10:44 | 트랙백 | 덧글(0)

코드로 속성(style, 한글제어)제어하기


  asp:textbox의  style="ime-mode=active; "를 추가하면 한글상태로 입력을 대기하게 된다.


  문제는 컴파일시 알수없는 속성이라고 에러가 나기 때문에 런타임시 코드로 넣어서 해결했다
   
   SearchTxt.Style.Add( "ime-mode", "active");



by 맥가이버 | 2009/12/24 08:50 | 트랙백 | 덧글(0)

GridView의 이벤트를 사용한 양식 제어에 유용한 링크

GridView의 이벤트를 사용한 양식 제어에 유용한 링크

Take Row-Level Control of Your GridView

by 맥가이버 | 2009/12/21 17:21 | 트랙백 | 덧글(0)

Master Page사용시의 Form Default Buttion 지정


웹폼에서 엔터키를 치면 전혀 반응이 없거나 이상한 동작으로 하게되는 경우가 많아서

Form에 디폴트버튼을 지정하면 된다.

  <form defaultbutton="button1" runat="server">
      <asp:textbox id="textbox1" runat="server"/>
      <asp:textbox id="textbox2" runat="server"/>
      <asp:button id="button1" text="Button1" runat="server"/>
  
      <asp:panel defaultbutton="button2" runat="server">
          <asp:textbox id="textbox3" runat="server"/>
          <asp:button id="button2" runat="server"/>
      </asp:panel>
  
  </form> 


헌데 마스터페이지를 지정하면 폼문이 마스터페이지에 있어서 접근이 안된다.  
그래서 코드로 지정해주면 해결된다.

    protected void Page_Load(object sender, EventArgs e)
    {
          this.Form.DefaultButton = this.button2.UniqueID;

by 맥가이버 | 2009/12/18 18:33 | 트랙백 | 덧글(0)

◀ 이전 페이지          다음 페이지 ▶