`
eonbell
  • 浏览: 59607 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
使用date命令转换基础时间秒为年月日: 命令为: date -d @1281161747 注意一定不要忘记符号“@”  #date 获取当前时间   #date -d "-1 week" +%Y%m%d 获取上周日期(day,month,year,hour)   #date --date="-24 hour" +%Y%m%d 同上   date_now=`date +%s` shell脚本里面赋给变量值   %% 输出%符号   %a 当前域的星期缩写 (Sun..Sat)   %A 当前域的星期全写 (Sunday..Saturday)   %b 当 ...

VSFTPD全攻略

/etc/vsftpd/vsftpd.conf文件详解,分好类,方便大家查找与学习 #################匿名权限控制############### anonymous_enable=YES   #是否启用匿名用户 no_anon_password=YES   #匿名用户login时不询问口令 下面这四个主要语句控制这文件和文件夹 ...
一,组操作 1,创建组 groupadd  test 增加一个test组 2,修改组 groupmod -n test2  test 将test组的名子改成test2 3,删除组 groupdel test2 删除 组test2 4,查看组 a),查看当前登录用户所在的组 groups,查看apacheuser所在组groups apacheuser b),查看所有组 cat /etc/group c),有的linux系统没有/etc/group文件的,这个时候看下面的这个方法 cat /etc/passwd |awk -F [:] '{print $4}' |sort|uniq | geten ...
yum -y install vsftpd* yum -y install pam* yum -y install db4* 一、建立一个存放用户名和密码的文件 vi mima.txt (记住路径,后面要用的着) 在文件里输入 用户名一 密码一 用户名二 密码二 用户名三 密码三 保存 二、生成虚拟用户帐户数据库 db_load -T -t hash -f /etc/vsftpd/mima.txt /etc/vsftpd/vsftpd_login.db 生成能被 pam.d认识的数据库vsftpd_login.db mima.txt是前面建立的那个文件,vsftpd_login.db 可自己 ...
import json    json.dumps(d.isoformat()) var d = new Date("2011-05-25T13:34:05.787000"); As of Javascript 1.8.5, Date objects have a toJSON method, which returns a string in a standard format. To serialize the above Javascript object back to JSON, therefore, the command would be: d.toJSON ...
改变数据库文件的宿主权限 sudo chown -R mysql:mysql /var/lib/mysql 重启mysql服务 sudo service mysqld restart
Introduction to jQueryMobile Following is an extract from jQueryMobile site - jQuery Mobile: Touch-Optimized Web Framework for Smartphones & Tablets A unified user interface system across all popular mobile device platforms, built on the rock-solid jQuery and jQuery UI foundation. ...
First Graph Set up    1. Download graphviz from here: http://www.graphviz.org/Download..php (for Mac, use this link:  http://www.graphviz.org/Download_macos.php)    2. create a file named "sample.dot", using any text editor: Jenny:~/temp/20100722$cat test.dot digraph g { node [sha ...
First use this url to ask user to add your facebook app(if user not login, facebook will redirect to login page and then go to this url) https://graph.facebook.com/oauth/authorize?redirect_uri=< http://YOUR_FaceBookCallback_SERVLET>&amp;client_id=<YOUR_app_key> Then you can use this ...
how to find the text following "<br>" tag for example: html source code as below:             <h3>Blood Substitutes (HBOCs): Is There a Downside?<br>                 <span class="details">Small Animal &gt; Emergency Medicine &amp; Critical Care     ...
1. svn propedit svn:externals . ---import extension package for example: utils2 http://synnex-svn.motherapp.com/svn/synnex/utils2/ 2. svn commit added utils2 3. svn update 4. svn add 5. svn status svn import testProject repository/testProject for example: svn import -m "comment here&qu ...
grep -r mysite * | grep -v svn  --- find out all files including "mysite" except svn folder screen -R screenname --create a screen named screenname or entry a screen named screenname tail -f xxx.filename  -- realtime to display file content crontab -e -- edit the cron Command about cro ...
   1. in the apace configuration page, add the two directives before WsgiScriptAlias?     WSGIDaemonProcess bug-reporter threads=25 WSGIProcessGroup bug-reporter     WSGIScriptAlias / /app/bug_reporter/django.wsgi    2. restart apache    3. to renew process, just touch the xxxx.wsgi file in the ...
Modify the settings in apache, change the media root to the own python path like this: RewriteRule? /(media)($|(\/(.*))) /usr/local/lib/python2.6/site-packages/django/contrib/admin/$0 [L]
Set up Brand New Django Server ¶ steps to set up django server (in linux):    1. make sure set up the path of /usr/local/bin before everything    1. install httpd (remember to set mod_rewrite) apt-get install apache2-threaded-dev     /etc/init.d/apache2 restart     sudo a2enmod rewrite     ./ ...
Global site tag (gtag.js) - Google Analytics