CentOS 6 (74)

subversion SVN centos 6

svn checkout http://xxxxx.rev.dedibox.fr/svn/projet /home/gestion/public_html #!/bin/shexport LANG=en_US.UTF-8SVN=/usr/bin/svnWEB=/home/gestion/public_html$SVN update $WEB --username xxxx --password xxxxx --non-interactive   find /home/gestion/public_html -name .svn -exec rm -rf {} \; svn add * svn -m first commit
Read more...

How To Configure Yum To Exclude A Mirror

Many of us have suffered from failing package repository mirrors. Some are slow, some won't have updated content, etc. You might want to remove/blacklist a particular mirror in your yum configuration. Before trying to remove a mirror, install the fastest mirror plugin. yum install yum-fastestmirror -y The fastest mirror plugin is capable of determining mirror speeds and cache it. If that works for you well and good. If not, manually exclude a mirror in /etc/yum/pluginconf.d/fastestmirror.conf. Use the exclude variable and set its value to the URL to be blacklisted. Example exclude = fedora.iitm.ac.in
Read more...

Linux下使用rsync最快速删除海量文件

1、先安装rsync: yum install rsync 2、建立一个空的文件夹: mkdir /tmp/test 3、用rsync删除目标目录: rsync --delete-before -a -H -v --progress --stats /tmp/test log 这样我们要删除的log目录就会被清空了,删除的速度会非常快。
Read more...

【MySQL】关于table cache的相关参数

一、状态值和变量: 1.1 在MySQL的show status中有2个状态值:Open_tables和Opened_tables。这2个值代表的意思如下: Open_tables :代表当前打开表的数量。 Opened_tables:代表自从MySQL启动后,打开表的数量。
Read more...

linux find

find /www_xxx_net -name "*.php"find /www_xxx_net -name "*.php"find /www_xxx_net -name "*.asp" | xargs rm -rf | xargs rm -rf
Read more...

linux 常用命令压缩,解压缩

实例 tar -czf domain.tar Domain/ tar -czf Dossiers.tar Dossiers/ 后台运行 nohup tar -czf domain.tar Domain/ & nohup tar -czf Dossiers.tar Dossiers/ & nohup tar -cf backup.tar Domain/ Dossiers/ logs/ & 名称 : tar (The GNU version of the tar archiving utility) 使用权限 : 所有使用者 使用方式 : tar [-czxf] [NAME] [FILES/DIRECTORIES] 说明 : 可以将多个文件或目录打包成一个文件,也可以将打包文件或压缩文件解包或解压缩。(tar原本只是用来将多个文件打包成一个文件的,不具备压缩功能,是后来加入了压缩功能。) 参数 : -c 打包,即创建一个新的包文件 -x 解包 -z 压缩或解压缩(-cz同时打包并压缩) -f 指定包文件的文件名 范例: tar -cf myfile.tar test1 test2 test/ 将文件test1、test2和目录test一起打包成myfile.tar tar -xf myfile.tar 将myfile.tar解包至当前目录 tar -czf myfile.tar.gz test1 test2 test/ 将文件test1、test2和目录test一起打包并压缩成myfile.tar.gz tar -xzf myfile.tar.gz 将压缩打包文件myfile.tar.gz解压缩并解包到当前目录 名称:gzip/gunzip(gzip, gunzip, zcat - compress or expand files) 使用权限 : 所有使用者 使用方式 : gzip…
Read more...

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php on line 191
Call Stack
#TimeMemoryFunctionLocation
10.0013414128{main}( ).../index.php:0
20.09624264488Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.09624264488Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.483811454576Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.484711478856Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.485811534184Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.486111561584require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.494711896776K2ControllerItemlist->execute( ).../k2.php:64
90.494711896776K2ControllerItemlist->display( ).../BaseController.php:710
100.505912803720K2ControllerItemlist->display( ).../itemlist.php:49
110.505912803720K2ControllerItemlist->display( ).../controller.php:19
120.508613017984Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.511213038672K2ViewItemlist->display( ).../ViewController.php:102
140.645216267040K2ViewItemlist->display( ).../view.html.php:1407
150.645216267040K2ViewItemlist->loadTemplate( ).../HtmlView.php:230
160.647516335512include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php' ).../HtmlView.php:701