autoDevops,CI,CD
设置域名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....
centos7安装eclipseEclipse是一个集成开发环境(IDE),包含一个基工作区和定制环境的可扩展插件系统。大部分使用 Java 编写,Eclipse 可以用来开发应用程序。通过各种插件,Eclipse 也可以用于其他编程语言开发应用程序:Ada、ABAP、C、C++、COBOL、 Fortran、Haskell、 JavaScript、Lasso、Natural、Perl、 PHP、 Prolog、 Python、Ruby、Scala、Clojure、 Groovy、Scheme 和 Erlang。它也可以用来开发Mathematica软件包。开发环境包括 Eclipse Java 开发工具(JDT)支持 Java与Scala,Eclipse CDT C / C + +和Eclipse PDT PHP,等等。安装1、安装javayum install java
yum (全称为 Yellow dog Updater, Modified),能够从指定的服务器自动下载gz包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软体包,无须繁琐地一次次下载、安装。yum提供了查找、安装、删除某一个、一组甚至全部软件包的命令,而且命令简洁而又好记。yum的命令形式一般是如下:yum [options] [command] [package ...]其中的[options]是可选的,选项包括-h(帮助),-y(当安装过程提示选择全部为"yes"),-q(不显示安装的过程)等等。[command]为所要进行的操作,[package ......
查看python的版本[plain] view plaincopy#python -V Python 2.6.6 1.下载Python-2.7.3[plain] view plaincopy#wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2 2.解压[plain] view plaincopy#tar -jxvf Python-2.7.3.tar.bz2 3.更改工作目录[plain] view plaincopy#cd Python-2.7.3 4.安装[plain] view plaincopy#./configure #make all #make install #make clean #make distclean 5.查看版本信息[plain] view plaincopy#/usr/local/bin/python2.7 -V 6.建立软连接,使系统默认的 python指向 python2.7[plain] view plaincopy#mv /usr/bin/python /usr/bin/python2.6.6 #ln -s /usr/local/bin/python2.7 /usr/bin/python 7.重新检验Python 版本[plain] view plaincopy#python -V 8解决系统 Python 软链接指向 P...
ubuntu 12.04下apache2+tomcat7用proxy_ajp 整合步骤 开始操作前,首先下载需要的安装包。apache2:http://httpd.apache.org/download.cgiapr和apr-util:http://apr.apache.org/tomcat7:http://tomcat.apache.org/download-70.cgijdk:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html东西准备好了之后开始编译、安装。一、编译aprtar -zxvf apr-1.5.0.tar.gzcd apr-1.5.0./configure --prefix=/usr/local/apr-httpd/makemake install二、编译apr_utiltar -zxvf apr-util-1.5.3.tar.gzcd apr-util-1.5.3./configure --prefix=/usr/local/apr-util-httpd/--with-apr=/usr/local/apr-httpd/makemake install三、编译apache2tar -zxvf httpd-2.2.26.tar.gzcd httpd-2.2.26./configure --prefix=/usr/local/apache2/--with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/--enable-so --enable-mods-shared=most --enable-rewrite=shared --enable-proxy=shared --enable-proxy-ajp=shared --enable-proxy-balancer=shared -...
最新评论