当前位置: 首页 > news >正文

接做效果图网站网页设计需要学什么

接做效果图网站,网页设计需要学什么,seo网站设计多少钱,视频链接生成centos系列图形化 VNC server配置,及VNC viewer连接 0.VNC服务介绍 VNC英文全称为Virtual Network Computing,可以位操作系统提供图形接口连接方式,简单的来说就是一款桌面共享应用,类似于qq的远程连接。该服务是基于C/S模型的。…

centos系列图形化 VNC server配置,及VNC viewer连接

0.VNC服务介绍

VNC英文全称为Virtual Network Computing,可以位操作系统提供图形接口连接方式,简单的来说就是一款桌面共享应用,类似于qq的远程连接。该服务是基于C/S模型的。常用的VNC应用有TigerVNC和RealVNC,后者是一款商业软件。每一款应用一般都会有对应的VNC Server和VNC Viewer,对应了C/S的模型。VNC Server是提供连接接口的服务端使用的。VNC Viewer是连接服务器的客户端使用的。

1、自行配置epel源

[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)
[root@localhost ~]# ls /etc/yum.repos.d/
CentOS-Base.repo CentOS-CR.repo CentOS-Debuginfo.repo CentOS-fasttrack.repo CentOS-Media.repo CentOS-Sources.repo CentOS-Vault.repo CentOS-x86_64-kernel.repo epel.repo
[root@localhost ~]#

2、安装GUI的GNOME Desktop桌面化,并开启桌面化重启

[root@localhost ~]# yum groups list
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Installed Environment Groups:
GNOME Desktop
Available Environment Groups:
Minimal Install
Compute Node
Infrastructure Server
File and Print Server
Cinnamon Desktop
MATE Desktop
Basic Web Server
Virtualization Host
Server with GUI
KDE Plasma Workspaces
Development and Creative Workstation
Available Groups:
Cinnamon
Compatibility Libraries
Console Internet Tools
Development Tools
Educational Software
Electronic Lab
Fedora Packager
General Purpose Desktop
Graphical Administration Tools
Haskell
LXQt Desktop
Legacy UNIX Compatibility
MATE
Milkymist
Scientific Support
Security Tools
Smart Card Support
System Administration Tools
System Management
TurboGears application framework
Xfce
Done

[root@localhost ~]# yum groups install “GNOME Desktop” -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Maybe run: yum groups mark install (see man yum)
No packages in any requested group available to install or update

[root@localhost ~]# systemctl set-default graphical.target

[root@localhost ~]# reboot

3、安装tigervnc服务,并配置root,连接用户密码

[root@localhost ~]# yum install tigervnc* -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Package tigervnc-server-1.8.0-33.el7_9.x86_64 already installed and latest version
Package tigervnc-server-applet-1.8.0-33.el7_9.noarch already installed and latest version
Package tigervnc-1.8.0-33.el7_9.x86_64 already installed and latest version
Package tigervnc-icons-1.8.0-33.el7_9.noarch already installed and latest version
Package tigervnc-server-minimal-1.8.0-33.el7_9.x86_64 already installed and latest version
Package tigervnc-license-1.8.0-33.el7_9.noarch already installed and latest version
Package tigervnc-server-module-1.8.0-33.el7_9.x86_64 already installed and latest version
Nothing to do

[root@localhost ~]# vncpasswd
Password: \\自己设密码Pass2024
Verify: \\自己设密码Pass2024
Would you like to enter a view-only password (y/n)? y
Password: \\自己设密码Pass2024
Verify: \自己设密码Pass2024

4、/bin命令,vnc服务启动

[root@localhost ~]# /usr/sbin/runuser -l root -c /usr/bin/vncserver %i

New ‘localhost.localdomain:1 (root)’ desktop is localhost.localdomain:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log

[root@localhost ~]# ps -ef |grep vnc
root 3106 1 2 11:01 pts/1 00:00:00 /usr/bin/Xvnc :1 -auth /root/.Xauthority -desktop localhost.localdomain:1 (root) -fp catalogue:/etc/X11/fontpath.d -geometry 1024x768 -httpd /usr/share/vnc/classes -pn -rfbauth /root/vnc/passwd -rfbport 5901 -rfbwait 30000
root 3113 1 0 11:01 pts/1 00:00:00 /bin/sh /root/.vnc/xstartup
root 3500 1208 0 11:01 pts/1 00:00:00 grep --color=auto vnc
[root@localhost ~]# ss -atnl
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 100 127.0.0.1:25 :
LISTEN 0 5 *:5801 :
LISTEN 0 5 *:5901 (默认连接端口5900+1 Xvnc :1为几的规律 ) :

5、/bin命令,vnc服务停止

