systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firewall开机启动firewall-cmd –state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)……继续阅读 » lc_soul 1411浏览 0个赞
//正整数/^[0-9]*[1-9][0-9]*$/;//负整数/^-[0-9]*[1-9][0-9]*$/;//正浮点数/^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$/;//负浮点数/^(-(([0-9]+\.[0-9]*[1-……继续阅读 » lc_soul 1389浏览 0个赞
11、后退 前进<input type="button" value="后退" /><input type="button" value="前进" />12、返回<form><input type="button&q……继续阅读 » lc_soul 1420浏览 0个赞
丢弃小数部分,保留整数部分parseInt(5/2)向上取整,有小数就整数部分加1Math.ceil(5/2)四舍五入Math.round(5/2)向下取整Math.floor(5/2)Math 对象的方法abs(x) 返回数的绝对值acos(x) 返回数的反余弦值asin(x) 返回数的反正弦值atan(x) 以介于 -PI……继续阅读 » lc_soul 1417浏览 0个赞
1、设置CookiesetCookie(参数名, 参数, expiredays)function setCookie(c_name, value, expiredays) { var exdate = new Date(); var times = exdate.getTime() + parseInt(expiredays * 24 ……继续阅读 » lc_soul 1422浏览 0个赞
yum remove Deployment_Guide-en-US finger cups-libs cups ypbindyum remove bluez-libs desktop-file-utils ppp rp-pppoe wireless-tools irda-utilsyum remove sendmail* samba* talk-ser……继续阅读 » lc_soul 1379浏览 0个赞
方法一:修改wp-config.php在wp-config.php中,添加以下两行内容:define(‘WP_HOME’,’http://www.newdomain.com’);define(‘WP_SITEURL’,’http://www.newdomain.……继续阅读 » lc_soul 1406浏览 0个赞
var audio = document.getElementById('audio'); document.addEventListener("WeixinJSBridgeReady", function() { audio.play(); audio.pause(); ……继续阅读 » lc_soul 1384浏览 0个赞
今天想监控下vps的流量 往上找了下 都是安装iftop这个工具 然后就遇到各种问题首先 yum install iftop返回:Loaded plugins: fastestmirrorSetting up Install ProcessLoading mirror speeds from cached hostfile * base: mi……继续阅读 » lc_soul 1455浏览 0个赞
注意事项这里测试的内存为 Ram+Swap的总和。Ram是指我们通常所指的内存,Swap指的是 突发内存 ,不可以长时间占用但是也是能用的。具体请百度。测试程序CentOS 系统:yum install wget -yyum groupinstall “Development Tools” -ywget https://……继续阅读 » lc_soul 1582浏览 0个赞