摘要:
久了不装有点忘,百度临时看还有点蒙,渣渣 https://www.zentao.net/book/zentaopmshelp/90.html 1、将安装包直接解压到/opt目录下 特别说明: 不要 解压到别的目录再拷贝到/opt/,因为这样会导致文件的所有者和读写权限改变, 也不要解压后把整个目录7 阅读全文
摘要:
server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { index index.html; root /usr/local/ngin 阅读全文
摘要:
CentOS7默认的防火墙不是iptables,而是firewalle.要停止firewall systemctl disable firewalld.service systemctl stop firewalld.service systemctl status firewalld.servic 阅读全文
摘要:
1.切换到源码包: # cd /root/nginx-1.12.0 2.进行编译: # ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module 3.配置完成后,运行命令: 阅读全文
摘要:
update mto_post set author_id = floor(10+rand()*10) update mto_post t set t.created = concat('2019-',floor(1+rand()*10),'-',floor(rand()*3), floor(1+r 阅读全文
摘要:
解决方法:设置input的属性值为用readonly代替; 分析:1、readonly和disabled的区别readonly:针对input(text / password)和textarea有效,在设置为true的情况下,用户可以获得焦点,但是不能编辑,在提交表单时,输入项会作为form的内容提 阅读全文
摘要:
配置权重 upstream tomcats { server 172.21.13.165:8088 weight=10; server 172.21.13.81:8088 weight=1; } server { listen 80; #绕过跨域 这样后端那些接口需要跨域也不用单独配置了。这样 we 阅读全文
摘要:
Nginx的下载网址为:http://nginx.org/en/download.html Nginx源码下载 # mkdir /root/nginx # cd /root/nginx # wget http://nginx.org/download/nginx-1.12.2.tar.gz # ta 阅读全文
摘要:
通过网络同步时间 (1)首先安装 ntpdate 命令: yum install -y ntpdate (2)接着执行如下命令开始同步: ntpdate 0.asia.pool.ntp.org 若上面的时间服务器不可用,也可以改用如下服务器进行同步: time.nist.gov time.nuri. 阅读全文