07 2012 档案
摘要:the host may be down,or there may be a problem with the network connection.Sometimes such problems can also be caused by a misconfigured firewall.遇到这样的问题可能有这几个情况:1、在安装centos的时候没安装ssh2、sshd_config与ssh_config配置问题3、IP问题4、防火墙问题一、安装CentOS SSHyum install ssh二、启动SSHservice sshd start三、进入系统文件etc/ssh/sshd_co
阅读全文
摘要:1 JS方式调用PHP文件并取得php中的值举一个简单的例子来说明:如在页面a.html中用下面这句调用:<script type="text/javascript" src="b.php?action=test"></script><script type="text/javascript" >alert(jstext);</script>在b.php中有这样一段PHP代码:<? $action=$_GET['action']; //echo "var
阅读全文
摘要:grep的用法http://www.thegeekstuff.com/2009/03/15-practical-unix-grep-command-examples/首先创建我们练习grep命令时需要用到的demo文件demo_file。$ cat demo_fileTHIS LINE IS THE 1ST UPPER CASE LINE IN THIS FILE.this line is the 1st lower case line in this file.This Line Has All Its First Character Of The Word With Upper Case.
阅读全文
摘要:重启命令Linux中常用的关机和重新启动命令有shutdown、halt、reboot以及init,它们都可以达到关机和重新启动的目的,但是每个命令的内部工作过程是不同的,下面将逐一进行介绍。 1. shutdown shutdown命令用于安全关闭Linux系统。有些用户会使用直接断掉电源的方式来关闭Linux,这是十分危险的。因为Linux与Windows不同,其后台运行着许多进程,所以强制关机可能会导致进程的数据丢失,使系统处于不稳定的状态,甚至会损坏硬件设备。 执 行shutdown命令时,系统会通知所有登录的用户系统将要关闭,并且login指令会被冻结,即新的用户不能再登录系统。使用
阅读全文
摘要:说明:配置之前先把域名解析到服务器IP地址上站点1:bbs.osyunwei.com 程序所在目录/data/osyunwei/bbs站点2:sns.osyunwei.com 程序所在目录/data/osyunwei/snschown www.www /data/osyunwei/ -R #设置目录所有者,www为nginx运行账户chmod 700 /data/osyunwei/ -R #设置目录权限nginx配置文件路径:/usr/local/nginx/conf/nginx.conf修改之前先备份原来的配置文件cp /usr/local/nginx/conf/nginx.conf /us
阅读全文