Advertisement
rama_astadipati

Setup LibreOffice Centos

Sep 10th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. 7. instalasi modul tambahan di centos ikuti langkah2 dibawah ini :
  2. chown -R apache:apache /var/www/html/
  3.  
  4. yum -y update
  5. yum -y install nano zip unzip libreoffice python
  6.  
  7. nano /etc/systemd/system/soffice.service
  8.  
  9. # Start File #
  10. [Unit]
  11. Description=Soffice Service
  12. After=network.target remote-fs.target nss-lookup.target
  13.  
  14. [Service]
  15. Type=simple
  16. ExecStart=/usr/lib64/libreoffice/program/soffice --nofirststartwizard --headless --norestore --invisible "--accept=socket,host=localhost,port=6969,tcpNoDelay=1;urp;"
  17. RestartSec=5
  18. ExecStop=/usr/bin/pkill -F /var/run/soffice.pid
  19. PIDFile=/var/run/soffice.pid
  20.  
  21. [Install]
  22. WantedBy=multi-user.target
  23. # End File #
  24.  
  25. systemctl daemon-reload
  26. systemctl start soffice.service
  27. systemctl status soffice.service
  28. systemctl enable soffice
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement