导航

2012年9月17日

摘要: 修改某个MySQL用户的密码:# mysqladmin -h localhost -u root -p password xxx 阅读全文

posted @ 2012-09-17 12:01 eastson 阅读(214) 评论(0) 推荐(0) 编辑

摘要: CentOS默认的iptables规则除了允许SSH(端口22)连进来以外,其它都被禁止。# cat /etc/sysconfig/iptables# Firewall configuration written by system-config-firewall# Manual customization of this file is not recommended.*filter:INPUT ACCEPT [0:0]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [0:0]-A INPUT -m state --state ESTABLISHED,RELATED 阅读全文

posted @ 2012-09-17 11:25 eastson 阅读(1296) 评论(0) 推荐(0) 编辑

摘要: SELinux默认运作在"Enforcing"模式。$ sestatus -vSELinux status: enabledSELinuxfs mount: /selinuxCurrent mode: enforcingMode from config file: enforcingPolicy version: 24Policy from config file: targeted"Enforcing"模式下Zend Server ... 阅读全文

posted @ 2012-09-17 10:57 eastson 阅读(1199) 评论(0) 推荐(0) 编辑

摘要: 用Eclipse PDT开发PHP时,Eclipse会自动创建几个系统文件。这些文件在Git提交时可以忽略。使用git status可以看到这些文件(.project, .buildpath和.settings):$ git status# On branch master# Untracked files:# (use "git add <file>..." to include in what will be committed)## .buildpath# .project# .settings/# includes/# index.phpnothing. 阅读全文

posted @ 2012-09-17 09:56 eastson 阅读(752) 评论(0) 推荐(0) 编辑

摘要: 首先,我们要在GitHub.com注册一个帐号,然后创建一个repository。然后参考文档《git push 403的解决方法》。Create a new repository on the command linetouch README.mdgit initgit add README.mdgit commit -m "first commit"git remote add origin https://github.com/amonest/php-omnitrix.gitgit push -u origin masterPush an existing repos 阅读全文

posted @ 2012-09-17 09:13 eastson 阅读(212) 评论(0) 推荐(0) 编辑