Install openoffic in CentOS
Now I tried to install openoffice via yum. We need to download and install
Download openofficeOpenoffice
Select rpm for centos, and the number of digits depends on your system.
Create the directory [root @ localhost/] # mkdir openoffice/
Then upload the downloaded openoffice file through the file upload tool.
Install openofficeView 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
Installed successfully!
Start openofficeStart [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 openofficeView 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
At this time, there should be no port 8100