小编Kar*_*hik的帖子

Mysql 作业启动失败

我在启动 mysql 服务时出错。

/etc/init.d/mysql start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start mysql
start: Job failed to start
Run Code Online (Sandbox Code Playgroud)

请分享您的想法...

mysql

22
推荐指数
2
解决办法
8万
查看次数

unoconv 在 python 中不起作用

我在使用 unoconv 将文档从 Python 脚本转换为 html 时遇到问题。

当我以 root 身份运行脚本或 unoconv 命令时,它运行良好,但是当我从其他用户执行相同操作时它会失败。我已经通过 apt-get install 安装了 Ubuntu 13.04 Server 和 unoconv 软件包。我以普通(非 root)用户身份执行了 python 脚本

>>> from subprocess import call
>>> call(["unoconv","-f","html","-o","/var/www/project/tagging/templates/documents","/var/www/project/media/resume1.doc"])
Error: Unable to connect or start own listener. Aborting.
Run Code Online (Sandbox Code Playgroud)

ls -l 给出以下内容:

ubuntu@ip-54-194-10-89:/var/www$ ls -l
total 183184
drwxr-xr-x 24 www-data www-data      4096 Aug 31 15:20 project
Run Code Online (Sandbox Code Playgroud)

项目的组和所有权为 www-data

如果有人可以帮助我解决这个问题,将不胜感激。

python apache2 python-2.7

5
推荐指数
1
解决办法
3501
查看次数

标签 统计

apache2 ×1

mysql ×1

python ×1

python-2.7 ×1