WIN下phpstorm不能检出svn的问题

今天使用win上的phpstrom发现不能检出svn服务器上的文件,折腾了一番才发现原来是svn设置问题。 解决办法: 进入settings 按照下图设置: 这里我们指定了svn的命令行路径,CollabNet\Subversion Client是CollabNet出的svn客户端命令行工具,换成其他的也可以,只要路径指定正确就行。 附下载地址: 支持各种系统的svn 推荐visualsvn

October 21, 2014 · 1 min · Me

使用DDoS-Deflate

昨天老高的博客受攻击了,本想着没啥流量就不用太在意,哎,防人之心不可无啊! 先装个DoS-Deflate试试看效果吧! 下载 wget http://www.inetbase.com/scripts/ddos/install.sh sh install.sh 配置 vi /usr/local/ddos/ddos.conf # show ##### Paths of the script and other files PROGDIR="/usr/local/ddos" PROG="/usr/local/ddos/ddos.sh" IGNORE_IP_LIST="/usr/local/ddos/ignore.ip.list" CRON="/etc/cron.d/ddos.cron" APF="/etc/apf/apf" IPT="/sbin/iptables" ##### frequency in minutes for running the script ##### Caution: Every time this setting is changed, run the script with --cron ##### option so that the new frequency takes effect FREQ=1 ##### How many connections define a bad IP? Indicate that below. NO_OF_CONNECTIONS=150 ##### APF_BAN=1 (Make sure your APF version is atleast 0....

October 16, 2014 · 1 min · Me

新装虚拟机记录一下

镜像下载 centos官方 Aliyun Open Source Mirror Site 网易开源镜像站 虚拟化工具 免费的virtualbox,下载地址 KVM Xen 安装 记一次centos最小安装 centos7.0 的最小化安装 优化 分享一个centos6.*优化脚本 CentOS精简命令 后续 关闭防火墙和SELinux # 关闭防火墙 service iptables stop chkconfig iptables off chkconfig ip6tables off # SELinux vi /etc/selinux/config # change SELINUX=disabled #网卡 ------ vi /etc/sysconfig/network-scripts/ifcfg-eth0 TYPE=Ethernet # change ONBOOT=yes NM_CONTROLLED=yes # change BOOTPROTO=dhcp or BOOTPROTO=static # 加上 # 静态IP IPADDR=192.168.1.107 # 设置子网 NETMASK=255.255.255.0 # 设置网关 GATEWAY=192.168.1.1 # 设置DNS DNS1=114.114.114.114 IPV6INIT=no USERCTL=no ------ service network restart chkconfig network on ------ # 全局关闭IPv6 vi /etc/sysctl....

October 11, 2014 · 1 min · Me

将nginx配置为服务

编译安装nginx后,没有将nginx配置为服务,则无法使用诸如service nginx restart的命令,下面我们看看如何将其配置为服务。 编写脚本 vi /etc/init.d/nginx 写入以下内容,并修改nginx路径 #!/bin/sh # # nginx - this script starts and stops the nginx daemon # # chkconfig: - 85 15 # description: Nginx is an HTTP(S) server, HTTP(S) reverse # proxy and IMAP/POP3 proxy server # processname: nginx # chkconfig: 2345 90 91 # description: nginx web server # processname: nginx # config: /opt/nginx/conf/nginx.conf # pidfile: /opt/nginx/nginx.pid # Source function library. . /etc/init.d/functions # Source networking configuration....

October 9, 2014 · 2 min · Me

mac下ssh总是失去响应

自从使用mac以后,ssh连接总是超时成了老高的一个心病啊,只要一小会儿不动电脑,远程就失去相应,或者干脆直接提示broken pipe,然后断掉。现在终于有了算是能接受的解决办法。 方法一:直截了当砍掉法 ~.,是的,你没有看错!这个组合命令就是主动断开ssh的命令,不行自己问问man。 方法二:修改配置文件 服务器和客户端每隔一定的时间会发一个KeepAlive请求,避免因为路由器或线路的限制而断线,例子中的60s可以因具体的环境改变。 针对服务器端 修改/etc/ssh/sshd_config,修改ServerAliveInterval一项,而ServerAliveCountMax表示如果失败重试的次数 ServerAliveInterval 60 ServerAliveCountMax 3 针对客户端 vi /etc/ssh_config ClientAliveInterval 60 ClientAliveCountMax 3 完

