You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
3.0 KiB

преди 3 години
  1. ### Foreword
  2. The automatic script script uses Docker to install the runtime environment for Linux servers. If your server does not have a Docker service, the script will try to install it. The process of installing Docker may be a bit slow. If you have already installed docker, the script will omit some of the steps to speed up the ShowDoc installation.
  3. When the script fails to install Docker, you can manually install Docker before executing the script. If you still have Docker installed, you can (un/re-)install and debug it step by step according to this tutorial: [ByDocker.md](https://github.com/star7th/showdoc/blob/master/documentation/en/ByDocker.md)
  4. If the server system itself does not support Docker, you can only run ShowDoc by manually installing the PHP environment: [DeployManual.md](https://github.com/star7th/showdoc/blob/master/documentation/en/DeployManual.md)
  5. ### Instructions
  6. ```
  7. # Download the script and give permission
  8. Wget https://www.showdoc.cc/script/showdoc;chmod +x showdoc;
  9. # Default installation is the Chinese version. If you want to install the English version, please add the en parameter, such as ./showdoc en
  10. ./showdoc en
  11. ```
  12. ### Post-installation instructions
  13. Once installed, the ShowDoc data will be stored in the /showdoc_data/html directory. The ./showdoc script can be placed in any directory for later use. You can also re-download it from the official address.
  14. You can open ShowDoc by opening http://your-domain.com:4999 (replace your-domain.com with your server domain name or IP-address). The default admin account is Username: showdoc Password: 123456 . After logging in, you can see the management background entry in the upper right. It is recommended to change the password after login.
  15. For issues or suggestions on ShowDoc, please go to https://github.com/star7th/showdoc for an issue.
  16. ### Development & Contribution
  17. Please refer to: [Development&Contribution.md](https://github.com/star7th/showdoc/blob/master/documentation/en/Development&Contribution.md)
  18. ### Upgrade from manual mode to automatic script mode
  19. If you have previously installed ShowDoc manually, consider upgrading to this automatic scripting method. After upgrading to the script mode, you can use the automation features of the script, such as upgrading to the latest version, restarting, uninstalling, and so on.
  20. Upgrade method:
  21. 1, First refer to the previous section (Post-installation instructions), then install ShowDoc on the server
  22. 2, The original ShowDoc directory Sqlite / showdoc.db.php override /showdoc_data/html/Sqlite/showdoc.db.php, Public / Uploads override /showdoc_data/html/Public/Uploads
  23. 3, Execute the command
  24. ```
  25. Chmod 777 -R /showdoc_data/html
  26. ./showdoc update
  27. ```
  28. ### Other commands
  29. ```
  30. # Attach the script to other commands, so you can use it when managing ShowDoc.
  31. # Stop ShowDoc
  32. ./showdoc stop
  33. # Restart ShowDoc
  34. ./showdoc restart
  35. # Update ShowDoc to the latest version
  36. ./showdoc update
  37. # Uninstall ShowDoc
  38. ./showdoc uninstall
  39. ```