第二篇supervisor集群管理工具cesi安装详解-如何安装supervisor-cesiwebUI

article/2025/10/13 4:21:42

第二篇supervisor集群管理工具cesi安装详解-如何安装supervisor-cesiwebUI

    • 介绍
    • 安装
    • 解压
    • 安装依赖
    • 修改配置
    • 注册为系统服务
    • 启动
    • 登录一下,发现报错了
    • 解决方法

介绍

前一篇我们安装好了supervisor,supervisor自带了一个UI界面,不太好用,且不支持集群
CeSi 是 Supervisor 官方推荐的集中化管理 Supervisor 实例的 Web UI,该工具是用 Python 编写,基于 Flask Web 框架 。

Superviosr 自带的 Web UI 不支持跨机器管理
Supervisor 进程,功能比较简单,通过 CeSi 可以集中管理各个服务器节点的进程,在 Web 界面就可以轻松管理各个服务的启动、关闭、重启等,很方便使用。

安装

软件下载地址cesi-extended.tar.gz

https://github.com/gamegos/cesi/releases

上传到服务器

解压

[root@localhost cesi]# pwd
/data/supervisor/cesi
[root@localhost cesi]# tar -xf cesi-extended.tar.gz 
[root@localhost cesi]# ll
总用量 9752
drwxr-xr-x. 5 1157137021 1123705078     164 5月  25 10:16 cesi
-rw-r--r--. 1 root       root       9873466 5月  20 13:14 cesi-extended.tar.gz
-rw-r--r--. 1 1157137021 1123705078     360 6月  28 2020 CONTRIBUTORS.md
drwxr-xr-x. 2 1157137021 1123705078      70 5月  25 10:16 defaults
-rw-r--r--. 1 1157137021 1123705078     237 6月  28 2020 DEVELOPMENT.md
-rw-r--r--. 1 1157137021 1123705078    1980 6月  28 2020 docker-compose.yml
-rw-r--r--. 1 1157137021 1123705078      62 6月  28 2020 env.sample
-rw-r--r--. 1 1157137021 1123705078   35146 6月  28 2020 LICENCE
-rw-r--r--. 1 1157137021 1123705078    1186 6月  28 2020 Makefile
-rw-r--r--. 1 1157137021 1123705078   38294 6月  28 2020 poetry.lock
-rw-r--r--. 1 1157137021 1123705078     535 6月  28 2020 pyproject.toml
-rw-r--r--. 1 1157137021 1123705078    3734 6月  28 2020 README.md
-rw-r--r--. 1 1157137021 1123705078      90 6月  28 2020 requirements.txt

安装依赖

