欢迎各位兄弟 发布技术文章
这里的技术是共享的
#!/bin/bash
#
# this is the standard Drupal cron invocation that runs from cron
# this will flush the Page Cache when Minimum Cache Lifetime set to <none>
wget -O - -q -t 1 http://ykt.aaaaa.com/cron.php?cron_key=aaaaHsSyCSJGbbbbbbpagfMQk0
# use the sitemap and reload the Page Cache by accessing each page once
for file in /home/wwwroot/*
do
if [ -d "$file" ]
then
echo "$file is directory"
echo ${file}/public_html/public
if [ -d "${file}/public_html/public" ] ; then
\cp -f /home/wwwroot/ccccc_com/public_html/public/robots.txt ${file}/public_html/public
fi
elif [ -f "$file" ]
echo "$file is file"
done
for I in /www/wdlinux/nginx-1.8.1/conf/vhost/* ; do
sed -i 's/public\_html/public\_html\/public/g' $I
sed -i 's/\r//g' $I
for I in /www/wdlinux/httpd-2.2.31/conf/vhost/* ; do
/sbin/service mysqld status &> /dev/null
if [ $? -eq 0 ];then
/sbin/service mysqld restart
for file in /home/wwwroot/*/public_html ;do
if [ -d "$file" -a -f "${file}/.env" ] ;then
# echo $i
ENV=${file}/.env
sed -i 's@211.149.166.241@47.52.105.149@g' $ENV
sed -i 's/\r$//g' $ENV
for I in /home/wwwroot/* ; do
Frontcache=${I}/public_html/resources/views/frontcache
if [ -d $Frontcache ]; then
echo ${Frontcache}
rm -Rf ${Frontcache}/*
viewcache=${I}/public_html/storage/framework/views
if [ -d $viewcache ]; then
echo ${viewcache}
find ${viewcache} -name "*.php" | xargs rm -rf
#rm -Rf ${Frontcache}/*
logcache=${I}/public_html/storage/logs
if [ -d $logcache ]; then
echo ${logcache}
rm -f ${logcache}/laravel.log
https://jingyan.baidu.com/article/ca2d939d7e771eeb6c31ceb0.html 这个页面中有视频
不少朋友不知道Ai如何使用隔离模式,下面小编就来给大家讲讲,一起来看看吧!
function shipingzhongcustomsix_init() { $arg0 =arg(0);
if($arg0=='kfzx-bingzhuantu' || $arg0==
SEPTEMBER 06, 2016
转载:https://yplam.com/post/79
Drupal Console 是面向Drupal 8 的一套命令行工具,用来生成Drupal 8模板代码,并且可以跟Drupal 8应用进行交互。