VIM 备忘录
翻页 向上半页 control + d 向下半页 control + u 向上整页 control + f 向下整页 control + b 向上一行 control + e 向下一行 control + y 鼠标位置 屏幕中央 zz 屏幕顶部 zt …
Linux, 一种计算机操作系统, 是自由软件和开放源代码发展中最著名的例子。
What We’re Using The server is Ubuntu 16.04, , we install Nginx 1.13 and PHP 7.2. The example PHP applications are Laravel 5.5. PLUS Docker ENV: https://github.com/yao3060/docker TL;DR Here’s the …
生成ssh公钥密钥对:参考 2. 进入/root/.ssh目录下, 将公钥复制到 authorized_keys 文件。 3. 下载私钥 id_rsa,这样,便可以通过私钥来免密登录服务器了! 现在可以在本地 docker 起一台ubuntu 虚拟机
apt install mysql-server, 莫名其妙的就装完了,都没有让我设置密码,现在只能通过其他方式来重置密码。 然后就可以通过 SQL 修改 root 密码了
Today we will be going through the steps to install Oracle Java JDK 11 / 8 on Ubuntu 18.04. Java SDK is the base for the JAVA developers, and this guide will be …
一、proxy_pass的nginx官方指南 nginx中有两个模块都有proxy_pass指令。 ngx_http_proxy_module的proxy_pass: ngx_stream_proxy_module的proxy_pass: 二、两个proxy_pass的关系和区别 在两个模块中,两个proxy_pass都是用来做后端代理的指令。ngx_stream_proxy_module模块的proxy_pass指令只能在server段使用使用, 只需要提供域名或ip地址和端口。可以理解为端口转发,可以是tcp端口,也可以是udp端口。ngx_http_proxy_module模块的proxy_pass指令需要在location段,location中的if段,limit_except段中使用,处理需要提供域名或ip地址和端口外,还需要提供协议,如”http”或”https”,还有一个可选的uri可以配置。 三、proxy_pass的具体用法 ngx_stream_proxy_module模块的proxy_pass指令 ngx_http_proxy_module模块的proxy_pass指令 四、proxy_pass后,后端服务器的url(request_uri)情况分析 文件: /data/www/test/test.php 通过查看 $_SERVER[‘REQUEST_URI’] 的值,我们可以看到每次请求的后端的request_uri的值,进行验证。 小结 情形A和情形B进行对比,可以知道proxy_pass后带一个URI,可以是斜杠(/)也可以是其他uri,对后端request_uri变量的影响。情形D说明,当location为正则表达式时,proxy_pass不能包含URI部分。情形E通过变量($request_uri, 也可以是其他变量),对后端的request_uri进行改写。情形F和情形G通过rewrite配合break标志,对url进行改写,并改写后端的request_uri。需要注意,proxy_pass地址的URI部分在情形G中无效,不管如何设置,都会被忽略。
cp (复制档案或目录) [root@linux ~]# cp [-adfilprsu] 来源档(source) 目的檔(destination) [root@linux ~]# cp [options] source1 source2 source3 …. directory 参数: -a :相当于 -pdr 的意思; -d :若来源文件为连结文件的属性(link file),则复制连结文件属性而非档案本身; -f :为强制 (force) 的意思,若有重复或其它疑问时,不会询问使用者,而强制复制; -i …
1.时区设置 有些时候,当你在PHP里使用date或mktime函数时,由于时区的不同,它会显示出一些很奇怪的信息。下面是解决这个问题的方法之一。就是设置你的服务器的时区。你可以在这里找到所有支持的时区的清单。 [code]SetEnv TZ Australia/Melbourne[/code] 2. 搜索引擎友好的301永久转向方法 为什么这是搜索引擎友好的呢?因为现在很多现代的搜索引擎都有能根据检查301永久转向来更新它现有的记录的功能。
版本是 3.2.1 在原本的服务器上运行无错,移植到新的服务器就有这个问题,大概就是服务器配置的缘故了。 官方上也相关的文章。http://wordpress.org/support/topic/25-imagemedia-uploader-problems 是apache Mod_Security 的缘故。如果你能够修改你服务器的httpd.conf文件的话,删除里面关于mod_security部分就可以了。不过多数wordpress玩家是没有权限修改这个文件的,那就只好修改.htaccess文件了。在.htaccess文件里面加上一行: SecFilterEngine Off SecFilterScanPOST Off 这样就可以关闭 Mod_Security。
Ubuntu 10.10 [code] deb http://mirrors.163.com/ubuntu/ maverick main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ maverick-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ maverick-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ maverick-proposed main restricted universe …
是一些相关的软件没有安装,如:gcc automake autoconf libtool make ubuntu debian 可以直接 apt-get install gcc automake autoconf libtool make redhat centos: yum -y install gcc automake autoconf libtool make
/etc/cron.daily/logrotate: /usr/bin/mysqladmin: refresh failed; error: ‘Access denied; you need the RELOAD privilege for this operation’ error: error running shared postrotate script for ‘/var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log ‘ run-parts: /etc/cron.daily/logrotate exited with …
Depending on how Apache is configured you may need to add something like the following to your Apache config file: Code: LoadModule include_module modules/mod_include.so or more likely you just need …
一、基本配置 介绍 postfix的main.cf文件支持上百个配置参数。幸运的是,所有的参数都有比较合理的默认值。在大多数情况下,你只需要配置2到3个参数值就可以启用postfix邮件系统了。下面的这个链接是postfix配置文件的简要介绍。
Windows 2k3 下 MySQL 1069 错误 今天早上,网站挂了,显示不能连接MySQL数据库,我想就是数据库断了,上去启动一下就行了,但是也奇怪,以前从来没断过啊。 在管理工具–服务– MySQL,发现真的停止了,点启动,跳出 1069 错误。 查看MySQL–属性–登陆,看到“登陆身份”选择了”此帐户” 为 ./mysql, 我想我们没有这个用户啊,特的到用户组里去看了一下,确实没有。那这里肯定是不对的了。 这儿可以选择第一项“本地系统用户”,或者更换“此帐户”,选择系统里的帐户。这样,MySQL 就可以启动了。至于这是什么原因造成的,暂时还不清楚。我试来下,不可以在“此帐户”处随便乱写的。困惑ING
DreamHost coupons are also referred as DreamHost promo codes. DreamHost provides discount through coupon codes to new customers. DreamHost now offers free trial to new customers. Use DreamHost coupons to get …
dreamhost IP space to be closed U.S. how to do? It does not matter, you can replace the IP. Here we are referring to the next DNS update method.