标签:index cells title kill 1.5 ble types pac tab
前期准备:
关闭防火墙,centos的防火墙是firewalld,关闭防火墙的命令
1
|
systemctl stop firewalld.service |
关闭enforce
1
|
setenforce 0 |
centos 服务器版需安装 GNOME Desktop
1
|
yum groupinstall "GNOME Desktop" |
1.安装tigervncserver
1
|
yum install tigervnc-server tigervnc-server-module |
2.拷贝配置文件
1
|
cp /lib/systemd/system/vncserver @.service /etc/systemd/system/vncserver @:1.service |
3.进入到配置文件目录
1
|
cd /etc/systemd/system |
4.修改配置文件
1
|
vim vncserver@:1.service |
配置文件内容为:
[Unit] Description=Remote desktop service (VNC) After=syslog.target network.target [Service] Type=forking User=root ExecStart=/usr/bin/vncserver :1 -geometry 1280x1024 -depth 16 -securitytypes=none -fp /usr/share/X11/fonts/misc ExecStop=/usr/bin/vncserver -kill :1 [Install] WantedBy=multi-user.target
5. 启用配置文件
1
|
systemctl enable vncserver@:1.service |
6. 设置登陆密码
1
|
vncpasswd |
7. 启动vncserver
1
|
systemctl start vncserver@:1.service |
8 . 启动状态查看
1
|
systemctl status vncserver@:1.service |
9.查看端口状态
1
|
netstat -lnt | grep 590* |
10.查看报错信息
1
|
grep vnc /var/log/messages |
标签:index cells title kill 1.5 ble types pac tab
原文地址:http://www.cnblogs.com/shanwater/p/7795518.html