FlexNet 서버 설치
이 페이지에서는 Windows 및 Linux 운영 체제에 FlexNet 서버를 설치하기 위한 지침을 제공합니다.
Windows
Windows 운영 체제에 FlexNet 서버를 설치하려면 다음 단계를 수행합니다.
2. <new_folder>를 만들고 다운로드한 파일을 해당 폴더에 복사합니다. 예: C:\Program Files\PTC
3. 다운로드한 아카이브를 <new_folder>에 압축을 풉니다.
4. <new_folder>\PTCEswlm\ptc_e\ptc_e.exe 파일을 <new_folder>\PTCEswlm\bin으로 이동합니다.
5. 받은 라이선스 패키지를 <new_folder>에 압축을 풉니다.
6. <new_folder>의 .lic 파일을 편집하고 SERVER로 시작하는 라인에 라이선스 서버의 호스트 이름을 삽입합니다.
예: SERVER WrongHostName 00246735CC83 라인을 SERVER CorrectsHostName 00246735CC83으로 대체해야 합니다.
7. 다음과 같이 FlexLM server for PTC 서비스를 작성합니다.
a. 관리자로 <new_folder>\PTCEswlm\bin\lmtools.exe 명령을 실행하여 lmtools를 시작합니다.
b. Config Services 탭으로 이동합니다.
c. 새 서비스 FlexLM server for PTC를 작성합니다.
d. lmgrd.exe 파일의 위치(< new_folder >\PTCEswlm\bin\)로 이동합니다.
e. .lic 파일의 위치로 이동합니다. <new_folder>에 있어야 합니다.
f. Use ServicesStart Server at Power Up 확인란을 선택합니다.
g. Save Service를 클릭합니다.
h. Windows Services 구성으로 이동하여 > FlexLM server for PTC service를 마우스 오른쪽 버튼으로 클릭하고 > Properties를 클릭합니다.
a. General > Startup Type 드롭다운 메뉴 > Automatic을 클릭합니다.
b. Log On > Local System Account를 클릭합니다.
c. Apply > OK를 클릭합니다.
8. FlexLM server for PTC 서비스를 시작합니다.
Linux
Redhat 기반 Linux 배포에 FlexNet을 설치하려면 다음 단계를 수행합니다.
1. 설치 옵션을 설정합니다.
BASEDIR="/etc/flexnet/"
CFGFILE="/etc/flexnet/flexnet.cfg"
LOGFILE="/etc/flexnet/flexnet.log"
LICFILE="/etc/flexnet/flexnet.lic"
DOMAIN="FLEXNET.CODEBEAMER.COM"
HOSTID="0123456789AB"
2. FlexNet 서버를 설치합니다.
# install dependencies
yum -y install redhat-lsb || ln -s /lib64/ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.3
## Note: If the above fails, you will probably be unable to run lmgrd (No such file or directory error)
# Download and install FlexNet Server
mkdir -p "$BASEDIR"
cd "$BASEDIR"
FLEXNET_DOWNLOAD_URL="[https://download.ptc.com/download2/products/FLEXnet/PTC_E_11.19.1.0_Linux.zip]"
wget $${FLEXNET_DOWNLOAD_URL}
unzip $${FLEXNET_DOWNLOAD_URL##*/}
rm -rf $${FLEXNET_DOWNLOAD_URL##*/}
mv PTCEswlm/* "$BASEDIR"
ln -s "$BASEDIR/ptc_e/ptc_e" "$BASEDIR/bin/ptc_e"
rm -rf PTCEswlm
# set hostname
hostname -b $DOMAIN
3. FlexNet을 서비스로 구성합니다.
# Create FlexNet user
useradd flexnet -c "FlexNet Service User" -s /sbin/nologin -d $BASEDIR
# set permission on files
## Note: You need to ensure you license file is in place
touch "$LOGFILE" "$CFGFILE"
chown flexnet: "$LOGFILE"
chown flexnet: "$LICFILE"
chown flexnet: "$CFGFILE"
chown -R flexnet "$BASEDIR/"
# create config
cat > "$CFGFILE" <<EOF
LOGFILE="$LOGFILE"
LICFILE="$LICFILE"
EOF
# create systemd file
cat > /etc/systemd/system/flexnet.service <<EOF
[Unit]
Description=FlexNet Licence Server
Requires=network.target
After=local_fs.target network.target
[Service]
EnvironmentFile=$CFGFILE
Type=simple
User=flexnet
Group=flexnet
Restart=always
WorkingDirectory=$BASEDIR
ExecStart=$BASEDIR/bin/lmgrd -c \${LICFILE} -l +\${LOGFILE} -z -2 -p -local
ExecStop=$BASEDIR/bin/lmgrd lmdown -c \${LICFILE}
SuccessExitStatus=15
[Install]
WantedBy=multi-user.target
EOF
# enable the service
systemctl daemon-reload
systemctl enable flexnet
systemctl start flexnet
도움이 되셨나요?