{"id":217567,"date":"2014-04-08T07:54:03","date_gmt":"2014-04-08T03:54:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=217567"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=217567","title":{"rendered":"<span class=\"post_title\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 InterSystems Cach\u00e9 \u0438 GlobalsDB \u043d\u0430 Linux<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0422\u0430\u043a \u043a\u0430\u043a \u0443 \u0442\u0435\u0445, \u043a\u0442\u043e \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b InterSystems \u043d\u0430 Linux, \u0447\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, \u044f \u0440\u0435\u0448\u0438\u043b \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0438\u0437 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 Linux \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 2014.1 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f CentOS 6.4, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0431\u0443\u0434\u0443 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u0439 \u041e\u0421 \u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430 Ubuntu \u043d\u0438\u0447\u0435\u043c \u043d\u0435 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f (\u0445\u043e\u0442\u044f \u043e\u043d\u0430 \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0435\u0439\u0447\u0430\u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u043e\u0439 InterSystems).<\/p>\n<h4>\u0427\u0442\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f<\/h4>\n<p>  \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 InterSystems Cach\u00e9, \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0433\u043e \u043d\u0435\u0442, \u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0435\u0433\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c <a href=\"http:\/\/www.intersystems.ru\/cache\/downloads\/index.html\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u041e\u0434\u043d\u043e\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u0434\u043b\u044f RedHat, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 tar.gz. \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0430 Ubuntu \u043d\u0443\u0436\u043d\u043e \u0431\u0440\u0430\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e \u0434\u043b\u044f SuSE Linux. \u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f 2014.1.<br \/>  \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 InterSystems GlobalsDB <a href=\"http:\/\/globalsdb.org\/downloads\">\u0437\u0434\u0435\u0441\u044c<\/a> \u043a\u0430\u0447\u0430\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e \u0414\u043b\u044f RedHat, \u043d\u0430 \u0432\u044b\u0431\u043e\u0440 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f Node.js \u0438\u043b\u0438 Java, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u0432\u0430\u0436\u043d\u043e \u2014 \u043d\u0430 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u0444\u0430\u0439\u043b \u044d\u0442\u043e \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442. <br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>1. \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430<\/h4>\n<p>  \u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043d\u0430\u0447\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u043c\u0430\u0448\u0438\u043d\u0443 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Cach\u00e9 \u0438 GlobalsDB. <br \/>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043c shared \u043f\u0430\u043c\u044f\u0442\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b Cach\u00e9 \u0438 GlobalsDB \u043d\u0443\u0436\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u043e\u0431\u044b\u0447\u043d\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 Linux. \u0412 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043e\u0431 \u044d\u0442\u043e\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e <a href=\"http:\/\/docs.intersystems.com\/cache20141\/csp\/docbook\/DocBook.UI.Page.cls?KEY=GCI_unixparms#GCI_unixparms_notes_linux_rh\">\u0437\u0434\u0435\u0441\u044c<\/a>.<br \/>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0432 sysctl, \u044d\u0442\u043e shmall \u0438 shmmax. \u0423 \u043c\u0435\u043d\u044f \u043d\u0430 CentOS 6.5, \u043e\u043d\u0438 \u0443\u0436\u0435 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438 \u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c (\u043d\u043e \u0432\u0430\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f). <br \/>  \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 (\u0437\u0434\u0435\u0441\u044c \u0438 \u0434\u0430\u043b\u0435\u0435, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u043f\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c root):  <\/p>\n<pre><code class=\"bash\">$ sysctl kernel.shmmax kernel.shmmax = 68719476736 $ sysctl kernel.shmall kernel.shmall = 4294967296 <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0432 \u043c\u043e\u0435\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 shmmax \u2014 64GB, shmall \u2014 4Gb. <br \/>  \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:  <\/p>\n<pre><code class=\"bash\">$ sysctl kernel.shmmax=68719476736 $ sysctl kernel.shmall=4294967296 <\/code><\/pre>\n<p>\u0438\u043b\u0438 \u0442\u0430\u043a  <\/p>\n<pre><code class=\"bash\">$ echo 68719476736 &gt; \/proc\/sys\/kernel\/shmmax $ echo 4294967296 &gt; \/proc\/sys\/kernel\/shmall <\/code><\/pre>\n<p>  \u041d\u043e \u0442\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u043f\u0430\u0434\u0443\u0442 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0430\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0432\u0441\u0435\u0433\u0434\u0430, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b <code>\/etc\/sysctl.conf<\/code>. \u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u043b\u0438\u0431\u043e \u043d\u0430\u0439\u0442\u0438 \u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0442\u0430\u043c \u0443\u0436\u0435 \u0435\u0441\u0442\u044c.<\/p>\n<pre><code class=\"bash\"># Controls the maximum shared segment size, in bytes kernel.shmmax = 68719476736  # Controls the maximum number of shared memory segments, in pages kernel.shmall = 4294967296<\/code><\/pre>\n<p>  \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043c \u043f\u0430\u043c\u044f\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442\u0430\u0445):  <\/p>\n<pre><code class=\"bash\">$ ulimit -l 64<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u0434\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438:<\/p>\n<pre><code class=\"bash\">$ ulimit -l 4096000<\/code><\/pre>\n<p>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u0438 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u0435 <code>\/etc\/security\/limits.conf<\/code>  <\/p>\n<pre><code class=\"bash\">root           soft       memlock              4096000 root           hard       memlock              4096000<\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u0441\u0435 \u0432\u043d\u0435\u0441\u0435\u043d\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.<\/p>\n<h4>2. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h4>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043e \u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 Cach\u00e9 \u0438\u043b\u0438 <a href=\"#GlobalsDB\">GlobalsDB<\/a>.<\/p>\n<h6>Cach\u00e9<\/h6>\n<p>\u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0439 tar.gz \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 Cach\u00e9.  <\/p>\n<pre><code class=\"bash\">$ mkdir cache-2014.1.0.608.0su-lnxrhx64 $ tar -zxf cache-2014.1.0.608.0su-lnxrhx64.tar.gz -C .\/cache-2014.1.0.608.0su-lnxrhx64<\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443  <\/p>\n<pre><code class=\"bash\">$ cd cache-2014.1.0.608.0su-lnxrhx64 $ .\/cinstall  Your system type is 'Red Hat Enterprise Linux 6 (x64)'.  Currently defined instances:   Enter instance name:  <\/code><\/pre>\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u043d\u0430\u0448\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u0430 \u043a\u0430\u043a \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u0430\u044f, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b. \u0412\u0432\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0443\u0436\u0435 \u043d\u0430 \u0432\u0430\u0448\u0435 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435. \u0422\u0438\u043f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0434\u0443\u043c\u0430\u044e \u0441\u0442\u043e\u0438\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u044e\u043d\u0438\u043a\u043e\u0434, \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0442\u0430\u0440\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0430 8 \u0431\u0438\u0442, \u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u044e\u043d\u0438\u043a\u043e\u0434, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0447\u0442\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/intersystems-ru\/UConv\">\u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043f\u043e \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438<\/a> \u0441 8 \u0431\u0438\u0442 \u043d\u0430 \u044e\u043d\u0438\u043a\u043e\u0434. \u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439. \u041f\u0440\u0438 \u0442\u0430\u043a\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u0430\u0440\u043e\u043b\u044c SYS \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0430\u043a\u0442\u0438\u0432\u0435\u043d \u043d\u0435\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u043c\u044b\u0439 \u0432\u0445\u043e\u0434. \u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u044c \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre> Enter instance name: CACHE Do you want to create Cache instance 'CACHE' &lt;Yes&gt;?  Enter a destination directory for the new instance. Directory: \/opt\/cache Directory '\/opt\/cache' does not exist. Do you want to create it &lt;Yes&gt;?   ---------------------------------------------------- NOTE: Users should not attempt to access Cache while       the installation is in progress. ----------------------------------------------------   Select installation type.     1) Development - Install Cache server and all language bindings     2) Server only - Install Cache server     3) Custom Setup type &lt;1&gt;?   Disk blocks required  = 2372204 Disk blocks available = 22197288  Do you want to install Cache Unicode support &lt;No&gt;? yes  How restrictive do you want the initial Security settings to be? &quot;Minimal&quot; is the least restrictive, &quot;Locked Down&quot; is the most secure.     1) Minimal     2) Normal     3) Locked Down Initial Security settings &lt;1&gt;?   What group should be allowed to start and stop   this instance? root  Cache did not detect a license key in directory \/opt\/cache\/mgr. Do you want to enter a license key &lt;No&gt;?   Please review the installation options: ------------------------------------------------------------------ Instance name: CACHE Destination directory: \/opt\/cache Cache version to install: 2014.1.0.608.0su Installation type: Development Unicode support: Y Initial Security settings: Minimal User who owns instance: root Group allowed to start and stop instance: root Effective group for Cache processes: cacheusr Effective user for Cache SuperServer: cacheusr SuperServer port: 1972 WebServer port: 57772 JDBC Gateway port: 62972 CSP Gateway: using built-in web server Client components: all ------------------------------------------------------------------  Do you want to proceed with the installation &lt;Yes&gt;? <\/pre>\n<\/div>\n<\/div>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u0435\u044f\u0435\u043c \u0432\u0435\u0440\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u0438 \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u043c\u0441\u044f \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439. \u0414\u043e\u0436\u0438\u0434\u0430\u0435\u043c\u0441\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438.<\/p>\n<pre><code class=\"bash\">Starting up Cache... Once this completes, users may access Cache Starting CACHE using 'cache.cpf' configuration file  Automatically configuring buffers Allocated 351MB shared memory: 256MB global buffers, 24MB routine buffers Creating a WIJ file to hold 31 megabytes of data This copy of Cache has been licensed for use exclusively by: Cache Evaluation Copyright (c) 1986-2014 by InterSystems Corporation Any other use is a violation of your license agreement   You can point your browser to http:\/\/localhost.localdomain:57772\/csp\/sys\/UtilHome.csp to access the management portal.  Installation completed successfully <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u043e\u0439\u0442\u0438 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b Cach\u00e9 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:   <\/p>\n<pre><code class=\"bash\">$ csession cache<\/code><\/pre>\n<p>\u0410 \u0432 \u043f\u043e\u0440\u0442\u0430\u043b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f Cach\u00e9 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 <a href=\"http:\/\/localhost:57772\/csp\/sys\/UtilHome.csp\">http:\/\/localhost:57772\/csp\/sys\/UtilHome.csp<\/a><br \/>  \u0417\u0430\u043f\u0443\u0441\u043a \u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Cach\u00e9 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438:<\/p>\n<pre><code class=\"bash\">$ ccontrol start cache $ ccontrol stop cache <\/code><\/pre>\n<p>\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u2014 \u044d\u0442\u043e \u0438\u043c\u044f \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435.<\/p>\n<p>  <a name=\"GlobalsDB\"><\/a><\/p>\n<h6>GlobalsDB<\/h6>\n<p>  \u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c tar.gz \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 GlobalsDB.  <\/p>\n<pre><code class=\"bash\">$ mkdir globals_2013.2.0.350.0_unix $ tar -zxf globals_2013.2.0.350.0_unix.tar.gz -C .\/globals_2013.2.0.350.0_unix <\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443:<\/p>\n<pre><code class=\"bash\">$ cd .\/globals_2013.2.0.350.0_unix\/kit_unix_globals\/ $ .\/installGlobals   Enter the number for your system:  <\/code><\/pre>\n<p>\u041d\u0430\u043c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u0432\u0432\u0435\u0441\u0442\u0438 \u043d\u043e\u043c\u0435\u0440 \u043d\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430, \u043d\u043e \u0432\u044b\u0431\u043e\u0440\u0430 \u043d\u0435\u0442. \u042d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 CentOS, \u0442\u0430\u043a\u0430\u044f \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043d\u0430 Ubuntu \u0432\u0435\u0440\u0441\u0438\u0438 \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0439 \u043e\u0442 11.04, \u0442\u0430\u043a \u043a\u0430\u043a \u0432 \u043a\u043e\u0434\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a\u0430 \u0435\u0441\u0442\u044c \u0436\u0435\u0441\u0442\u043a\u0430\u044f \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0430 \u043a \u043d\u043e\u043c\u0435\u0440\u0443 \u0432\u0435\u0440\u0441\u0438\u0438. \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u043f\u0430\u0442\u0447. \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0430\u043f\u043a\u0435 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c cplatname.patch <br \/>  <code>$ nano cplatname.patch<\/code><br \/>  \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c:  <\/p>\n<pre><code class=\"bash\">--- cplatname\t2013-05-02 17:50:01.000000000 -0700 +++ cplatname.new\t2014-04-05 11:43:21.676624274 -0700 @@ -114,13 +114,13 @@  \t\t  distName=`cat \/etc\/issue | cut -f1 -d&quot; &quot;`  \t\t  version=`cat \/etc\/issue | cut -f2 -d&quot; &quot; | cut -f1-2 -d&quot;.&quot;`  \t\t  proc=`uname -m` -\t\t  if [ &quot;$distName&quot; = &quot;Ubuntu&quot; -a &quot;$version&quot; = &quot;11.04&quot; -a &quot;$proc&quot; = &quot;x86_64&quot; ] ; then +\t\t  if [ &quot;$distName&quot; = &quot;Ubuntu&quot; -a &quot;$proc&quot; = &quot;x86_64&quot; ] ; then  \t\t    plat=&quot;lnxsusex64&quot;  \t\t  fi  \t\tfi  \t\tif [ -f \/etc\/redhat-release ]  \t\tthen -\t\t    grep -P 'Red Hat Enterprise Linux .* release 6' \/etc\/redhat-release &gt; \/dev\/null 2&gt;&1 +\t\t    grep -P '.* release 6' \/etc\/redhat-release &gt; \/dev\/null 2&gt;&1  \t\t    if [ $? = 0 ]  \t\t    then  \t\t\tproc=`uname -m`<\/code><\/pre>\n<p>  \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/gist.github.com\/daimor\/10005852\">\u0441\u043a\u0430\u0447\u0430\u0442\u044c<\/a> \u0441 GitHubGist <br \/>  \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u0442\u0447, \u043e\u043d \u0440\u0435\u0448\u0438\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043a\u0430\u043a \u0434\u043b\u044f CentOS, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f Ubuntu.  <\/p>\n<pre><code class=\"bash\">$ patch &lt; cplatname.patch<\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443:  <\/p>\n<pre><code class=\"bash\">$ .\/installGlobals   Installing Globals for Red Hat Enterprise Linux 6 (x64) Enter destination directory name for this installation. Directory :<\/code><\/pre>\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 Cach\u00e9, \u0437\u0434\u0435\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a \u043e\u0442 \u043d\u0430\u0441 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0443\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, \u0438 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u0440\u0430\u0437\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 GlobalsDB.<br \/>  \u041c\u043e\u0436\u043d\u043e \u0432\u043e\u0439\u0442\u0438 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b GlobalsDB:  <\/p>\n<pre><code class=\"bash\">$ cd \/opt\/globalsdb\/mgr\/ $ ..\/bin\/cache -s .\/  ^^\/opt\/globalsdb\/mgr\/&gt;w $zv Globals for UNIX (Red Hat Enterprise Linux for x86-64) 2013.2 (Build 350U) Thu May 2 2013 19:28:54 EDT <\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a \u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 GlobalsDB \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438, \u0432 \u043f\u043e\u0434\u043f\u0430\u043f\u043a\u0435 mgr, \u0433\u0434\u0435 \u0431\u044b\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d GlobalsDB:  <\/p>\n<pre><code class=\"bash\">$ cd \/opt\/globalsdb\/mgr\/ $ .\/startGlobals  $ .\/stopGlobals  <\/code><\/pre>\n<p>\u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u0443\u0444\u0435\u0440\u0430 \u0433\u043b\u043e\u0431\u0430\u043b\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 1024MB<\/p>\n<pre><code class=\"bash\">$ .\/startGlobals memory=1024<\/code><\/pre>\n<h4>3. \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043c\u0430\u0448\u0438\u043d\u044b.<\/h4>\n<p>  \u00ab\u0418\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb \u043d\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0443 \u0421\u0423\u0411\u0414 InterSystems \u043d\u0430 Linux, \u0447\u0442\u043e \u0441\u043f\u0440\u0430\u0432\u0435\u0434\u043b\u0438\u0432\u043e \u043a\u0430\u043a \u0434\u043b\u044f Cach\u00e9 \u0442\u0430\u043a \u0438 \u0434\u043b\u044f GlobalsDB.<\/p>\n<h6>Cach\u00e9<\/h6>\n<p>\u0414\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 Cach\u00e9, \u043d\u0430\u0448\u0435\u043b \u043d\u0430 github <a href=\"https:\/\/github.com\/unix-junkie\/ccontrol-scripts\">\u0441\u043a\u0440\u0438\u043f\u0442<\/a> \u043e\u0442 <a href=\"http:\/\/habrahabr.ru\/users\/unix_junkie\/\" class=\"user_link\">unix_junkie<\/a><br \/>  \u043a\u0430\u0447\u0430\u0435\u043c \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e:  <\/p>\n<pre><code class=\"bash\">$ wget https:\/\/raw.githubusercontent.com\/unix-junkie\/ccontrol-scripts\/master\/etc\/init.d\/cache $ cp cache \/etc\/init.d\/cache $ chown root:root \/etc\/init.d\/cache  $ chmod 755 \/etc\/init.d\/cache <\/code><\/pre>\n<p>\u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u0443 cache. \u0422\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 CentOS.  <\/p>\n<pre><code class=\"bash\">$ chkconfig --add cache $ chkconfig --list cache cache          \t0:off\t1:off\t2:off\t3:on\t4:off\t5:on\t6:off<\/code><\/pre>\n<p>\u0410 \u0442\u0430\u043a \u0432 Ubuntu.<\/p>\n<pre><code class=\"bash\">update-rc.d cache defaults <\/code><\/pre>\n<p>\u0417\u0430\u043c\u0435\u0447\u0443, \u0447\u0442\u043e \u0441\u043b\u0443\u0436\u0431\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u043b\u0443\u0436\u0431\u044b InterSystems, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0442\u0430\u043a\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u0435\u0441\u0442\u044c, \u044d\u0442\u043e \u0441\u043b\u0443\u0436\u0431\u0430 ISCAgent. \u0418 \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0442\u043e Cach\u00e9 \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f. \u0422\u0430\u043a\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Cach\u00e9.<\/p>\n<h6>GlobalsDB<\/h6>\n<p>\u0421\u043a\u0440\u0438\u043f\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f Cach\u00e9 \u043d\u0435 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u0434\u043b\u044f GlobalsDB. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0433\u0443 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u0432\u0437\u044f\u0442\u044c \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/gist.github.com\/daimor\/10009450\">\u0437\u0434\u0435\u0441\u044c<\/a>.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">#!\/bin\/bash # ## Example of \/etc\/sysconfig\/globalsdb # ## Globals home directory # GLOBALS_HOME=\/opt\/globalsdb # ## Configure MB of database buffers (default=256) # MEMORY=1024 # ### BEGIN INIT INFO # Provides: GlobalsDB # Required-Start:  # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Starts GlobalsDB # Description: Starts GlobalsDB ### END INIT INFO  . \/etc\/rc.d\/init.d\/functions  [ -f \/etc\/sysconfig\/globalsdb ] && . \/etc\/sysconfig\/globalsdb  if [ &quot;$GLOBALS_HOME&quot; ]; then     if [ ! -d &quot;$GLOBALS_HOME\/mgr&quot; ]; then \techo &quot;$GLOBLAS_HOME\/mgr directory not found!&quot; &gt;&2 ; exit 1     fi     cd $GLOBALS_HOME\/mgr else     echo &quot;GLOBALS_HOME is empty&quot; &gt;&2 ; exit 1 fi  mgrdir=`pwd`  start() { \techo -n &quot;Starting Globals in $mgrdir:&quot; \t \targs=&quot;&quot; \ttest &quot;$MEMORY&quot; && args=$args' memory='$MEMORY \t \t.\/startGlobals quietly $args 1&gt;\/dev\/null 2&gt;\/dev\/null \tstatus=$? \t \tif [ $status -eq 0 ] ; then \t    success \telse  \t    failure \tfi \techo \treturn $status }  stop() { \techo -n &quot;Stopping Globals in $mgrdir: &quot; \t \t.\/stopGlobals 1&gt;\/dev\/null 2&gt;\/dev\/null \tstatus=$? \t \tif [ $status -eq 0 ] ; then \t    success \telse  \t    failure \tfi \techo  \treturn $status }  restart() { \tstop \tstatus=$? \tif [ $status -ne 0 ] ; then \t    return $status \tfi \t \tstart \tstatus=$? \tif [ $status -ne 0 ] ; then \t    return $status \tfi  \treturn ${status} }  status() { \t \t..\/bin\/cache -s . -cV 1&gt;\/dev\/null 2&gt;\/dev\/null \tstatus=$? \tcase $status in \t   225) echo &quot;Globals in $mgrdir is stopped&quot; \t\texit 1 \t\t;; \t    *) \t\techo &quot;Globals in $mgrdir is running&quot; \t\texit 1 \t\t;; \tesac \treturn 0 }  usage() { \techo &quot;Usage: `basename $0` {start|stop|restart|status|help}&quot; \treturn 0 }  if [ $# -ne 1 ] then \tusage \texit 1 fi  case &quot;$1&quot; in \tstart) \t\tstart \t\texit $? \t\t;; \tstop) \t\tstop \t\texit $? \t\t;; \trestart) \t\trestart \t\texit $? \t\t;; \tstatus) \t\tstatus \t\texit $? \t\t;; \thelp) \t\tusage \t\texit $? \t\t;; \t*) \t\tusage \t\texit 1 \t\t;; esac <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<pre><code class=\"bash\">$ wget https:\/\/gist.githubusercontent.com\/daimor\/10009450\/raw\/84856a0c360ebd91ecf442715737f51e81ccf154\/globalsdb $ chmod 755 globalsdb $ chown root:root globalsdb $ cp globalsdb \/etc\/init.d\/globalsdb<\/code><\/pre>\n<p>\u041d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438<\/p>\n<pre><code class=\"bash\"># \u043f\u0443\u0442\u044c \u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u043c\u0443 GlobalsDB, \u0442\u043e\u0442 \u0447\u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 $ echo &quot;GLOBALS_HOME=\/opt\/globalsdb&quot; &gt; \/etc\/sysconfig\/globalsdb # \u0420\u0430\u0437\u043c\u0435\u0440 \u0431\u0443\u0444\u0435\u0440\u0430 \u0433\u043b\u043e\u0431\u0430\u043b\u043e\u0432 \u0432 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442\u0430\u0445, \u0435\u0441\u043b\u0438 \u0432\u0430\u0441 \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 256\u041c\u0411 $ echo &quot;MEMORY=1024&quot; &gt;&gt;\/etc\/sysconfig\/globalsdb <\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441. CentOS.<\/p>\n<pre><code class=\"bash\">$ chkconfig --add globalsdb $ chkconfig --list globalsdb globalsdb      \t0:off\t1:off\t2:off\t3:on\t4:off\t5:on\t6:off<\/code><\/pre>\n<p>Ubuntu<\/p>\n<pre><code class=\"bash\">update-rc.d globalsdb defaults<\/code><\/pre>\n<h4>4. \u0423\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0443 Cach\u00e9<\/h4>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f \u043a \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0443 Cach\u00e9 \u0441 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0438\u043c\u0435\u044f telnet \u0438\u043b\u0438 ssh \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043c\u0430\u0448\u0438\u043d\u0435, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c <code>csession<\/code>. \u041d\u043e \u0442\u0430\u043a\u043e\u0439 \u043f\u0443\u0442\u044c \u043d\u0435 \u0432\u0441\u0435\u043c \u0438 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0443\u0434\u043e\u0431\u0435\u043d. \u042f \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u044e \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0430\u0437\u0443 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b Cach\u00e9. <br \/>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e ssh\/telnet. \u0422\u043e\u0433\u0434\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0431\u043e\u043b\u0447\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b Cach\u00e9. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <code>\/usr\/bin\/cachesession<\/code> \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0435\u0440\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0430\u043d\u0441, \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043d\u0430 \u0441\u0432\u043e\u0439 \u0432\u043a\u0443\u0441. \u0412\u043f\u043b\u043e\u0442\u044c \u0434\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0440\u0430\u0437\u0443 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0440\u0443\u0442\u0438\u043d\u044b.<\/p>\n<pre><code class=\"bash\">#!\/bin\/bash  \/usr\/bin\/csession cache -U USER<\/code><\/pre>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c, \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043f\u0430\u0441\u0442\u044c \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b.<\/p>\n<pre><code class=\"bash\">$ chmod 755 \/usr\/bin\/cachesession $ chown root:root \/usr\/bin\/cachesession <\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/p>\n<pre><code class=\"bash\">$ useradd -s \/usr\/bin\/cachesession cachesession $ passwd cachesession <\/code><\/pre>\n<p>\u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e ssh\/telnet, \u043f\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c cachesession \u043c\u044b \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043f\u0430\u0434\u0435\u043c \u0432 Cach\u00e9.<\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0435, \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u0441\u0442\u0430\u0442\u044c\u044f \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0439.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/217567\/\"> http:\/\/habrahabr.ru\/company\/intersystems\/blog\/217567\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0422\u0430\u043a \u043a\u0430\u043a \u0443 \u0442\u0435\u0445, \u043a\u0442\u043e \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b InterSystems \u043d\u0430 Linux, \u0447\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, \u044f \u0440\u0435\u0448\u0438\u043b \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0438\u0437 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 Linux \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 2014.1 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f CentOS 6.4, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0431\u0443\u0434\u0443 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u0439 \u041e\u0421 \u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430 Ubuntu \u043d\u0438\u0447\u0435\u043c \u043d\u0435 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f (\u0445\u043e\u0442\u044f \u043e\u043d\u0430 \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0435\u0439\u0447\u0430\u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u043e\u0439 InterSystems).<\/p>\n<h4>\u0427\u0442\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f<\/h4>\n<p>  \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 InterSystems Cach\u00e9, \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0433\u043e \u043d\u0435\u0442, \u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0435\u0433\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c <a href=\"http:\/\/www.intersystems.ru\/cache\/downloads\/index.html\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u041e\u0434\u043d\u043e\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u0434\u043b\u044f RedHat, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 tar.gz. \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0430 Ubuntu \u043d\u0443\u0436\u043d\u043e \u0431\u0440\u0430\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e \u0434\u043b\u044f SuSE Linux. \u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f 2014.1.<br \/>  \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 InterSystems GlobalsDB <a href=\"http:\/\/globalsdb.org\/downloads\">\u0437\u0434\u0435\u0441\u044c<\/a> \u043a\u0430\u0447\u0430\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e \u0414\u043b\u044f RedHat, \u043d\u0430 \u0432\u044b\u0431\u043e\u0440 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f Node.js \u0438\u043b\u0438 Java, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u0432\u0430\u0436\u043d\u043e \u2014 \u043d\u0430 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u0444\u0430\u0439\u043b \u044d\u0442\u043e \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442.   <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-217567","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/217567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=217567"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/217567\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=217567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=217567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=217567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}