Install openoffic in CentOS

Source: Internet
Author: User

Install openoffic in CentOS

Now I tried to install openoffice via yum. We need to download and install

Download openoffice

Openoffice

Select rpm for centos, and the number of digits depends on your system.

Create the directory [root @ localhost/] # mkdir openoffice/
  • 1
  • 2
  • 1
  • 2

Then upload the downloaded openoffice file through the file upload tool.

Install openoffice
View the file [root @ localhost/] # ls/root/openoffice/Apache_OpenOffice_4.1.3_Linux_x86-64_install-rpm_zh-CN.tar.gz unzip [root @ localhost/] # tar-zxvf/root/openoffice/Apache_OpenOffice_4.1.3_Linux_x86-64_install-rpm_zh-CN.tar.gz will be generated under the root directory folder zh-CN [root @ localhost/] # cd zh-CN/[root @ localhost zh-CN] # lslicenses readmes RPMS has three directories to go To the RPMS directory [root @ localhost zh-CN] # cd RPMS/view [root @ localhost RPMS] # ll
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

There are many rpm installation files in the RMPS directory. When you run the preceding installation command, the installation will be performed one by one based on the lazy installation package. Run [root @ localhost RPMS] # rpm-ivh *. rpm
  • 1
  • 2
  • 3
  • 4
  • 5
  • 1
  • 2
  • 3
  • 4
  • 5

Installed successfully!

Start openoffice
Start [root @ localhost program] # soffice -- headless -- accept = "socket, host = 127.0.0.1, port = 8100; urp; "-- nofirststartwizard & if the following error occurs [root @ localhost program] #/usr/lib64/libreoffice/program/soffice. bin X11 error: Can't open display: Set DISPLAY environment variable, use-display option or check permissions of your X-Server (See "man X" resp. "man xhost" for details) Run [root @ localhost program] # export DISPLAY =: 0.0 run the startup command again [root @ localhost program] # soffice -- headless -- accept = "socket, host = 127.0.0.1, port = 8100; urp; "-- nofirststartwizard & view listener port [root @ localhost program] # netstat-tln
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17

The red line indicates that the startup is successful.

Stop openoffice
View the process: [root @ localhost program] # ps-ef | grep soffice; root 12849 12832 0 00:00:00 pts/1/usr/lib64/libreoffice/program/soffice. bin -- headless -- accept = socket, host = 127.0.0.1, port = 8100; urp; -- nofirststartwizardroot 12877 3234 0 00:00:00 pts/1 grep soffice kill the process [root @ localhost program] # kill-9 12849 listen to the port again [root @ localhost program] # netstat-tln
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

At this time, there should be no port 8100

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.