라이브러리

[APACHE_CONFIGURE] --target=TARGET - TARGET 시스템을 위한 컴파일러를 만들 때 사용한다. 기본값은 HOST이다.




APACHE CONFIGURE에서 --target=TARGET은 Apache HTTP Server를 설치 및 구성할 때 사용되는 옵션입니다. 이 옵션은 Apache를 설치할 때 특정 구성 파일을 생성하거나 업데이트하는 데 사용됩니다.

--target=TARGET의 기본값

Apache HTTP Server를 설치할 때 기본적으로는 `--target=etc` 옵션이 사용됩니다. 이 옵션은 Apache의 기본 구성 파일을 `/etc/apache2` 디렉토리에 생성합니다.

--target=TARGET 옵션의 사용 예

아래는 Apache HTTP Server를 설치할 때 `--target` 옵션을 사용하는 예입니다.

#hostingforum.kr
bash

sudo apt-get install apache2



이 명령어는 Apache HTTP Server를 설치할 때 기본적으로 `/etc/apache2` 디렉토리에 구성 파일을 생성합니다.

#hostingforum.kr
bash

sudo apt-get install apache2 --target=/var/www



이 명령어는 Apache HTTP Server를 설치할 때 `/var/www` 디렉토리에 구성 파일을 생성합니다.

--target=TARGET 옵션의 사용 예시

아래는 Apache HTTP Server를 설치할 때 `--target` 옵션을 사용하는 예입니다.

#hostingforum.kr
bash

sudo apt-get install apache2 --target=/var/www



이 명령어는 Apache HTTP Server를 설치할 때 `/var/www` 디렉토리에 구성 파일을 생성합니다.

#hostingforum.kr
bash

sudo apt-get install apache2 --target=/usr/local/apache2



이 명령어는 Apache HTTP Server를 설치할 때 `/usr/local/apache2` 디렉토리에 구성 파일을 생성합니다.

--target=TARGET 옵션의 사용 예시 (수정된 구성 파일)

아래는 Apache HTTP Server를 설치할 때 `--target` 옵션을 사용하는 예입니다.

#hostingforum.kr
bash

sudo apt-get install apache2 --target=/var/www --config-file=/etc/apache2/apache2.conf



이 명령어는 Apache HTTP Server를 설치할 때 `/var/www` 디렉토리에 구성 파일을 생성하고 `/etc/apache2/apache2.conf` 파일을 사용합니다.

#hostingforum.kr
bash

sudo apt-get install apache2 --target=/usr/local/apache2 --config-file=/usr/local/apache2/apache2.conf



이 명령어는 Apache HTTP Server를 설치할 때 `/usr/local/apache2` 디렉토리에 구성 파일을 생성하고 `/usr/local/apache2/apache2.conf` 파일을 사용합니다.

--target=TARGET 옵션의 사용 예시 (수정된 구성 파일 및 디렉토리)

아래는 Apache HTTP Server를 설치할 때 `--target` 옵션을 사용하는 예입니다.

#hostingforum.kr
bash

sudo apt-get install apache2 --target=/var/www --config-file=/etc/apache2/apache2.conf --docroot=/var/www/html



이 명령어는 Apache HTTP Server를 설치할 때 `/var/www` 디렉토리에 구성 파일을 생성하고 `/etc/apache2/apache2.conf` 파일을 사용하며 `/var/www/html` 디렉토리를 사용합니다.

#hostingforum.kr
bash

sudo apt-get install apache2 --target=/usr/local/apache2 --config-file=/usr/local/apache2/apache2.conf --docroot=/usr/local/apache2/html



이 명령어는 Apache HTTP Server를 설치할 때 `/usr/local/apache2` 디렉토리에 구성 파일을 생성하고 `/usr/local/apache2/apache2.conf` 파일을 사용하며 `/usr/local/apache2/html` 디렉토리를 사용합니다.

--target=TARGET 옵션의 사용 예시 (수정된 구성 파일 및 디렉토리, 그리고 다른 옵션)

아래는 Apache HTTP Server를 설치할 때 `--target` 옵션을 사용하는 예입니다.

#hostingforum.kr
bash

sudo apt-get install apache2 --target=/var/www --config-file=/etc/apache2/apache2.conf --docroot=/var/www/html --enable-modules=most --enable-mpms-shared=all



이 명령어는 Apache HTTP Server를 설치할 때 `/var/www` 디렉토리에 구성 파일을 생성하고 `/etc/apache2/apache2.conf` 파일을 사용하며 `/var/www/html` 디렉토리를 사용하며 `most` 모듈을 활성화하고 `all` MPMS를 활성화합니다.

#hostingforum.kr
bash

sudo apt-get install apache2 --target=/usr/local/apache2 --config-file=/usr/local/apache2/apache2.conf --docroot=/usr/local/apache2/html --enable-modules=most --enable-mpms-shared=all



이 명령어는 Apache HTTP Server를 설치할 때 `/usr/local/apache2` 디렉토리에 구성 파일을 생성하고 `/usr/local/apache2/apache2.conf` 파일을 사용하며 `/usr/local/apache2/html` 디렉토리를 사용하며 `most` 모듈을 활성화하고 `all` MPMS를 활성화합니다.

이러한 예시는 Apache HTTP Server를 설치할 때 `--target` 옵션을 사용하는 방법을 보여줍니다. 이 옵션은 Apache의 기본 구성 파일을 생성하거나 업데이트하는 데 사용됩니다.
  • profile_image
    나우호스팅 @pcs8404 

    호스팅포럼 화이팅!

    댓글목록

    등록된 댓글이 없습니다.

  • 전체 10,077건 / 1 페이지

검색

게시물 검색