|
本帖最后由 skywing 于 2017-6-7 00:11 编辑
装之前先查了网上的资料,中文资料非常少,文章都是好几年前的,大家安装的版本都是已经失去支持的,大家很少用这个源码吗?还是懒得动笔写?
还好安装这个还是非常简单的,官网下载最新版源码,解压,建立虚拟主机绑定域名,建数据库,设置好权限,访问下,填入用户名密码,数据库信息,安装,几秒就好了。。。比wordpress还简单,之前还是以为是多难呢。。。
装后发现没有中文,还好中文文件不乱码,凑合用吧。
后台有几个提示,提示要fileinfo模块的,已经搞定。其它的查下资料都是英文的,爬英文表示很辛苦啊
- Security & setup warnings
- Transactional file locking should be configured to use memory-based locking, not the default slow database-based locking. See the documentation ↗ for more information.
- We recommend to enable system cron as any other cron method has possible performance and reliability implications.
- Your data directory and your files are probably accessible from the Internet. The .htaccess file is not working. We strongly suggest that you configure your web server in a way that the data directory is no longer accessible or you move the data directory outside the web server document root.
- /dev/urandom is not readable by PHP which is highly discouraged for security reasons. Further information can be found in our documentation.
- The "Strict-Transport-Security" HTTP header is not configured to at least "15552000" seconds. For enhanced security we recommend enabling HSTS as described in our security tips.
- No memory cache has been configured. To enhance your performance please configure a memcache if available. Further information can be found in our documentation.
- Please double check the installation guides ↗, and check for any errors or warnings in the log.
复制代码
————————————————————————————————————————————
折腾安装了seafile 目前已经搞定大部分工作 就是使用root用户运行seafile担心会有安全上的问题,尝试建立一个普通用户用于运行它,没想权限不够,这里老司机这么多,有人碰到并解决这个问题了吗?
- root@vps:/home/seafile/seafile-server-6.0.9# sudo -u seafile ./seahub.sh start-fastcgi
- LC_ALL is not set in ENV, set to en_US.UTF-8
- Starting seahub (fastcgi) at 127.0.0.1:8000 ...
- Traceback (most recent call last):
- File "/home/seafile/seafile-server-6.0.9/seahub/manage.py", line 10, in <module>
- execute_from_command_line(sys.argv)
- File "/home/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/core/management/__init__.py", line 354, in execute_from_command_line
- utility.execute()
- File "/home/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/core/management/__init__.py", line 328, in execute
- django.setup()
- File "/home/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/__init__.py", line 18, in setup
- apps.populate(settings.INSTALLED_APPS)
- File "/home/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/apps/registry.py", line 115, in populate
- app_config.ready()
- File "/home/seafile/seafile-server-6.0.9/seahub/seahub/base/apps.py", line 11, in ready
- cache.set('test_cache', 'worked')
- File "/home/seafile/seafile-server-6.0.9/seahub/thirdpart/Django-1.8.17-py2.7.egg/django/core/cache/backends/filebased.py", line 52, in set
- fd, tmp_path = tempfile.mkstemp(dir=self._dir)
- File "/usr/lib/python2.7/tempfile.py", line 308, in mkstemp
- return _mkstemp_inner(dir, prefix, suffix, flags)
- File "/usr/lib/python2.7/tempfile.py", line 239, in _mkstemp_inner
- fd = _os.open(file, flags, 0600)
- OSError: [Errno 13] Permission denied: '/tmp/seahub_cache/tmpyO65YA'
- Error:Seahub failed to start.
复制代码 |
|