[root@localhost cesi]# /data/supervisor/python3.7/bin/pip3 install -r requirements.txt 
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting flask==1.1.2 (from -r requirements.txt (line 1))Downloading http://mirrors.aliyun.com/pypi/packages/f2/28/2a03252dfb9ebf377f40fba6a7841b47083260bf8bd8e737b0c6952df83f/Flask-1.1.2-py2.py3-none-any.whl (94kB)100% |████████████████████████████████| 102kB 2.0MB/s 
Collecting flask-sqlalchemy==2.4.3 (from -r requirements.txt (line 2))Downloading http://mirrors.aliyun.com/pypi/packages/a6/b1/9da1c3c5417612b2fc4d25d55a225199c633d6492dac215b11b9021e6a8d/Flask_SQLAlchemy-2.4.3-py2.py3-none-any.whl
Collecting psycopg2-binary==2.8.5 (from -r requirements.txt (line 3))Downloading http://mirrors.aliyun.com/pypi/packages/e6/bc/cb407e8d0301801d5f44d3f464485d9577c3bf92db13afef4d05d757ec47/psycopg2_binary-2.8.5-cp37-cp37m-manylinux1_x86_64.whl (2.9MB)100% |████████████████████████████████| 2.9MB 1.8MB/s 
Collecting pymysql==0.9.3 (from -r requirements.txt (line 4))Downloading http://mirrors.aliyun.com/pypi/packages/ed/39/15045ae46f2a123019aa968dfcba0396c161c20f855f11dea6796bcaae95/PyMySQL-0.9.3-py2.py3-none-any.whl (47kB)100% |████████████████████████████████| 51kB 2.1MB/s 
Collecting tomlkit==0.5.11 (from -r requirements.txt (line 5))Downloading http://mirrors.aliyun.com/pypi/packages/7d/8c/c3ee9cd41b2df781b2dc39c31209724b4f04a3110b46531de2e661ace186/tomlkit-0.5.11-py2.py3-none-any.whl
Collecting itsdangerous>=0.24 (from flask==1.1.2->-r requirements.txt (line 1))Downloading http://mirrors.aliyun.com/pypi/packages/9c/96/26f935afba9cd6140216da5add223a0c465b99d0f112b68a4ca426441019/itsdangerous-2.0.1-py3-none-any.whl
Collecting Jinja2>=2.10.1 (from flask==1.1.2->-r requirements.txt (line 1))Downloading http://mirrors.aliyun.com/pypi/packages/80/21/ae597efc7ed8caaa43fb35062288baaf99a7d43ff0cf66452ddf47604ee6/Jinja2-3.0.1-py3-none-any.whl (133kB)100% |████████████████████████████████| 143kB 1.9MB/s 
Collecting click>=5.1 (from flask==1.1.2->-r requirements.txt (line 1))Downloading http://mirrors.aliyun.com/pypi/packages/76/0a/b6c5f311e32aeb3b406e03c079ade51e905ea630fc19d1262a46249c1c86/click-8.0.1-py3-none-any.whl (97kB)100% |████████████████████████████████| 102kB 1.7MB/s 
Collecting Werkzeug>=0.15 (from flask==1.1.2->-r requirements.txt (line 1))Downloading http://mirrors.aliyun.com/pypi/packages/bd/24/11c3ea5a7e866bf2d97f0501d0b4b1c9bbeade102bb4b588f0d2919a5212/Werkzeug-2.0.1-py3-none-any.whl (288kB)100% |████████████████████████████████| 296kB 1.8MB/s 
Collecting SQLAlchemy>=0.8.0 (from flask-sqlalchemy==2.4.3->-r requirements.txt (line 2))Downloading http://mirrors.aliyun.com/pypi/packages/aa/e3/d4d75e8f04456d4b636a3dbcd20fd423878f789db3e8881dec89ea38f9b1/SQLAlchemy-1.4.15-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.5MB)100% |████████████████████████████████| 1.5MB 2.0MB/s 
Collecting MarkupSafe>=2.0 (from Jinja2>=2.10.1->flask==1.1.2->-r requirements.txt (line 1))Downloading http://mirrors.aliyun.com/pypi/packages/ad/cd/650b1be2a81674939ef962b1f1b956e4a84116d69708c842667445e95408/MarkupSafe-2.0.1-cp37-cp37m-manylinux2010_x86_64.whl
Collecting importlib-metadata; python_version < "3.8" (from click>=5.1->flask==1.1.2->-r requirements.txt (line 1))Downloading http://mirrors.aliyun.com/pypi/packages/8e/e2/49966924c93909d47612bb47d911448140a2f6c1390aec2f4c1afbe3748f/importlib_metadata-4.0.1-py3-none-any.whl
Collecting greenlet!=0.4.17; python_version >= "3" (from SQLAlchemy>=0.8.0->flask-sqlalchemy==2.4.3->-r requirements.txt (line 2))Downloading http://mirrors.aliyun.com/pypi/packages/bb/ea/c838bae79013f1106092f8cc6b28a60f86fdd7ade899c636f12ff736cdd7/greenlet-1.1.0-cp37-cp37m-manylinux2010_x86_64.whl (160kB)100% |████████████████████████████████| 163kB 1.8MB/s 
Collecting typing-extensions>=3.6.4; python_version < "3.8" (from importlib-metadata; python_version < "3.8"->click>=5.1->flask==1.1.2->-r requirements.txt (line 1))Downloading http://mirrors.aliyun.com/pypi/packages/2e/35/6c4fff5ab443b57116cb1aad46421fb719bed2825664e8fe77d66d99bcbc/typing_extensions-3.10.0.0-py3-none-any.whl
Collecting zipp>=0.5 (from importlib-metadata; python_version < "3.8"->click>=5.1->flask==1.1.2->-r requirements.txt (line 1))Downloading http://mirrors.aliyun.com/pypi/packages/0f/8c/715c54e9e34c0c4820f616a913a7de3337d0cd79074dd1bed4dd840f16ae/zipp-3.4.1-py3-none-any.whl
Installing collected packages: itsdangerous, MarkupSafe, Jinja2, typing-extensions, zipp, importlib-metadata, click, Werkzeug, flask, greenlet, SQLAlchemy, flask-sqlalchemy, psycopg2-binary, pymysql, tomlkit
Successfully installed Jinja2-3.0.1 MarkupSafe-2.0.1 SQLAlchemy-1.4.15 Werkzeug-2.0.1 click-8.0.1 flask-1.1.2 flask-sqlalchemy-2.4.3 greenlet-1.1.0 importlib-metadata-4.0.1 itsdangerous-2.0.1 psycopg2-binary-2.8.5 pymysql-0.9.3 tomlkit-0.5.11 typing-extensions-3.10.0.0 zipp-3.4.1
You are using pip version 19.0.3, however version 21.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[root@localhost cesi]# 