[root@localhost ~]# ps -ef |grep vnc
root 3106 1 0 11:01 pts/1 00:00:00 /usr/bin/Xvnc :1 -auth /root/.Xauthority -desktop localhost.localdomain:1 (root) -fp catalogue:/etc/X11/fontpath.d -geometry 1024x768 -httpd /usr/share/vnc/classes -pn -rfbauth /root/vnc/passwd -rfbport 5901 -rfbwait 30000
root 3113 1 0 11:01 pts/1 00:00:00 /bin/sh /root/.vnc/xstartup
root 3760 1208 0 11:04 pts/1 00:00:00 grep --color=auto vnc
[root@localhost ~]# /usr/bin/vncserver -kill :1
Killing Xvnc process ID 3106
[root@localhost ~]# ps -ef |grep vnc
root 3784 1208 0 11:04 pts/1 00:00:00 grep --color=auto vnc

[root@localhost ~]# ls /tmp/.X11-unix/
X0 X2 X4

//这个临时文件,可能需要rm -rf /tmp/.X11-unix/*,避免产生Xvnc :2-10,无法用kill :1管控

6、/bin命令,vnc服务启动后,VNC viewer连接

IP + 5901 自己设密码Pass2024

亲测正常

7、自定义开机自启脚本

[root@localhost ]# vi /etc/init.d/vncserver.sh
#!/bin/bash

LOCKFILE=/var/lock/subsys/vncserver

case “$1” in
start)
if [ -f $LOCKFILE ]
then
echo $0 already running.
exit 1
fi
echo -n $“Starting vnc server:”
/usr/sbin/runuser -l root -c /usr/bin/vncserver %i
touch $LOCKFILE
;;
stop)
if [ ! -f $LOCKFILE ]
then
echo $0 already stopping.
exit 1
fi
echo -n $“Stopping vnc server:”
/usr/bin/vncserver -kill :1

rm -rf /tmp/.X11-unix/*

rm -f $LOCKFILE
;;
restart)
$0 stop
$0 start
;;
status)
if [ -f $LOCKFILE ]
then
echo $0 started.
else
echo $0 stopped.
fi
;;
*)
echo “Usage: $0 [start|stop|status]”
exit 1

esac
exit 0

[root@localhost ]# chmod +x /etc/init.d/vncserver.sh

[root@localhost init.d]# vi /etc/rc.local

#最后二行

/etc/init.d/vncserver.sh stop
/etc/init.d/vncserver.sh start

[root@localhost ]# chmod +x /etc/rc.local

8、重启检验

[root@localhost ~]# reboot

[root@localhost ~]# ps -ef |grep vnc
root 3106 1 2 11:01 pts/1 00:00:00 /usr/bin/Xvnc :1 -auth /root/.Xauthority -desktop localhost.localdomain:1 (root) -fp catalogue:/etc/X11/fontpath.d -geometry 1024x768 -httpd /usr/share/vnc/classes -pn -rfbauth /root/vnc/passwd -rfbport 5901 -rfbwait 30000
root 3113 1 0 11:01 pts/1 00:00:00 /bin/sh /root/.vnc/xstartup
root 3500 1208 0 11:01 pts/1 00:00:00 grep --color=auto vnc
[root@localhost ~]# ss -atnl
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 100 127.0.0.1:25 :
LISTEN 0 5 *:5801 :
LISTEN 0 5 *:5901 (默认连接端口5900+1 Xvnc :1为几的规律 )

小编有话要说,看到最后,测试成功,觉得有用的话,麻烦点赞或收藏,或评论大家一起讨论

http://www.hkea.cn/news/29455/

相关文章:

  • 怎样做网站轮播今日国内重大新闻事件
  • 想给大学做网站百度网盘搜索神器
  • jsp网站开发论文官方app下载安装
  • 关于机场建设的网站今日疫情最新情况
  • 网站域名注册服务商google浏览器官方
  • 通过网站开发工具怎么改自动跳网站百度指数有哪些功能
  • 可以发锚文本的网站百度搜索官方网站
  • 东莞网站建设企慕简述如何优化网站的方法
  • 可以做网站的公司seo外包
  • 自己怎么做网站视频赚钱5g网络优化培训
  • 数据库修改网站管理员密码seo网站有优化培训吗
  • 福田做商城网站建设找哪家公司好抖音怎么运营和引流
  • 厘米售卡站怎么做网站禁止搜索引擎收录的方法
  • 网站首页滚动图片怎么做谷歌搜索关键词排名
  • 嵩县网站开发友情链接获取的途径有哪些
  • 国家企业信息公示网(广东)海南快速seo排名优化
  • 高端网站设计 上海徐州seo排名公司
  • 泰安网站建设公司排名石家庄最新消息
  • 域名只做邮箱没网站要备案吗常见的网络推广方式包括
  • 昆山建设局网站360搜索首页
  • 正常做网站多少钱无锡网站制作无锡做网站
  • php做网站csdn网站seo公司哪家好
  • 今日头条建站工具何鹏seo
  • wordpress 培训模板优化落实疫情防控新十条
  • 关于做外汇现货的网站太原整站优化排名外包
  • 星悦做任务网站是新网站百度收录
  • 十大营销网站seo关键词查询工具
  • 怎么查询网站所有关键词靠谱的广告联盟
  • 超酷的网站设计磁力搜索引擎
  • 网站建设写程序用什么软件成都疫情最新消息