我需要在服务器上运行这个程序,但是我想知道这是否会重新启动当前的MySQL服务。
发布于 2015-08-14 12:59:14
以下是来自setup.py的pypi网站代码
#!/usr/bin/env python
import os
import sys
import distutils.errors
import setuptools
if not hasattr(sys, "hexversion") or sys.hexversion < 0x02040000:
raise distutils.errors.DistutilsError("Python 2.4 or newer is required")
if os.name == "posix":
from setup_posix import get_config
else: # assume windows
from setup_windows import get_config
metadata, options = get_config()
metadata['ext_modules'] = [
setuptools.Extension(sources=['_mysql.c'], **options)]
metadata['long_description'] = metadata['long_description'].replace(r'\n', '')
setuptools.setup(**metadata)所以里面没有东西能重新启动它。我进行了测试,并使用pip进行了安装,但没有重新启动mysqld服务。至少,它在6.7的日志中没有显示出来。
此外,根据安装程序的不同,停止服务需要根访问,但是pip不需要。因此,为了确保服务在安装过程中不停止,您可以使用没有根访问权限的用户,并使用pip安装模块,如下所示:
pip install MySQL-pythonhttps://stackoverflow.com/questions/32009881
复制相似问题