修改配置

[root@localhost cesi]# cat defaults/cesi.conf.tomlThis is the main CeSI toml configuration file. It contains CeSI web application and
# supervisord information to connect# This is the CeSI's own configuration.
[cesi]
# Database Uri
database = "sqlite:///users.db"                         # Relative path
# Etc
#database = "sqlite:opt/cesi/< version >/users.db"  # Absolute path
#database = "postgres://<user>:<password>@localhost:5432/<database_name>"
#database = "mysql+pymysql://<user>:<password>@localhost:3306/<database_name>"
activity_log = "activity.log"   # File path for CeSI logs
admin_username = "admin"        # Username of admin user
admin_password = "admin"        # Password of admin user# This is the definition section for new supervisord node.
# [[nodes]]
# name = "api"          # (String) Unique name for supervisord node.
# environment = ""      # (String) The environment name provides logical grouping of supervisord nodes. It can be used as filtering option in the UI.
# username = ""         # (String) Username of the XML-RPC interface of supervisord Set nothing if no username is configured
# password = ""         # (String) Password of the XML-RPC interface of supervisord. Set nothing if no username is configured
# host = "127.0.0.1"    # (String) Host of the XML-RPC interface of supervisord
# port = "9001"         # (String) Port of the XML-RPC interface of supervisord# Default supervisord nodes
[[nodes]]
name = "192.168.80.176-server"
environment = ""
username = "super"
password = "KsKFaCIX50fDv7kz"
host = "192.168.80.176"
port = "9001"[[nodes]]
name = "192.168.65.94-server"
environment = ""
username = "super"
password = "KsKFaCIX50fDv7kz"
host = "192.168.65.94"
port = "9001"

注册为系统服务

[root@localhost cesi]# cp defaults/cesi.service /etc/systemd/system/
[root@localhost cesi]# cat /etc/systemd/system/cesi.service 
[Unit]
Description=cesi[Service]
Environment=
ExecStart=/data/supervisor/python3.7/bin/python3 /data/supervisor/cesi/cesi/run.py --config-file /etc/cesi.conf.toml
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=TERM
User=root
WorkingDirectory=/data/supervisor/cesiRestart=on-failure[Install]
WantedBy=multi-user.target

启动

