autoDevops,CI,CD
ngx_http_mp4_module 模块示例配置指令 mp4 mp4_buffer_size mp4_max_buffer_size模块ngx_http_mp4_module为H.264/AAC文件,主要是以.mp4、.m4v、和.m4a为扩展名的文件,提供伪流媒体服务端支持。伪流媒体是与Flash播放器一起配合使用的。播放器向服务端发送HTTP请求,请求中的查询串是以开始时间为参数的(以start简单命名),而服务端以流响应,这样流的开始位置就能于请求中的时间相对应。例如: http://example.com/elephants_dream.mp4?start=238.88
这样就允许随意拖放,或者从节目的中途开始回放。为了支持随机访问,H.264格式将元数据放到所谓的"moov atom"中。"moov atom"是文件的一部分,放有整个文件的索引信息。为了开启回放,播放器首先需要读取元数据。这是通过发送一个特别的以start=0为参数请求来完成的。许多编码软件会将元数据插入到文件末尾,这样做对伪流媒体来说是不好的:元数据需要在文件开始时定位好,否则整个文件需要下载完才能开始播放。如果文件组织的很好(将元数据放到文件开头),那么nginx仅仅返回文件的内容,否则,nginx不得...
1,首先,需要更新系统。#: yum update -y#: rebbot2,然后,安装gnome环境包。 #: yum groupinstall "GNOME Desktop" "Graphical Administration Tools" -y现在,我们要在服务器上安装 VNC 服务器了。4. yum 安装vnc #:yum install -y tigervnc tigervnc-server tigervnc-server-module -y5 配置vnc编辑# vim /lib/systemd/sytem/vncserver@.service找到下面这几行,用自己的用户名替换掉 。我的用户名是 root 所以我用 root 来替换掉 :ExecStart=/sbin/runuser -l -c "/usr/bin/vncserver %i"PIDFile=/home//.vnc/%H%i.pid替换为ExecStart=/usr/sbin/runuser -l root -c "/usr/bin/vncserver :1 -geometry 1024x768 -depth 16"PIDFile=/root/.vnc/%H%i.pid将 /lib/systemd/system/vncserver@.service 改为 /lib/systemd/system/vncserver@:1.service#mv /lib/systemd/system/vncserver@.service /lib/systemd/system/vncserver@:1.service重启 systemd#systemctl daemon-reload6.最后还要设置一下用户的 VNC 密码。要设置某个用户的密码,必须要有能通过 sudo 切换到用户的权限,这里我用 root 的...
设置域名301重定向 301跳转通常用在网站换域名和为了保持链接统一性所用的。比如你原来的域名www.a.com现在换成www.b.com,用了301跳转后,访问www.a.com/about.html就会自动变成www.b.com/about.html 。备注:在使用301永久性重定向命令让多个域名指向网站主域名时,也不会对网站的排名产生负面影响。下面分别对不同场景下使用301跳转的设置方法进行介绍:1、IIS下301设置 Internet信息服务管理器 -> 虚拟目录 -> 重定向到URL,输入需要转向的目标URL,并选择“资源的永久重定向”。2、ASP下的301转向代码 <%@ language="VBScript"> <% Response.Status=”301 Moved Permanently” Response.AddHeader “Location”, “http://www.xxx.com/” %> 3、PHP下的301转向代码 header(”HTTP/1.1 301 Moved Permanently”); header(”Location: h...
1》修改:/etc/inittab --》启动模式改为图形启动:52》修改:/etc/gdm/custom.conf --》[xdmcp]enable=1port=1773》修改:/etc/X11/xdm/Xaccess --》* # any host can get a login window4》修改:/etc/X11/xdm/xdm-config --》DisplayManager.requestPort:0 前面加!号注释掉此行,这步必须做,然后xmanager就可以自动认出5》linux启动xdm服务 --》# xdm 启动xdm服务,启动177端口,这一步最重要# netstat -antup | grep 177 --测试开启udp 0 0 :::177 :::* 4591/xdm自动启动xdm,那么请在/etc/rc.d/rc.local文件尾部加入下边xdm的路径# which xdm/usr/bin/xdm1、配置远程桌面端口(1)如果是GDM :编辑/etc/gdm/custom.conf,内容如下:[daemon][security]AllowRemoteRoot=trueDisallowTCP=false[xdmcp]Port=177Enable=true[gui][greeter][chooser][debug][servers] 然后# gdm -restart 启动进入图形界面后必须设置允许远程连接! (2)如果是KDM:编辑/usr/share/config/kdm/Xaccess ,内容如下:#* #any host can get a login...
1,安装oracle gnome 桌面环境. yumgroupinstall -y "Desktop" "Desktop Platform" "Desktop Platform Development" "Fonts" "GeneralPurpose Desktop" "Graphical Administration Tools" "Graphics Creation Tools" "Input Methods" "X WindowSystem" "Chinese Support " "Internet Browser" # vi /etc/inittabid:5:initdefault: 然后重启系统,后再执行以下命令。yum groupinstall "Desktop"yum groupinstall "X Window System"yum groupinstall "Chinese Support" 安装完成后,再重启系统。 CentOS Starting udev: udevd[360]: GOTO 'pulseaudio_check_usb' has no matching label in: '/lib/udev/rules.d/90-pulseaudio.rules'udevd[360]: GOTO 'pulseaudio_check_usb' has no matching label in: '/lib/udev/rules.d/90-pulseaudio.rules'如果不执行,启动系统会出现不能加载桌面环境。
CentOS下httpd增加模块 通常我们在部署LAMP时,安装完httpd服务,用我们整理的httpd.conf替换默认的httpd.conf重启httpd服务时可能会遇到某些模块未编译的情况,第一反应是要重新编译,但是apache是支持动态扩展模块的,也就是说不需要重新编译整个apache,就像的PHP phpize工具一样,能够单独编译某个扩展,并加入到已有的环境中。操作步骤:1.下载相应的httpd-x.x.xx源码2.安装扩展(以module_file_cache为例)#cd httpd-x.x.xx/modules/cache#apxs -i -a -c mod_file_cache.c3.修改配置文件一般扩展安装成功后会自动修改配置,但是需要我们确认配置文件是否配置正确,我测试在2完成之后,httpd.conf文件中自动增加了:LoadModule file_cache_module /usr/lib64/httpd/modules/mod_file_cache.so可以修改为:LoadModule file_cache_module modules/mod_file_cache.so4.重启httpd#/etc/init.d/httpd restart另外增加mod_mem_cache时提示即:#apxs -c -i mod_mem_cache.cmod_mem_cache.so: undefined symbol: cache_find其实是这样的指令:#apxs -c -i mod_mem_cache.c cache_cache.c cache_pqueue.c cache_hash.c
Centos6.5 linux解决xhost: unable to open display 实用技巧:在Linux下设置xhost方法步骤第一步:用root登陆linux,启动vnc服务;第二步:根据vnc起来的端口,设置exportDISPLAY=localhost:1(1表示vnc在第一个tty上启动的),vnc的启动信息见附件1;第三步:执行xhost +,并且提示“access controldisabled, clients can connect from any host”才正确。linux下的操作日志如下:[root@localhost ~]# vncserverNew'localhost:1 (root)' desktop is localhost:1Startingapplications specified in /root/.vnc/xstartupLog file is/root/.vnc/localhost:1.log[root@localhost ~]# exportDISPLAY=localhost:1[root@localhost ~]# xhost +accesscontrol disabled, clients can connect from anyhost 在设置xhost时,出现了unable的问题。使用上诉方法就可以搞定。
PrerequisitesRStudio Server v0.99 requires RedHat or CentOS version 5.4 (or higher).RStudio Server has several dependencies on packages (including R itself) found in the Extra Packages for Enterprise Linux (EPEL) repository. If you don’t already have this repository available you should add it to your system using the instructions found on the Fedora EPEL website.After enabling EPEL you should then ensure that you have installed the version of R available from EPEL. You can do this using the following command:$ sudo yum install R RedHat/CentOS 6 and 7To download and install RStudio Server open a terminal window and execute the commands corresponding to the 32 or 64-bit version as appropriate. 64bitSize: 33.4 MBMD5: 216b8e7f7ae28203900c63ac163c1d0cVersion: 0.99.446Released: 2015-06-16$ wget http://download2.rstudio.org/rstudio-server-rhel-0.99.446-x86_64.rpm$ sudo yum install --nogpgcheck rstudio-server-rhel-0.99.446-x86_64.rpm32bitSize: 32.5 MBMD5: 2...
centOS6.5上安装RStudio Server 我的系统是64位的centOS 6.5。安装RStudio Server的预览版,当时版本为64位的0.98.766。安装时有如下报错[root@supstat download]# rpm -ivh rstudio-server-0.98.766-x86_64.rpmerror: Failed dependencies: libcrypto.so.6()(64bit) is needed by rstudio-server-0.98.766-1.x86_64 libgfortran.so.1()(64bit) is needed by rstudio-server-0.98.766-1.x86_64 libssl.so.6()(64bit) is needed by rstudio-server-0.98.766-1.x86_64参考stackoverflow上的一篇文章:yum install libcrypto.so.6 -yyum install libgfortran.so.1 -yyum install libssl.so.6 -yyum install openssl098e-0.9.8e -yyum install gcc41-libgfortran-4.1.2 -yyum install pango-1.28.1 -y wget ftp://rpmfind.net/linux/centos/6.5/os/x86_64/Packages/compat-libgfortran-41-4.1.2-39.el6.x86_64.rpmrpm -Uvh compat-libgfortran-41-4....
最新评论