Rhel6.4 deployment gateone
Check the python version
[root@kurolz gateone] # python-VPython 2.6.6
Get pip and install
[root@kurolz gateone] # wget-- no-check-certificate https://bootstrap.pypa.io/get-pip.py[root@kurolz gateone] # python get-pip.py
Install tornado
[root@kurolz gateone] # pip install tornado [root@kurolz gateone] # python-c "import tornado; print (tornado.version)" 4.5.1
Go to the git website to download git
Https://www.kernel.org/pub/software/scm/git/
Upload to the server and decompress to the current directory
[root@kurolz ~] # ls git*git-2.9.1.tar.gz [root@kurolz ~] # tar-zxvf git-2.9.1.tar.gz
An error occurred during compilation, indicating that there is no c language compiler
[root@kurolz git-2.9.1] #. / configureconfigure: Setting lib to 'lib' (the default) configure: Will try-pthread then-lpthread to enable POSIX Threads.configure: CHECKS for site configurationchecking for gcc... Nochecking for cc... Nochecking for cl.exe... Noconfigure: error: in `/ root/git-2.9.1':configure: error: no acceptable C compiler found in $PATHSee `config.log' for more details
Install gcc first, mount the system disk, and look for the installation package inside
[root@kurolz mnt] # mkdir / mnt/cdrom [root@kurolz mnt] # mount-t iso9660 / dev/cdrom / mnt/cdrommount: block device / dev/sr0 is write-protected Mounting read-only [root@kurolz mnt] # cd / mnt/cdrom/ [root@kurolz cdrom] # lsEFI EULA_pt README RELEASE-NOTES-it-IT.html RELEASE-NOTES-ru-RU.html RPM-GPG-KEY-redhat-releaseEULA EULA_zh RELEASE-NOTES-as-IN.html RELEASE-NOTES-ja-JP.html RELEASE-NOTES-si-LK.html ScalableFileSystemEULA_de GPL RELEASE-NOTES-bn-IN.html RELEASE-NOTES-kn-IN.html RELEASE-NOTES-ta-IN.html ServerEULA_en HighAvailability RELEASE-NOTES-de-DE.html RELEASE-NOTES-ko-KR.html RELEASE-NOTES-te-IN.html TRANS.TBLEULA_es p_w_picpaths RELEASE-NOTES-en-US.html RELEASE-NOTES-ml-IN.html RELEASE-NOTES-zh-CN.htmlEULA_fr isolinux RELEASE-NOTES-es-ES.html RELEASE-NOTES- Mr-IN.html RELEASE-NOTES-zh-TW.htmlEULA_it LoadBalancer RELEASE-NOTES-fr-FR.html RELEASE-NOTES-or-IN.html repodataEULA_ja media.repo RELEASE-NOTES-gu-IN.html RELEASE-NOTES-pa-IN.html ResilientStorageEULA_ko Packages RELEASE-NOTES-hi-IN.html RELEASE-NOTES-pt-BR.html RPM-GPG-KEY-redhat-beta
Install sequentially
[root@kurolz Packages] # rpm-ivh glibc-common-2.12-1.107.el6.x86_64.rpm [root@kurolz Packages] # rpm-ivh kernel-headers-2.6.32-358.el6.x86_64.rpm [root@kurolz Packages] # rpm-ivh libgcc-4.4.7-3.el6.x86_64.rpm [root@kurolz Packages] # rpm-ivh glibc-2.12-1.107.el6.x86_64.rpm [root@kurolz Packages] # rpm-ivh libgomp-4.4.7-3.el6.x86_64.rpm [root@kurolz Packages] # rpm-ivh nscd-2.12-1.107.el6.x8664.rpm [root @ kurolz Packages] # rpm-ivh glibc-headers-2.12-1.107.el6.x86_64.rpm [root@kurolz Packages] # rpm-ivh glibc-devel-2.12-1.107.el6.x86_64.rpm [root@ Kurolz Packages] # rpm-ivh mpfr-2.4.1-6.el6.x86_64.rpm [root@kurolz Packages] # rpm-ivh ppl-0.10.2-11.el6.x86_64.rpm [root@kurolz Packages] # rpm-ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm [root@kurolz Packages] # rpm-ivh cpp-4.4.7-3.el6.x86_64.rpm [root@kurolz Packages] # rpm-ivh gcc -4.4.7-3.el6.x86_64.rpm [root@kurolz Packages] # rpm-ivh libstdc++-4.4.7-3.el6.x86_64.rpm [root@kurolz Packages] # rpm-ivh libstdc++-devel-4.4.7-3.el6.x86_64.rpm [root@kurolz Packages] # which gcc/usr/bin/gcc [root@kurolz Packages] # rpm-Q gccgcc-4.4.7-3.el6.x86_64
Recompile and install git
[root@kurolz ~] # cd git-2.9.1 [root@kurolz git-2.9.1] #. / configure configure: Setting lib to 'lib' (the default) configure: Will try-pthread then-lpthread to enable POSIX Threads.configure: CHECKS for site configurationchecking for gcc... Gccchecking whether the C compiler works... Yes.
Make reported another error because the zlib header file was missing and the development package was not installed.
In file included from credential-store.c:1:cache.h:21:18: warning: zlib.h: No such file or directoryIn file included from credential-store.c:1:cache.h:23: error: expected specifier-qualifier-list before 'z_stream'make: * [credential-store.o] Error 1
Solution (still mount the system disk, find the following 2 installation packages to install):
[root@kurolz Packages] # rpm-ivh zlib-1.2.3-29.el6.x86_64.rpm [root@kurolz Packages] # rpm-ivh zlib-devel-1.2.3-29.el6.x86_64.rpm
Re-make succeeded
[root@kurolz git-2.9.1] # make GEN config.status/bin/sh: autoconf: command not found CC credential-store.o * new link flags CC abspath.o CC advice.o CC alias.o CC alloc.o. GEN bin-wrappers/test-urlmatch-normalization GEN bin-wrappers/test-wildmatch GEN git-remote-testgit [root@kurolz git-2.9.1] # sudo make install
Git installed successfully
[root@kurolz] # git-- versiongit version 2.9.1
The following is to get the gateone source code for installation, with an error, because the git environment is not fully installed
[root@kurolz ~] # git clone https://github.com/liftoff/GateOne.git is being cloned to 'GateOne'...fatal: Unable to find remote helper for' https'
As a solution, temporarily replace https with git:
[root@kurolz ~] # git clone git://github.com/liftoff/GateOne.git [root@kurolz ~] # cd GateOne
Found that the implementation of this package can not continue to report the error reason has not been found, I arrived
Https://github.com/downloads/liftoff/GateOne/gateone-1.1-1.noarch.rpm
Put down a new bag.
[root@kurolz ~] # tar-zxvf gateone-1.1-1.noarch.rpm [root@kurolz ~] # cd gateone
An error was reported because the tornado version is incorrect:
[root@kurolz gateone] #. / gateone.py Traceback (most recent call last): File ". / gateone.py", line 289, in tornado.options.enable_pretty_logging () AttributeError: 'module' object has no attribute' enable_pretty_logging' [root@kurolz gateone] # python-c "import tornado; print (tornado.version)" 4.4.1
As a workaround, install version 2.4 of tornado:
[root@kurolz ~] wget https://pypi.python.org/packages/2d/9a/38e855094bd11cba89cd2a50a54c31019ef4a45785fe12be6aa9a7c633de/tornado-2.4.tar.gz[root@kurolz ~] # tar zxvf tornado-2.4.tar.gz [root@kurolz ~] # cd tornado-2.4 [root@kurolz tornado-2.4] # python setup.py build [root@kurolz tornado-2.4] # python2 setup.py install [root@kurolz tornado-2.4] # python-c "import tornado; print (tornado.version)" 2.4
Started successfully:
[root@kurolz gateone] #. / gateone.py [I 170518 19:43:11 gateone:2748] / opt/gateone/server.conf not found or missing cookie_secret. A new one will be generated. [W 170518 19:43:11 gateone:2893] dtach command not found. Dtach support has been disabled. [I 170518 19:43:11 gateone:2917] Connections to this server will be allowed from the following origins: 'http://localhost https://localhost http://127.0.0.1 https://127.0.0.1'[I 170518 19:43:11 gateone:2957] No SSL private key found. One will be generated. [I 170518 19:43:13 gateone:2307] No authentication method configured. All users will be ANONYMOUS [I 170518 19:43:13 gateone:2404] Loaded plugins: bookmarks, convenience, example, help, logging, logging_plugin, mobile, notice, playback, ssh [I 170518 19:43:13 gateone:3054] Listening on [I 170518 19:43:13 gateone:3060] Process running with pid 2630
It is found that the ip of WAN cannot be accessed. Ctrl+C, edit the configuration file, modify the IP address that is allowed to access, and separate it with';'
[root@kurolz gateone] # vim server.conforigins = "http://localhost;https://localhost;http://127.0.0.1;https://127.0.0.1;https://192.168.20.128;https://192.168.10.10"
Restart gateone
[root@kurolz gateone] #. / gateone.py [W 170518 19:57:01 gateone:2893] dtach command not found. Dtach support has been disabled. [I 170518 19:57:01 gateone:2917] Connections to this server will be allowed from the following origins: 'http://localhost https://localhost http://127.0.0.1 https://127.0.0.1 https://192.168.20.128 https://192.168.10.10'[I 170518 19:57:01 gateone:2307] No authentication method configured. All users will be ANONYMOUS [I 170518 19:57:01 gateone:2404] Loaded plugins: bookmarks, convenience, example, help, logging, logging_plugin, mobile, notice, playback, ssh [I 170518 19:57:01 gateone:3054] Listening on https://*:443/[I 170518 19:57:01 gateone:3060] Process running with pid 2630
Browser connected successfully:
[root@kurolz gateone] #. / gateone.py [W 170518 19:57:01 gateone:2893] dtach command not found. Dtach support has been disabled. [I 170518 19:57:01 gateone:2917] Connections to this server will be allowed from the following origins: 'http://localhost https://localhost http://127.0.0.1 https://127.0.0.1 https://192.168.20.128 https://192.168.10.10'[I 170518 19:57:01 gateone:2307] No authentication method configured. All users will be ANONYMOUS [I 170518 19:57:01 gateone:2404] Loaded plugins: bookmarks, convenience, example, help, logging, logging_plugin, mobile, notice, playback Ssh [I 170518 19:57:01 gateone:3054] Listening on https://*:443/[I 170518 19:57:01 gateone:3060] Process running with pid 2630 [I 170518 19:57:11 web:1462] 302 GET / (192.168.10.1) 1.16ms [I 170518 19:57:11 auth:181] Creating user directory: / opt/gateone/users/ANONYMOUS [I 170518 19:57:11 web:1462] 302 GET / auth?next=%2F (192.168.10. 1) 4.19ms [I 170518 19:57:11 web:1462] 200GET / (192.168.10.1) 31.56ms [I 170518 19:57:11 web:1462] 200GET / static/gateone.css (192.168.10.1) 55.38ms [I 170518 19:57:11 web:1462] 200GET / static/gateone.js (192.168.10.1) 53.57ms [I 170518 19:57:11 web:1462] 200GET / combined_js (192.168. 58.23ms [I 170518 19:57:11 web:1462] 200 GET / static/favicon.ico (192.168.10.1) 1.53ms [I 170518 19:57:11 web:1462] 200 GET / auth?check=True (192.168.10.1) 2.47ms [I 170518 19:57:11 gateone:1063] WebSocket opened (ANONYMOUS). [I 170518 19:57:12 web:1462] 200 GET / static/bookmarks/p_w_picpaths/star.svg (192.168. 5.14ms [I 170518 19:57:12 web:1462] 200 GET / static/ubuntumono-normal.woff (192.168.10.1) 8.31ms
Once Ctrl+c cannot connect and log in, we need to run in the background, start the gateone service, and boot up.
[root@kurolz gateone] # service gateone startStarting Gate One: [OK] [root@kurolz gateone] # chkconfig gateone on
So far, the simple gateone deployment is complete.
I am still a student, still in the learning stage, there are problems or unnecessary operations also hope you point out, thank you very much!