-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chilledheart
committed
Jul 9, 2014
1 parent
c866804
commit 4e53fc1
Showing
5 changed files
with
139 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
deploy_windows/download_and_setup_seafile_windows_server.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Download and Setup Seafile Windows Server | ||
|
||
## Download/Uncompress | ||
### Install Python 2.7 | ||
|
||
- Download and install [python 2.7](https://www.python.org/ftp/python/2.7.8/python-2.7.8.msi) | ||
- Add the installation path of python2.7 to the system PATH environment variable. If you installed python 2.7 to ``C:\Python27`` add ``C:\Python27`` to the PATH environment variable | ||
|
||
### Download/Uncompress Seafile Server | ||
|
||
- Get the latest version of Seafile Server program | ||
- Create a new folder to store seafile program, such as ``C:\SeafileProgram\``. Please remember the location of the folder, we'll use it later. | ||
- Uncompress ``seafile-server_1.7.0_win32.tar.gz`` to ``C:\SeafileProgram\`` | ||
|
||
Now you have a folder like this: | ||
```sh | ||
C:\SeafileProgram | ||
|__ seafile-server-1.7.0 | ||
``` | ||
## Start/Initialization | ||
|
||
### Start Seafile Server | ||
|
||
Go to the folder ``C:\SeafileProgram\seafile-server-1.7.0\``, and double click run.bat to start Seafile Server. You should notice a seafile icon appears in the system tray. | ||
Choose a disk to store Seafile Server data | ||
|
||
Now you'll be prompted a dialog to choose a disk to store the data of seafile server | ||
|
||
- Please choose a disk with enough free space | ||
- Once you clicked the OK button, Seafile would create a folder named seafile-server under the disk you choosed. That would be the data folder of Seafile Server. If you choose disk D, your data folder would be ``D:\seafile-server`` | ||
|
||
### Add an admin account | ||
|
||
Right click the tray icon of Seafile Server, choose __Add an admin__. Input your admin username and password in the prompted dialog. | ||
|
||
If the operation is successful, the tray icon would show a bubble saying __Successully added the admin acount__ | ||
### Configure Seafile Server | ||
|
||
After initialization, there are some options need to be configured: | ||
|
||
- Right click the tray icon, choose __Open seafile-server folder__. Your seafile-server data folder would be opened. | ||
- Edit the file ``ccnet/ccnet.conf``. Modify two lines of ``ccnet.conf``: | ||
``` | ||
NAME = XXXXX | ||
SERVICE_URL = XXX | ||
``` | ||
- Change the value of NAME to the name of your Seafile Server, such as NAME = my-company-seafile. This name would be displayed on your seafile clients | ||
- Change the value of ``SERVICE_URL`` to ``http://<your ip address>:8000``. Say the ip address of your windows server is 192.168.1.100, then change it to ``SERVICE_URL = http://192.168.1.100:8000`` | ||
|
||
After the edit, right click tray icon, choose __Restart seafile__ | ||
### Visit Seahub | ||
|
||
Open your browser, and visit ``http://127.0.0.1:8000``. Login with the admin account. If you can login, the initialization is successful. | ||
Configuration done | ||
|
||
Seafile Server configuration is finished. See Seafile Client Manual for how to use the client | ||
|
||
### You may also want to read about: | ||
|
||
- [LDAP Integration](../deploy/using_ldap.md) | ||
- [Install Seafile Server as a Windows Service](install_seafile_server_as_a_windows_service.md) | ||
- [Ports used by Seafile Windows Server](ports_used_by_seafile_windows_server.md) | ||
- [Upgrading Seafile Windows Server](Upgrading Seafile Windows Server) | ||
- [Options & Customization](../deploy/server_configuration.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Upgrading Seafile Windows Server | ||
|
||
- Minor Upgrade | ||
- Major Upgrade | ||
- Upgrade Windows Service | ||
|
||
**Note**:You must shutdown seafile server before you upgrade. | ||
## Uncompress the new version of Seafile Server | ||
|
||
Before you upgrade, assume you have: | ||
``` | ||
C:/SeafileProgram | ||
|______ seafile-server-1.7.0/ | ||
``` | ||
Then the first step is to download the new version of Seafile Server and uncompress it to ``C:/SeafileProgram``. After this you should have: | ||
``` | ||
C:/SeafileProgram | ||
|______ seafile-server-1.7.0/ | ||
|______ seafile-server-1.8.0/ | ||
``` | ||
## Minor upgrade (like upgrade from 1.7.0 to 1.7.1) | ||
|
||
Now assume you are upgrading from Seafile Windows Server 1.7.0 to 1.7.1 | ||
### Move the contents of the avatars folder | ||
|
||
Go to the folder ``seafile-server-1.7.0/seahub/media/avatars`` | ||
|
||
The ``avatars`` folder contains all the avatars uploaded by seafile users. | ||
|
||
If you have a user ``[email protected]``, then in this folder, you will find a subfolder ``[email protected]``. This subfolder contains the avatar pictures of the user ``[email protected]``. | ||
|
||
Copy all subfolders like ``[email protected]`` to ``seafile-server-1.7.1/seahub/media/avatars``. So that when you start the new seafile 1.7.1 server, these avatars can be load correctly. | ||
## Major upgrade (like upgrade from 1.7.0 to 1.8.0) | ||
|
||
Now assume you are upgrading from Seafile Windows Server 1.7.x to 1.8.y: | ||
### Run the database upgrade script | ||
|
||
- Go to seafile-server-1.8.y/upgrade | ||
- Right click the file upgrade_1.7_1.8.bat | ||
- Choose "run as administrator" | ||
|
||
### Copy avatars | ||
|
||
Copy all subfolders of ``seafile-server-1.7.0/seahub/media/avatars`` to ``seafile-server-1.8.0/seahub/media/avatars`` | ||
## Upgrading Windows Service | ||
|
||
If you have installed Seafile server as a Windows Service, you need to: | ||
|
||
- Run the old version of seafile windows server, right click the tray icon, and choose uninstall windows service in the menu | ||
- Exit the old version of seafile windows server | ||
- Start the new version of seafile windows server, right click the tray icon, and choose install as windows service in the menu |