October 9, 2014 · 1 min · Me

scp命令指定端口号

scp命令经常用在主机之间拷贝文件用,但是如果目标机器的sshd的端口不是默认的22,怎么办呢? scp -P 1111 root@192.168.1.101:/home/xxx 这样就可以配合ssh-keygen -t rsa命令将生成的pub重命名为authorized_keys,并拷贝至目标机器的~/.ssh/文件夹下,这样以后就可以无密码登录ssh了。 完

October 9, 2014 · 1 min · Me

使用vsftp需要用到的东西

安装 yum install -y vsftpd 安全配置 vi /etc/vsftpd/vsftpd.conf #add listen_port= XXXX anonymous_enable=NO local_enable=NO chroot_local_user=YES chroot_list_enable=NO 日志配置 xferlog_enable=YES xferlog_std_format=YES xferlog_file=/var/log/xferlog dual_log_enable=YES vsftpd_log_file=/var/log/vsftpd.log 添加虚拟用户 vi /etc/vsftpd/user_list.txt #add roooooooter random_passwd #生成认证文件 db_load -T -t hash -f /etc/vsftpd/user_list.txt /etc/vsftpd/user.db #删除明文 rm -f vi /etc/vsftpd/user_list.txt #编辑vsftpd的PAM认证文件 #删除其他行,加入下面两行 #pam_userdb.so 为认证库文件 db即上文user.db vi /etc/pam.d/vsftpd auth required pam_userdb.so db=/etc/vsftpd/user account required pam_userdb.so db=/etc/vsftpd/user #设定FTP用户映射(注意权限) useradd –d /home/xxx –s /sbin/nologin xxx chmod 700 /home/xxx #开启虚拟用户 vi /etc/vsftpd/vsftpd....

October 8, 2014 · 1 min · Me

Linux目录和文件的权限设置

要求就是: 将当前目录中的所有“子目录”的权限设置为755; 将当前目录中的所有“文件”的权限设置为644。 解决方法: chmod 644 -R * chmod 755 `find -type d` 也可以用find彻底些: find /path -type f -exec chmod 644 {} /; find /path -type d -exec chmod 755 {} /; 转自: http://blog.csdn.net/study16/article/details/5896390

October 4, 2014 · 1 min · Me

CentOS精简命令

删除自带web、数据库、php yum remove httpd* php* mysql-server mysql* php-mysql -y 删除不需要的程序 yum remove Deployment_Guide-en-US finger cups-libs cups ypbind bluez-libs desktop-file-utils ppp rp-pppoe wireless-tools irda-utils sendmail* samba* talk-server finger-server bind* xinetd nfs-utils nfs-utils-lib rdate fetchmail eject ksh mkbootdisk mtools syslinux tcsh startup-notification talk apmd rmt dump setserial portmap yp-tools -y yum groupremove "Mail Server" "Games and Entertainment" "X Window System" "X Software Development" "Development Libraries" "Dialup Networking Support" "Games and Entertainment" "Sound and Video" "Graphics" "Editors" "Text-based Internet" "GNOME Desktop Environment" "GNOME Software Development" -y yum -y groupremove "FTP Server" "PostgreSQL Database client" "PostgreSQL Database server" "MySQL Database server" "MySQL Database client" "Web Server" "Office Suite and Productivity" "E-mail server" "Ruby Support" "Printing client" 关闭selinux...

September 19, 2014 · 3 min · Me

在Liunx上彻底删除kangle服务器

之前单位用的kangle服务器,便于快速搭建网站。 但是现在不想用了,如何删除呢? 其实很简单: 停止服务 service kangle stop 删除服务启动项 chkconfig kangle off 删除服务 chkconfig --del kangle 删除残留文件 rm -rf /vhs rm -f /etc/init.d/kangle 现在重启看看,是不是已经删除的很干净了! ##ps.这个删除流程也可以针对其他服务使用!## 顺便提一下 删除Apache可以用rpm -qa|grep apache|xargs rpm -e,一次删除所有与Apache有关的包

September 19, 2014 · 1 min · Me