Rocket Search Docs – Installation und Konfiguration für SUSE Linux Enterprise Server und OpenSUSE

You are viewing an old revision of this post, from June 15, 2018 @ 07:28:20. See below for differences between this version and the current revision.

Post Revisions:

Changes:

June 15, 2018 @ 07:28:20Current Revision
Content
  <p align="center"><span style="font-family: Linux Biolinum G;"><span style="font-size: xx-large;">ROCKET SEARCH</span></span></p>
  <p align="center"><span style="font-family: Linux Biolinum G;">Installation und Konfiguration für SUSE Linux Enterprise Server und OpenSUSE</span></p>
  <p style="text-align: center;">/ \
  | |
  | |
  | |
  /____\
  ###
  #</p>
  <img class="size-full wp-image-2003" src="http://mooreblog.ddns.net/ wp-content/uploads/ 2018/06/rs.png" alt="rs" width="1678" height="184" />
  <p align="left"><span style="font-family: Linux Biolinum G;">Easy Setup mit „<a href="http:// rocketsearch.ddns.net:8081/ setup_rs_self_ compiled_with_ zypper.sh">setup_rs_self_ compiled_with_ zypper.sh</a>“ oder wie folgt manuell</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"> </span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>LibreSSL< /b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">lynx https://www.libressl.org/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">wget http://ftp.openbsd.org/ pub/OpenBSD/LibreSSL/libressl- 2.3.0.tar.gz</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">Integritätsprüfung:</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"> curl --insecure https://ftp.openbsd.org/ pub/OpenBSD/LibreSSL/SHA256 | grep -i libressl- 2.5.4.tar.gz</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"> sha256sum libressl-2.5.4.tar.gz</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">tar -xzf libressl-2.3.0.tar.gz</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cd libressl-2.3.0/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">./configure --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/usr/lib64 --includedir= /usr/include --enable-windows-ssp --enable-extratests"</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">make</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">make install</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cp -frv crypto/.libs/* /lib</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cp -frv crypto/.libs/* /lib64/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cp -frv include/* /usr/include/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>Samba< /b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">zypper install libacl-devel python-devel gnutls-devel gnutls libacl-devel openldap2-devel</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">https://download.samba.org/ pub/samba/stable/ samba-4.8.2.tar.gz</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">tar -xzf samba-4.8.2.tar.gz </span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cd samba-4.8.2/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">./configure --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc/samba --localstatedir=/var --libdir=/usr/lib64 --includedir= /usr/include</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">make</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">mkdir /etc/samba</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">mkdir /var/log/samba</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">make install</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">mkdir /var/locks/usershares</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">chown -R root:root /var/locks/usershares</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">chmod -R 600 /var/locks/usershares</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">chmod -R +t /var/locks/usershares</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">mount -t cifs //&lt;Windows Server&gt;/&lt;Share&gt; /mnt/smb_share --read-only -o user=&lt;AD user&gt;</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">Ggf. fortfahren falls mehr Netzwerkverzeichnisse angebunden werden sollen</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>NFS< /b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">zypper install nfs-client nfs-kernel-server</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">oder manuell kompilieren. Zusätzliche Komponenten.</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">zypper install libudev-devel </span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">zypper install systemd-devel</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">LVM2.2.02.177/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">gss-1.0.3/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">keyutils- 1.5.10/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">krb5-1.16.1/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">libevent- 2.1.8-stable/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">libgssglue- 0.4/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">libnfsidmap- 0.27/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">librpcsecgss- 0.19/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">libtirpc- 1.0.3/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">nfs-utils- 2.3.2/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">rpcbind-0.2.4/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">util-linux- 2.32/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">mount -t nfs &lt;NFS Server&gt;:/&lt;Share&gt; /mnt/nfs_share --read-only -o noacl,nocto,noatime,nodiratime,soft,intr</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>Block RAM Device (für excel Libreoffice)< /b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">256 MB RAM Device</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">modprobe brd rd_size=256000
  ls -al /dev/ram*
  mkfs.ext3 /dev/ram0
  mount /dev/ram0 /tmp/ram_dev</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>Timeout< /b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">timeout --version
  </span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>Xargs< /b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">xargs –version</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>Find< /b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">find –version</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>nginx< /b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">wget http://nginx.org/ download/nginx- 1.14.0.tar.gz
  tar -xzf nginx-1.14.0.tar.gz
  cd nginx-1.14.0/
  mkdir -p /usr/local/nginx/sbin
  ./configure --prefix=/usr/local/nginx --sbin-path=/ usr/local/nginx/sbin
  make
  make install
  ln -s /usr/local/nginx/sbin/nginx /usr/sbin/nginx
  cp -frv nginx.conf /usr/local/ngingx/ conf/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>PHP für nginx</b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">libxml2:</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">wget ftp://xmlsoft.org/ libxml2/libxml2- 2.7.1.tar.gz</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">tar -xvzf libxml2-2.7.1.tar.gz</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cd libxml2-2.7.1</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">./configure --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/usr/lib64 --includedir= /usr/include"</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">make</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">make install</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">
  libxslt:</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">git clone https://gitlab.gnome.org/ GNOME/libxslt.git
  cd libxslt
  ./autogen.sh
  ./configure --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/usr/lib64 --includedir= /usr/include
  make
  make install </span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">nginx:</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">tar -xzf php-7.2.5.tar.gz
  cd php-7.2.5
  mkdir -p /usr/local/nginx/php
  sed -i 's/defined (LIBRESSL_VERSION_ NUMBER)/(defined(LIBRESSL_ VERSION_NUMBER) \&amp;\&amp; LIBRESSL_VERSION_NUMBER &lt; 0x20700000L)/g' ext/openssl/openssl.c
  ./configure --with-openssl --with-zlib --enable-calendar --enable-mbstring --enable-zip --with-gd --with-gettext --enable-bcmath --enable-sockets --with-xsl --enable-fpm
  make
  make test
  make install
  </span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cp -frv php.ini-production /usr/local/lib64/ php.ini</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">php-cgi -b 127.0.0.1:9000 &amp;</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">nginx</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">Test via Browser</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">http://&lt; IP&gt;/info.php</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>redis< /b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">wget http://download.redis.io/ releases/redis- 4.0.9.tar.gz
  tar -xzf redis-4.0.9.tar.gz
  cd redis-4.0.9
  make
  make install</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">redis-server &amp;</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">redis-cli config set save ""</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">redis-cli config set appendonly no</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">/usr/local/ bin/redis-cli config set protected-mode no</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">swapoff -a</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">echo 1 &gt; /proc/sys/vm/ overcommit_memory</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">echo never &gt; /sys/kernel/mm/ transparent_hugepage/ enabled</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">echo 1 &gt; /proc/sys/net/ ipv4/tcp_tw_reuse</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>LibreOffice< /b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">zypper install libreoffice</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>wine< /b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">zypper install gcc-32bit gcc-c++-32bit gcc-go-32bit gcc7-c++-32bit libX11-devel-32bit libXRes1-32bit libXres-devel-32bit freetype2-devel-32bit libftgl2-32bit libXrender-devel-32bit libxml2-2-32bit libxml2-devel-32bit \</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">libxml++-2_6-2-32bit libxslt-devel-32bit libgnutls-devel-32bit libjpeg62-32bit libjpeg62-devel-32bit libjpeg62-devel-32bit libtiff5-32bit \</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">libpng16-devel-32bit libpng12-devel-32bit png++-devel libpng16-compat-devel-32bit libpng16-tools \</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">libgnutls-devel-32bit Mesa-libGL1-32bit openldap2-devel-32bit libXcursor-devel-32bit libXi-devel-32bit libxshmfence-devel \</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">libxcb-shape0-32bit libXxf86vm-devel-32bit libXrandr-devel-32bit libXfixes-devel-32bit libXinerama-devel-32bit libXcomposite-devel-32bit \</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">libXrandr-devel-32bit libglue-devel-32bit libOSMesa-devel-32bit opencl-cpp-headers libclc libpcap-devel-32bit libdbus-c++-1-1-32bit \</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">libglut3-32bit libOpenCL1 libdbus-c++-glib-1-1-32bit libncurses5-32bit libv4l-devel-32bit<u><b> </b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">w</span><span style="font-family: Linux Biolinum G;">get https://dl.winehq.org/ wine/source/3.0/ wine-3.0.tar.xz</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">tar -xf wine-3.0.tar.xz</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cd wine-3.0</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">./configure --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/usr/lib64 –includedir= /usr/include</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">make</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">make install</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>Boost Libraries</b> </u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">wget https://dl.bintray.com/ boostorg/release/ 1.67.0/source/ boost_1_67_0.tar.gz
  tar -xzf boost_1_67_0.tar.gz
  cd boost_1_67_0
  ./bootstrap.sh
  ./b2 install --prefix=/usr/<u><b>
  </b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>ICU4C< /b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">http://download.icu- project.org/files/icu4c/61.1/ icu4c-61_1-src.tgz</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">tar -xzf icu4c-61_1-src.tgz</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cd icu/source</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">chmod +x runConfigureICU configure install-sh</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">./runConfigureICU Linux</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">make</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">make install</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>Libmagic (file)</b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">wget ftp://ftp.astron.com/ pub/file/file-5.33.tar.gz
  tar -xzf file-5.33.tar.gz
  cd file-5.33/
  ./configure --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/usr/lib64 --includedir= /usr/include
  make
  make install
  file --version </span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>gcc/ g++</b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">g++ --version</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>cpp redis</b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">git clone https://github.com/ Cylix/cpp_redis.git
  cd cpp_redis
  git submodule init &amp;&amp; git submodule update
  mkdir build &amp;&amp; cd build
  cmake .. -DCMAKE_BUILD_ TYPE=Release
  make
  make install</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>JsGrid< /b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">wget https://github.com/ tabalinas/jsgrid/archive/ v1.5.3.tar.gz</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">tar -xzf v1.5.3.tar.gz</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cp -frv jsgrid-1.5.3 /usr/local/nginx/ html/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cd /usr/local/nginx/ html/</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">mv jsgrid-1.5.3 jsgrid</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;"><u><b>Rocket Search</b></u></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">mkdir /etc/rs</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">Alle Rocket Search Binaries nach /usr/bin kopieren</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">Falls nur der Quellcode <span lang="en-US">z</span>ur <span lang="en-US"> Verf</span><span lang="de-DE"> ügung</span> steht, diesen einfach kompilieren</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">g++-7 -O3 -fPIC -Wall -lpthread wrapper.cpp -o wrapper;</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">g++-7 -O3 -fPIC -Wall read_file_infos.cpp -lcpp_redis -ltacopie -pthread -lboost_system -lboost_filesystem -lmagic -lssl -lcrypto -licui18n -licuuc -licudata -o read_file_infos;</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">g++-7 -O3 -Wall -lpthread client_3.cpp -o client_3</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cp -frv read_file_info /usr/bin</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cp -frv wrapper /usr/bin</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cp -frv client_3 /usr/bin</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cp -frv get_exe_dll_info_v2.exe /usr/bin</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">Konfig File</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cp -frv config.cfg /<span lang="en-US"> etc/rs</span></span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">html kopieren</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cp -frv client.php/usr/ local/nginx/html</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cp -frv back.css /usr/local/nginx/ html</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cp -frv button.css /usr/local/nginx/ html</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cp -frv css-input.css /usr/local/nginx/ html</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">cp -frv text.css /usr/local/nginx/ html</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">jenachdem wo die Datenbank läuft den Code anpassen</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">sed -i 's/172.17.190.78/ 127.0.0.1/g' client.php</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">Rocket Search File Indexer Durchlauf starten.</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">wrapper &lt;Pfad&gt; &lt;Anzahl Prozesse&gt;</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">z.B. wrapper /mnt 4</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">Zusatztips</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">Bandbreitenbegrenzug</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">
  #QoS fuer SMB und NFS
  tc qdisc del dev eth0 root
  tc qdisc add dev eth0 root handle 1:0 htb default 10
  #upload (OUTPUT)
  tc class add dev eth0 parent 1:0 classid 1:123 htb rate 5mbit ceil 5mbit
  tc filter add dev eth0 parent 1: prio 0 protocol ip handle 123 fw flowid 1:123
  #download (INPUT)
  tc class add dev eth0 parent 1:1 classid 1:456 htb rate 5mbit ceil 5mbit
  tc filter add dev eth0 parent 1: prio 0 protocol ip handle 456 fw flowid 1:456
  #
  tc qdisc show dev eth0
  tc class show dev eth0
  tc filter show dev eth0
  tc -s -d qdisc show dev eth0
 #
  iptables -F -t mangle
  iptables -t mangle -A INPUT -d 172.17.190.78 -s 172.17.190.6 -j MARK --set-mark 456
  iptables -t mangle -A INPUT -d 172.17.190.78 -s 172.17.190.12 -j MARK --set-mark 456
  #</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">#Traffic Controll für SMB
  iptables -t mangle -A OUTPUT -p tcp --dport 445 -j MARK --set-mark 123</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">#Traffic Controll für NFSv4
  iptables -t mangle -A OUTPUT -p tcp --dport 2049 -j MARK --set-mark 123
  iptables -L -v -n -t mangle
  </span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">Status der Datenbank</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">redis-cli dbsize</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">redis-cli info memory</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">redis-cli –stat</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">redis-cli keys “*“ | tail</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">Beobachtung der Prozesse</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">watch -n 1 ‘ ps -ef | grep -iE "timeout|find|xargs|wrapper|read_file" ‘</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">Master Start</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">#RAM Filesystem####################################################################</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">mkdir /tmp/ram_dev</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">modprobe brd rd_size=256000 </span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">mkfs.ext3 -F /dev/ram0
  ls -al /dev/ram*
  mount /dev/ram0 /tmp/ram_dev
  ####################################################################################</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">#</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">#redis##############################################################################</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">redis-server &amp;</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">sleep 10</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">redis-cli config set save ""</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">redis-cli config set appendonly no</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">redis-cli config set protected-mode no</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">swapoff -a</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">echo 1 &gt; /proc/sys/vm/ overcommit_memory</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">echo never &gt; /sys/kernel/mm/ transparent_hugepage/ enabled</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">echo 1 &gt; /proc/sys/net/ ipv4/tcp_tw_reuse</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">####################################################################################</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">#</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">#nginx####################################################################################</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">nginx</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">php-cgi -b 127.0.0.1:9000 &amp;</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">#####################################################################################</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">Troubleshooting</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">Fall nicht neu gelinkt wurde die Libs sysmlinken.</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">ldd read_file_info</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">ln -s /usr/lib64/libssl.so.45 /usr/lib64/libssl.so.44</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">ln -s /usr/lib64/libcrypto.so.43 /usr/lib64/libcrypto.so.42</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">ln -s /usr/lib64/libicui18n.so.60.2 /usr/lib64/libicui18n.so.61</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">ln -s /usr/lib64/libicudata.so.60.2 /usr/lib64/libicudata.so.61</span></p>
  <p align="left"><span style="font-family: Linux Biolinum G;">ln -s /usr/lib64/libboost_ system.so.1.66.0 /usr/lib64/libboost_ system.so.1.61.0</span></p>

Note: Spaces may be added to comparison text to allow better line wrapping.

Tags: