PyOne使用文档


网站源码配置

<h2><strong>如果使用了一键脚本,可跳过本章节。本章节仅供参考。</strong></h2> <p><strong>提示:全文默认是在<code>root</code>目录下运行。</strong></p> <p><strong>下载脚本</strong>:</p> <pre><code class="language-text">git clone https://github.com/abbeyokgo/PyOne.git</code></pre> <p><strong>安装依赖包</strong>:</p> <pre><code class="language-text">cd PyOne pip install -r requirements.txt</code></pre> <p><strong>准备文件</strong>:</p> <pre><code class="language-text">cp self_config.py.sample self_config.py cp supervisord.conf.sample supervisord.conf</code></pre> <p><strong>tips:</strong> 如果当前不是在<code>root</code>目录下,则需要修改<strong>self_config.py</strong>的<strong><code>config_dir</code></strong>参数和<strong>supervisord.conf</strong>的<strong><code>directory</code></strong>参数为正确的目录!!!</p> <p><strong>试运行</strong></p> <pre><code class="language-text">gunicorn -k eventlet -b 0.0.0.0:34567 run:app</code></pre> <p>如果没有问题,则可以访问到:<code>http://ip:34567</code>。如果不行,请确保已经开放端口!</p>

页面列表

ITEM_HTML