This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nginx -t 测试配置文件语法 | |
nginx -s reload 重新加载配置文件 | |
nginx -c /usr/nginx/conf/nginx.conf 启动(若不指定配置文件,默认启动conf/nginx.conf) | |
nginx -s stop 关闭 | |
nginx -h 命令选项列表 | |
ps aux |grep nginx //查找master process pid | |
ps ef | grep nginx | |
平滑重启: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.在命令状态下,可以使用%进行括号匹配。(即在括号处按下"%",光标会跳转到与之匹配的括号) | |
2.冒号(:)后跟行号,回车到指定行 | |
配置文件在哪? | |
Windows配置文件是Vim安装目录下的vimrc文件 | |
Linux系统,并且是使用apt-get来默认安装的,配置文件是/usr/share/vim/vimrc | |
Mac OS X,配置文件是/usr/share/vim/vimrc文件 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TRANSACTION(事务隔离级别) | |
1. ISOLATION_DEFAULT:这是一个PlatfromTransactionManager默认的隔离级别,使用数据库默认的事务隔离级别。 | |
每种数据库的默认隔离级别是不同的,例如SQL Server、Oracle默认Read Commited,MySQL默认Repeatable Read。 | |
另外四个与JDBC的隔离级别相对应,不同的隔离级别采用不同的锁类型来实现,在四种隔离级别中,Serializable的 | |
隔离级别最高,Read Uncommited的隔离级别最低。 | |
2. ISOLATION_READ_UNCOMMITTED:读未提交数据,这是事务最低的隔离级别,在并发的事务中,它充许一个事务可以 | |
读到另一个事务未提交的更新数据。(会出现脏读,不可重复读和幻读) | |
3. ISOLATION_READ_COMMITTED:读已提交数据,保证在并发的事务中,一个事务修改的数据提交后才能被另外一个事 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1、编辑MySQL配置文件:my.ini | |
一般在MySQL安装目录下有my.ini即MySQL的配置文件。 | |
此配置文件最后添加一行: | |
skip-grant-tables | |
保存退出编辑。 | |
2、然后重启MySQL服务 | |
在命令行下执行: | |
net stop MySQL | |
net start MySQL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mac Port 基本用法总结 | |
1. Mac Port的下载地址 | |
http://www.macports.org/install.php | |
2. Mac Port的说明文档 | |
http://guide.macports.org/ | |
3. Mac Port中第三方软件下载包存放的默认路径是:/opt/local/var/macports/distfiles/ | |
为了提高安装速度,可以在安装新port时直接将此目录下的文件拷贝到新的Mac Port相同的目录中就可以避免Port去网上下载。 |
NewerOlder