执行顺序为: /etc/profile -> (~/.bash_profile | ~/.bash_login | ~/.profile) -> ~/.bashrc -> /etc/bashrc -> ~/.bash_logout (1) /etc/profile: 此文件为系统的每个用户设置环境信 ...
分类:
系统相关 时间:
2016-08-28 11:06:18
阅读次数:
175
与SpringSecurity的配置类似,spring同样为我们提供了一个实现类WebMvcConfigurationSupport和一个注解@EnableWebMvc以帮助我们减少bean的声明。 applicationContext-MvcConfig.xml Xml代码 <!-- 启用注解,并 ...
分类:
编程语言 时间:
2016-08-12 15:07:23
阅读次数:
266
首先先判断一下session <li> <?php if(session('m_id')) : ?> 您好, <?php echo session('m_username'); ?>[<a href="<?php echo U('Member/logout') ; ?>">退出</a>] <?php ...
分类:
其他好文 时间:
2016-08-01 00:01:56
阅读次数:
418
关机shutdown-h0#<==O秒后关机
shutdown-hnow#<==现在关机
shutdown-h10#<==10分钟后关机
shutdown-h23:20#<==23:20分关机
shutdown-c#<==取消shutdown关机命令
init0#<==立马关机(切换运行级别为0,推荐使用)
halt#<==立马关机
poweroff#<==立马关..
分类:
系统相关 时间:
2016-07-24 07:10:34
阅读次数:
270
嵌入式 Linux下永久生效环境变量bashrc 1) .bashrc文件 在linux系统普通用户目录(cd /home/xxx)或root用户目录(cd /root)下,用指令ls -al可以看到4个隐藏文件, .bash_history 记录之前输入的命令 .bash_logout 当你退出时 ...
分类:
系统相关 时间:
2016-07-23 15:17:11
阅读次数:
318
对于SQL Server数据库,当进行数据库连接建立时会触发Audit login 事件;而当有某个数据库连接关闭时将触发Audit logout 事件。 注意,在SQLSERVER的事件探查器中,我们通过观察可以发现,Audit login 和 匹配的Audit logout 事件使用的是同一个S ...
分类:
数据库 时间:
2016-06-30 21:22:10
阅读次数:
203
SHELLBUILTINCOMMANDS除非另外说明,内置命令如果接受由-引导的选项,那么它也接受--,来表示选项的结束。内置命令:,true,false和test不接受选项并且尤其不处理--引导的选项。内置命令exit,logout,break,continue,let和shift接受和处理以-开头的参数不需要以--开头的。其..
分类:
系统相关 时间:
2016-06-28 18:42:07
阅读次数:
590
在Linux系统中,如何找到用户创建的时间呢? 其实是没有标准方法查找用户创建时间。下面再搜索了一些资料后,自己验证并测试了一下这些方法,仅供参考: 1:如果创建的用户有家目录,那么可以ls -l /home//.bash_logout 来找到用户的创建时间。 [root@DB-Server ~]#... ...
分类:
系统相关 时间:
2016-06-21 12:32:11
阅读次数:
199
0x01 使用命令【su username】 这种方法能切换普通用户和root用户 0x02 从普通用户切换到root用户,还可以使用命令【sudo su】 0x03 su 是switch user的缩写,即切换用户。 在终端输入【exit】或【logout】或使用快捷方式【Ctrl+D】可以退回到 ...
分类:
系统相关 时间:
2016-06-18 12:54:19
阅读次数:
175
#自动引用方法importcommonsinp=input("URL:")m,f=inp.split(‘/‘)obj=__import__(m)defmain():ifhasattr(obj,f):func=getattr(obj,f)func()else:print(‘404‘)main()下面是commonsdeflogin():print("login")deflogout():print("logout")defhome():print("home")输出结果:URL:co..
分类:
编程语言 时间:
2016-06-18 01:30:12
阅读次数:
140