Files
caliverse_doc/04. 서버설정/리눅스 설정.md
2025-05-01 07:27:54 +09:00

103 lines
2.2 KiB
Markdown

# 서버 리눅스 설정
1. 자동 설치 파일 및 설명
2 ~ 5 번까지 실행 스크립트
> 실행 파일 : \Server\Doc\4. 서버설정\Shell Script\copy_service.sh
>
> 설명 파일 : \Server\Doc\4. 서버설정\Shell Script\Readme - copy_service.sh
2. Ubuntu 22.04 사용
```
sudo apt-get update && sudo apt-get upgrade -y
```
3. OpenSSL 설치
https://www.openssl.org/source/old/1.0.2/
```
sudo apt-get install -y build-essential zlib1g-dev
wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz --no-check-certificate
tar -xvzf openssl-1.0.2u.tar.gz
cd openssl-1.0.2u
sudo ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib
sudo make
sudo make install
```
4. .Net 설치 (8.0)
https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
```
sudo apt-get install -y dotnet-sdk-8.0
```
5. unixODBC 설치
```
sudo apt-get install -y unixodbc-dev
```
6. ProudNet 을 위한 symbolic link
{Path} : 실행파일 위치
```
ln -s /usr/local/ssl/lib/libcrypto.so.1.0.0 {Path}/libcrypto.so.10
ln -s /usr/local/ssl/lib/libssl.so.1.0.0 {Path}/libssl.so.10
ln -s /usr/lib/x86_64-linux-gnu/libodbc.so.2.0.0 {Path}/libodbc.so.2
```
7. ProudNet License 인증
Server\ThirdPartyPackages\ProudNet\util 실행파일 존재
Server\Security\ProudNet-LIcenseKey 라인선스 파일 존재
{LicensekeyFile} : 라이센스 키가 들어있는 txt 파일
```
sudo ./PNLicenseAuth {LicensekeyFile}
```
8. fluentd 설치
```
sudo curl -fsSL https://toolbelt.treasuredata.com/sh/install-ubuntu-jammy-fluent-package5-lts.sh | sh
sudo fluent-gem install fluent-plugin-mongo
```
9. Core Dump
```
ulimit -c unlimited
sudo vi /etc/security/limits.conf
```
> 해당 주석 밑에 내용 추가
>
> ```
> # <domain> <type> <item> <value>
> * - core unlimited
> ```
```
sudo su -
echo core.%e.%p > /proc/sys/kernel/core_pattern
exit
```
```
sudo vi /etc/sysctl.conf
```
> 해당 주석 밑에 내용 추가
>
> ```
> #kernel.domainname = example.com
> kernel.core_pattern = core.%e.%p
> ```