echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
저 위에 걸 하기 싫다면
sudo vi /etc/profile(전 사용자) 또는 현재 사용자에만 설정하고 싶다면 sudo vi ~/.bashrc 후
맨 밑에
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)" 한 후 :wq! 로 저장 후에
source /etc/profile 또는 source ~/.bashrc
rbenv install 2.6.10
rbenv global 2.6.10
ruby --version
2.6.10
sudo ./gem install nokogiri --platform=ruby
sudo ./gem install <plugin-name> [option]
sudo ./gem install fluentd -v 1.15.0 # -v 옵션 없이 install 시 최신 버전으로 설치됨
sudo ./gem install fluent-plugin-azurestorage
sudo ./gem install fluent-plugin-azure-loganalytics
# command : sudo ./fluentd -h 누르면 나옴
Usage: fluentd [options]
-s, --setup [DIR=/etc/fluent] 디렉토리에 샘플 구성 파일 설치
-c, --config PATH 설정파일 경로 (default: /etc/fluent/fluent.conf)
--dry-run 설정파일 검사(fluentd 실행 x)
--show-plugin-config=PLUGIN [DEPRECATED] Show PLUGIN configuration and exit(ex: input:dummy)
-p, --plugin DIR add plugin directory
-I PATH add library path
-r NAME load library
-d, --daemon PIDFILE fluentd 데몬화
--under-supervisor run fluent worker under supervisor (this option is NOT for users)
--no-supervisor run fluent worker without supervisor
--workers NUM specify the number of workers under supervisor
--user USER user 변경
--group GROUP group 변경
--umask UMASK change umask
-o, --log PATH fluentd 로그 파일 경로
--log-rotate-age AGE generations to keep rotated log files
--log-rotate-size BYTES sets the byte size to rotate log files
--log-event-verbose enable log events during process startup/shutdown
-i CONFIG_STRING, inline config which is appended to the config file on-the-fly
--inline-config
--emit-error-log-interval SECONDS
suppress interval seconds of emit error logs
--suppress-repeated-stacktrace [VALUE]
suppress repeated stacktrace
--without-source invoke a fluentd without input plugins
--use-v1-config Use v1 configuration format (default)
--use-v0-config Use v0 configuration format
--strict-config-value Parse config values strictly
--enable-input-metrics Enable input plugin metrics on fluentd
--enable-size-metrics Enable plugin record size metrics on fluentd
-v, --verbose increase verbose level (-v: debug, -vv: trace)
-q, --quiet decrease verbose level (-q: warn, -qq: error)
--suppress-config-dump suppress config dumping when fluentd starts
-g, --gemfile GEMFILE Gemfile path
-G, --gem-path GEM_INSTALL_PATH Gemfile install path (default: $(dirname $gemfile)/vendor/bundle)
--conf-encoding ENCODING specify configuration file encoding
--disable-shared-socket Don't open shared socket for multiple workers