个人常用命令code

优选, 页面设计
浏览次数 374
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

/*Centos安装命令*/

/etc/init.d/bt default

/*BT 的登陆信息*/

define( 'ALLOW_UNFILTERED_UPLOADS', true );

/*允许上传其他格式,比如svg,在wp-config.php*/

pgrep -x mysqld &> /dev/null
if [ $? -ne 0 ];then
bash /www/server/panel/script/rememory.sh
/etc/init.d/mysqld start
fi

/*宝塔面板如遇MySQL停止,自动重启Mysql*/

# BEGIN WordPress 
RewriteEngine On 
RewriteBase / 
RewriteRule ^index\.php$ - [L] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /index.php [L] 
# END WordPress

/*标准wordpress .htaccess写法*/

.fa-spin {
-webkit-animation: fa-spin 2s linear infinite;
animation: fa-spin 2s linear infinite;
}

/*旋转任何元素*/

.owl-dot span {
width: 50px;
height: 2px;
border-radius: 0;
}
.owl-dot.active span {
background: #333 !important;
box-shadow: none;
}
.state_mobiles .owl-dot span {
width: 16px;
}
.w-gallery.cols_7 .w-gallery-item,
.w-gallery[class*="cols_"] img{
width: 21px !important;
}
.owl-dots {
padding-top: 0;
margin-top: -2rem;
position: relative;
}

/*Carousel的点改为线段,放在图片上*/

[_remote_ip] — This tag is replaced by the submitter’s IP address.

[_user_agent] — This tag is replaced by the submitter’s user agent (browser) information.

[_url] — This tag is replaced by the URL of the page in which the contact form is placed.

/*Special mail-tags for submissions#Special mail-tags for submissions*/

关注微信公众号

菜单