Python非root使用者啟動python multiprocessing的semlock,提示沒有許可權的解決方法
阿新 • • 發佈:2019-02-19
<span style="font-size:18px;">Traceback (most recent call last): File "web_game_sign.py", line 483, in <module> count = multiprocessing.Value('i', 1) File "/usr/lib64/python2.6/multiprocessing/__init__.py", line 248, in Value return Value(typecode_or_type, *args, **kwds) File "/usr/lib64/python2.6/multiprocessing/sharedctypes.py", line 75, in Value lock = RLock() File "/usr/lib64/python2.6/multiprocessing/__init__.py", line 178, in RLock return RLock() File "/usr/lib64/python2.6/multiprocessing/synchronize.py", line 142, in __init__ SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1) File "/usr/lib64/python2.6/multiprocessing/synchronize.py", line 49, in __init__ sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue) OSError: [Errno 13] Permission denied</span>