关于使用github上安装脚本出现的问题

环境:
kvm vps
ubuntu server 14.04

root@133-130-123-235:~# bash seafile-server-ubuntu-14-04-amd64-http 5.1.1

This script installs the community edition of the Seafile Server on a Ubuntu 14.04 (Trusty) 64bit

  • Newest Seafile server version, MariaDB, Memcached, NGINX -

This installer is meant to run on a freshly installed machine
only. If you run it on a production server things can and
probably will go terrible wrong and you will loose valuable
data!

For questions or suggestions please contact us at
support@seafile.com


Possible options:
1 = Seafile Community (Free) Edition (CE)
2 = Seafile Professional Edition (PRO)

  1. CE
  2. PRO
  3. ABORT
    Which Seafile version would you like to install? 1

This script will install Seafile Community Edition for you.

hostname: Name or service not known
root@133-130-123-235:~#

下载完脚本后运行
bash seafile-server-ubuntu-14-04-amd64-http 5.1.1
出现问题了

你直接在命令行敲 hostname 这个命令,得到的结果是?

之前是IP
后来改了
hostname ljxvps
就变成lixvps
但是结果一样

那你把脚本中调用 hostname 的几行注释掉,直接用一个字符串就可以了。

https://github.com/haiwen/seafile-server-installer-cn

就是这个脚本

能不能把hostname替换成自己的服务器名?

可以,hostname 这个命令就是返回一个字符窜。你现在 hostname 不能用,随便填个字符串即可。

把hostname设置成服务器IP后搞定!如果有域名的话,设成域名也可以。原来跟架设邮件服务器的脚本设置类似。