[root@localhost cesi]# systemctl daemon-reload
[root@localhost cesi]# systemctl restart cesi
[root@localhost cesi]# systemctl status cesi
● cesi.service - cesiLoaded: loaded (/etc/systemd/system/cesi.service; disabled; vendor preset: disabled)Active: active (running) since 二 2021-05-25 10:26:40 CST; 4s agoMain PID: 111963 (python3)Tasks: 1Memory: 34.1MCGroup: /system.slice/cesi.service└─111963 /data/supervisor/python3.7/bin/python3 /data/supervisor/cesi/cesi/run.py --config-file /etc/cesi.conf.toml5月 25 10:26:41 localhost.localdomain python3[111963]: {'admin_username': 'admin', 'database': 'sqlite:///users.db', 'admin_password': 'admin', 'activity_log': 'activity.log', 'nodes': [<core.node.Node object at 0x7eff9df15810>, <core.node.Node object at 0x7eff9dbfb...
5月 25 10:26:41 localhost.localdomain python3[111963]: can't set attribute
5月 25 10:26:41 localhost.localdomain python3[111963]: * Serving Flask app "run" (lazy loading)
5月 25 10:26:41 localhost.localdomain python3[111963]: * Environment: production
5月 25 10:26:41 localhost.localdomain python3[111963]: WARNING: This is a development server. Do not use it in a production deployment.
5月 25 10:26:41 localhost.localdomain python3[111963]: Use a production WSGI server instead.
5月 25 10:26:41 localhost.localdomain python3[111963]: * Debug mode: off
5月 25 10:26:41 localhost.localdomain python3[111963]: * Running on all addresses.
5月 25 10:26:41 localhost.localdomain python3[111963]: WARNING: This is a development server. Do not use it in a production deployment.
5月 25 10:26:41 localhost.localdomain python3[111963]: * Running on http://192.168.93.128:5000/ (Press CTRL+C to quit)
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost cesi]# 

默认用户名:admin
密码:admin

登录一下,发现报错了

在这里插入图片描述
看报错日志 /var/log/message

May 25 10:28:39 localhost python3: [2021-05-25 10:28:39,728] ERROR in app: Exception on /api/v2/auth/login/ [POST]
May 25 10:28:39 localhost python3: Traceback (most recent call last):
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/sqlalchemy/util/_collections.py", line 1008, in __call__
May 25 10:28:39 localhost python3: return self.registry[key]
May 25 10:28:39 localhost python3: KeyError: <greenlet.greenlet object at 0x7eff9c981710 (otid=0x7eff9c6a0f00) current active started main>
May 25 10:28:39 localhost python3: During handling of the above exception, another exception occurred:
May 25 10:28:39 localhost python3: Traceback (most recent call last):
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
May 25 10:28:39 localhost python3: response = self.full_dispatch_request()
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
May 25 10:28:39 localhost python3: rv = self.handle_user_exception(e)
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
May 25 10:28:39 localhost python3: reraise(exc_type, exc_value, tb)
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
May 25 10:28:39 localhost python3: raise value
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
May 25 10:28:39 localhost python3: rv = self.dispatch_request()
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
May 25 10:28:39 localhost python3: return self.view_functions[rule.endpoint](**req.view_args)
May 25 10:28:39 localhost python3: File "/data/supervisor/cesi/cesi/api/v2/auth.py", line 35, in login
May 25 10:28:39 localhost python3: result = User.verify(user_credentials["username"], user_credentials["password"])
May 25 10:28:39 localhost python3: File "/data/supervisor/cesi/cesi/models.py", line 37, in verify
May 25 10:28:39 localhost python3: user = User.query.filter_by(username=username).first()
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py", line 514, in __get__
May 25 10:28:39 localhost python3: return type.query_class(mapper, session=self.sa.session())
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/sqlalchemy/orm/scoping.py", line 129, in __call__
May 25 10:28:39 localhost python3: return self.registry()
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/sqlalchemy/util/_collections.py", line 1010, in __call__
May 25 10:28:39 localhost python3: return self.registry.setdefault(key, self.createfunc())
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 4065, in __call__
May 25 10:28:39 localhost python3: return self.class_(**local_kw)
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py", line 138, in __init__
May 25 10:28:39 localhost python3: bind = options.pop('bind', None) or db.engine
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py", line 943, in engine
May 25 10:28:39 localhost python3: return self.get_engine()
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py", line 962, in get_engine
May 25 10:28:39 localhost python3: return connector.get_engine()
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py", line 555, in get_engine
May 25 10:28:39 localhost python3: options = self.get_options(sa_url, echo)
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py", line 570, in get_options
May 25 10:28:39 localhost python3: self._sa.apply_driver_hacks(self._app, sa_url, options)
May 25 10:28:39 localhost python3: File "/data/supervisor/python3.7/lib/python3.7/site-packages/flask_sqlalchemy/__init__.py", line 914, in apply_driver_hacks
May 25 10:28:39 localhost python3: sa_url.database = os.path.join(app.root_path, sa_url.database)
May 25 10:28:39 localhost python3: AttributeError: can't set attribute

May 25 10:28:39 localhost python3: sa_url.database = os.path.join(app.root_path, sa_url.database)
May 25 10:28:39 localhost python3: AttributeError: can’t set attribute

解决方法

AttributeError:使用flask-sqlalchemy连接到sqlite数据库时无法设置属性

[root@localhost cesi]# /data/supervisor/python3.7/bin/pip3 install  --upgrade sqlalchemy==1.3.23
[root@localhost cesi]# systemctl restart cesi

OK,已经重启了,现在再登录一下

在这里插入图片描述


http://chatgpt.dhexx.cn/article/PJ2qjFO6.shtml

相关文章

CeSi 安装与配置

文章目录 CeSi 安装与配置一、介绍二、CeSi 安装三、CeSi 配置四、CeSi 启动五、管理界面 CeSi 安装与配置 一、介绍 ​ CeSi(Centralized Supervisor Interface) 是 Supervisor 官方推荐的集中化管理 Supervisor 实例的 Web UI&#xff0c;该工具是用 Python 编写&#xff0…

iis发布网站时出现根目录文件解决方案

Window server 发布 vs打包的web应用时出现根目录文件 在web.config配置文件中 &#xff0c;modules 节点前加上 runAllManagedModulesForAllRequests“true”

IIS 发布网站无法显示图片

发布网站以后&#xff0c;图片全是叉号。 1、先确认&#xff0c;IIS服务管理器下面没有MIME类型这个选项 2、参考设置权限&#xff0c;&#xff08;我的程序是拷贝过来的&#xff09;&#xff1a; https://blog.csdn.net/yzm272/article/details/86506615 1、第一步打开IIS 控…

IIS发布网站及网页显示设置

本文调试系统中容易出现问题的系统有&#xff1a;Windows Service 2008R2、Windosw Service 2012R2 1、在上述两个系统中需要增加IIS服务器功能&#xff0c;需要在《添加角色功能增加》点击下一步中&#xff0c;添加IIS服务器功能即可&#xff0c;在增加功能的同时提供原系统文…

IIS部署 发布网站详细步骤(相见恨晚)

前言 新闻发布系统做完有一段时间了&#xff0c;可是自己怎么也发布不出去&#xff0c;琢磨了好几天&#xff0c;也没能顺利将新闻发布系统发布出来。甚是着急啊。站在巨人的肩膀上——找师哥帮忙。在他的指导下才知道自己的问题出现在哪里。下面详细展示一下发布的全过程。 …

IIS发布c#网站

目录 首先在VS上发布网站 在IIS上将发布好的网站部署上 首先在VS上发布网站 1.配置文件&#xff1a;下拉选择“新建自定义配置文件” 2.连接&#xff1a;发布选择“文件系统”&#xff0c;目标位置选择自己定义的文件夹目录 3.设置&#xff1a;配置下拉选择“Release”&…

创建asp网站iis发布网站用IP地址进行访问

1、创建asp网站 vs—新建—项目—web—asp.net空应用程序—确定—点击解决方案—右键添加—新建项目—visual c#类库—分别添加model,dal,bll层 2、我们要先在vs中发布 3、弹出网站发布设置面板&#xff0c;点击<新建..>,创建新的发布配置文件 输入你自己定义的配置文件…

win7用IIS发布网站

1、将需要发布网站的工程文件共享 右键工程文件&#xff0c;选择“属性”&#xff0c;选择“共享”&#xff0c;进入下图 点击“共享”&#xff0c;进入下图 添加用户Everyone&#xff0c;点击下方的共享&#xff0c;即可完成工程文件共享。 2、确保系统上已经安装IIS&#x…

通过IIS发布网站教程【十分钟完成一个网站发布】

工具&#xff1a;win10系统&#xff1b;一个完成的html文件&#xff08;或者是php、asp等&#xff09; 一、开启IIS服务 【控制面板】——【程序和功能】——【打开或关闭windos功能】&#xff0c;勾选以下截图服务&#xff0c;点击确定即可 二、局域网搭建网站 服务器电脑添…

IIS部署,发布网站精选

一、IIS部署 1.打开控制面板&#xff0c;选择 ‘程序’ 2.程序和功能下&#xff0c;选择打开或关闭Windows功能 3.等待加载&#xff0c;选择Internet信息服务&#xff0c;勾选如下选项 至此IIS的选择完成了。接下来添加网站。 二、网站添加 1.开始 菜单搜索 IIS&#xff0c;…

服务器安装iis网站,安装IIS发布我的第一个网站图文教程

网站做完之后&#xff0c;接下来的事情就是发布了&#xff0c;那么&#xff0c;该如何用IIS发布到本地局域网呢&#xff1f; 一、IIS安装 首先&#xff0c;要安装IIS&#xff0c;IIS不需要去网站下载&#xff0c;它属于windows自带服务。 1、打开控制面板&#xff0c;找到“程序…

IIS 发布网站无法显示CSS、背景及图片文件---另一个思路--终极方案

解决这个真的是很坑的一个心路历程 现象如下 然后如果你说正常搜索 ---网上一定会说iis现什么静态内容等一般问题。比如 但是实际上是网站文件夹没有给IUser用户设定足够权限&#xff0c;与上图无关或者关系不大。 可是网上没有说明白怎么加上这个IUser权限 记得用F12 看看图…

IIS发布网站

IIS发布静态网页的网站 1、静态网页代码上传到服务器上&#xff0c;修改首页名称为index.html或者defult.html&#xff0c;如果是是别的IIS服务器会不认识。注意&#xff1a;这里需要同步修改网页里面所有与此首页相关的短连接。 2、配置IIS服务器 点击此处添加网站 配置…

【IIS】VS+IIS发布网站

前言 之前经历过很多次网站的发布&#xff0c;比如正在维护中的永和收银系统&#xff0c;就经常有重新发布的需求&#xff0c;所以对这块也算是轻车熟路&#xff0c;但是与之前的的发布不同的是&#xff0c;ITO需要先经过一层VS发布编译后&#xff0c;再由IIS发布到服务器。 V…

IIS发布网站,使用localhost无法调用Post、Put、Delete接口

一、项目情景 使用IIS发布网站&#xff0c;使用localhost不能访问&#xff0c;但使用127.0.0.1可以访问“Post、Put、Delete 接口” 二、问题描述 使用http://localhost:6008/swagger/index.html&#xff0c;操作 “Post、Put、Delete 接口”&#xff0c;报错&#xff1a;“40…

IIS发布网站时出现中文乱码的解决方法

一、更改IIS管理器 1、打开.NET全球化   2、将编码设置为一致&#xff0c;一般UTF-8 二、更改文本文档的保存格式 三、利用其他编辑器更改编码模式 1、notepad

使用IIS发布网站

公司的项目需要调用一个用C语言编写的服务&#xff0c;故研究了一下如何使用IIS发布网站。 IIS安装 首先确保电脑上已经安装IIS&#xff0c;如果没有安装&#xff0c;则需要先安装。我的电脑系统是Win10专业版&#xff0c;安装步骤如下。 1、打开控制面板&#xff0c;选择“…

利用IIS发布网站

利用IIS发布网站 IIS是缩写 &#xff0c;全称 Internet Information Services ( IIS,互联网信息服务 ) ,是由微软公司提供的基于运行Microsoft Windows的互联网基本服务。 IIS是指World Wide Web server服务&#xff0c;IIS是一种Web&#xff08;网页&#xff09;服务组件&…

IIS网站发布详细流程

打开计算机管理>>本地用户和组>>组,新增组-组名为iisusers,再到打开计算机管理>>本地用户和组>>用户,新增指定iis站点访问的用户,并设置归属组为刚刚新增的iisusers 新增本地存放网站部署包的目录rootwww&#xff0c;并在这个目录下新增rootiis和rooti…

iis运行html提示500错误,IIS发布网站出现Http—500错误

IIS服务器可以作为一个Web 服务器单独使用&#xff0c;也可以与相兼容的工具一起使用&#xff0c;它可以用来建立Internet商务、访问和操作来自不同数据源的数据以及创建Web 应用程序&#xff0c;其中这些应用程序利用服务器脚本和组件代码来完成一些客户-服务器功能。 客户端访…