In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Centos7 installation graphical interface:
Step 1: install the Gnome package
Enter the following command at the command line to install the Gnome package.
# yum groupinstall "GNOME Desktop"Graphical Administration Tools"
Step 2: update the run level of the system.
# ln-sf / lib/systemd/system/runlevel5.target / etc/systemd/system/default.target
Step 3: restart the machine. Start to enter the graphical interface by default.
# reboot
/ / Note: when rebooting to enter the interface, you may encounter the following situations:
Initial setup of CentOS Linux 7 (core)
1) [x] Creat user 2) [!] License information
(no user will be created) (license not accepted)
Please make your choice from above ['q' to quit |'c' to continue |'r' to refresh]:
Solution:
Enter "1" and press Enter
Enter "2" and press Enter
Enter "Q" and press Enter
Enter "yes" and press Enter
First of all, try to see if the server has VNC installed.
[root@wic] # rpm-Q tigervnc tigervnc-server
If it is not installed, it will appear directly.
Package tigervnc is not installedpackage tigervnc-server is not installed
If you do not have a desktop installed, install GNOME Desktop first
[root@wic ~] # yum groupinstall GNOME Desktop
Step 1: install VNC packages:
[root@wic ~] # yum install tigervnc-server-y
The second step is to modify the configuration information, create a folder under / etc/systemd/system/ and copy the example config file from / lib/systemd/system/vncserver@.service to vncserver@:1.service
[root@wic ~] # cp / lib/systemd/system/vncserver@.service / etc/systemd/system/vncserver@:1.service
Then open the configuration file / etc/systemd/system/vncserver@:1.service to replace the default user name
Find this business.
ExecStart=/sbin/runuser-l-c "/ usr/bin/vncserver% I" PIDFile=/home//.vnc/%H%i.pid
Here I log in directly as the root user, so I replace it with
ExecStart=/sbin/runuser-l root-c "/ usr/bin/vncserver% I" PIDFile=/root/.vnc/%H%i.pid
Step 3, reload systemd
[root@wic ~] # systemctl daemon-reload
Step 4, set the password for VNC
[root@wic ~] # vncpasswd
Step 5, because Centos 7 on my side uses iptable firewall, so
Vim / etc/sysconfig/iptables
Add in the appropriate position
-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 5900 tcp 5903-j ACCEPT
Restart iptable
Service iptables restart
If you are using Centos 7 default firewall, you may need to
[root@wic] # firewall-cmd-- permanent-- add-service vnc-server [root@wic ~] # systemctl restart firewalld.service
Step 6: start and enable VNC by default
[root@wic ~] # systemctl enable vncserver@:1.service [root@wic ~] # systemctl start vncserver@:1.service
So basically the Centos side is set up, and the Windows side is going to the next VNC Viewer software. Connect to VNCSERVER_IP:1 and try it. It looks a little shabby, but it goes up.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.