Powered by md-Blog  文 - 篇  访客 -

CentOS7安装GateOne在线终端


  分类:Linux服务器  / 
更新:2023-01-04 19:00:36  /  创建:2023-01-03 20:20:18
不要删除

1、验证 Python 环境是否安装

python -V
python -c "import tornado; print(tornado.version)"

2、如果没有安装需安装 Python

wget  --no-check-certificate https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py

3、安装 tornado

sudo pip install tornado==4.2.1

4、下载 GateOne 安装包

https://github.com/liftoff/GateOne

5、上传到服务器

解压

6、安装

sudo python ./setup.py install

7、验证

sudo gateone

8、修改配置文件

/etc/gateone/conf.d/10server.conf
// This is Gate One's main settings file.
{
    // "gateone" server-wide settings fall under "*"
    "*": {
        "gateone": { // These settings apply to all of Gate One
            "address": "",
            "ca_certs": null,
            "cache_dir": "/tmp/gateone_cache",
            "certificate": "/etc/gateone/ssl/certificate.pem",
            "cookie_secret": "NDc4YmQxNzU4ZjNiNDdiM2I5YTJhODI4MjliNTU0OGQ4N",
            "debug": false,
            "disable_ssl": false,
            "embedded": false,
            "enable_unix_socket": false,
            "gid": "0",
            "https_redirect": false,
            "js_init": "",
            "keyfile": "/etc/gateone/ssl/keyfile.pem",
            "locale": "en_US",
            "log_file_max_size": 100000000,
            "log_file_num_backups": 10,
            "log_file_prefix": "/var/log/gateone/gateone.log",
            "log_to_stderr": null,
            "logging": "info",
            "multiprocessing_workers": null,
            "origins": ["localhost", "127.0.0.1", "server1", "192.168.1.123"],
            "pid_file": "/var/run/gateone.pid",
            "port": 10443,
            "session_dir": "/tmp/gateone",
            "session_timeout": "5d",
            "syslog_facility": "daemon",
            "uid": "0",
            "unix_socket_mode": "0600",
            "unix_socket_path": "/tmp/gateone.sock",
            "url_prefix": "/",
            "user_dir": "/var/lib/gateone/users",
            "user_logs_max_age": "30d",
            "disable_ssl": true
        }
    }
}

9、防火墙添加白名单

firewall-cmd --zone=public --add-port=10443/tcp --permanent
firewall-cmd --reload

10、开机自启动

systemctl enable gateone

访问:https://服务器地址:10443/


不要删除

小站不易,感谢支持!