`
275553385
  • 浏览: 705358 次
  • 性别: Icon_minigender_1
  • 来自: 无锡
文章分类
社区版块
存档分类
最新评论
文章列表
1、建用户: adduser jms //新建jms用户 passwd jms //给jms用户设置密码 2、建工作组群 groupadd jms //新建jms工作组 3、新建用户同时增加工作组 useradd -g test jms //新建jms用户并增加到test工作组
svn:服务器下载地址  http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=11151&expandFolder=11151&folderID=91 安装好subversion服务器后。 设置svnserve自动启动,单击“开始”-》“运行”-》输入“cmd”回车-》输入 sc create svnserver binpath= "C:\Program Files\Subversion\bin\svnserve.exe --service --root=D:\server" 当 ...
第一种方法:[root@pingan2 ~]# uname -a Linux pingan2.server 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux 显示的信息里面有x86_64,则属于64位的操作系统。而是32位系统显示的信息如下 [root@localhost ~]# uname -a Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i3 ...
图片备份 打包压缩 #!/bin/sh cb_PATH='/root/Desktop' cb_DATE=$(date -d now +"%Y%m%d%H%M") aa='/root/.tsung/log/20110923-08:48' cd $aa tar czvf $cb_PATH/Image-$cb_DATE.tar.gz *前面的是压缩包存放的路径,后面的路径是即将被打包的内容。注意:打包压缩后,压缩文件里包括后面文件的全路径。(除非你cd到它的上一层目录打包) tar zxvf **.tar.gz -C /home  解压到指定目录 转 lin ...
在linux系统中要想生成以当前时间为名称的文件。 创建一个shell脚本,并赋予执行的权限。 #!/bin/sh echo test >> $(date -d "today" +"%Y%m%d-%H%M%S").txt 生成了的以时间为名的txt文件如下: -rw-r--r-- 1 root root 5 09-30 14:03 20110930-140302.txt
向数据表user中添加一个age字段: alter table user add column age int(4); 删除数据表user中的age字段: alter table user drop age; 修改age字段的属性: alter table user modify age int(10); 修改age字段的名称和属性: alter table user change age newage int(4);
ssh支持中文,但是在查询service sshd status时候出现乱码 很明显支持中文的。 [root@localhost ~]# locale LANG=zh_CN.UTF-8 LC_CTYPE="zh_CN.UTF-8" LC_NUMERIC="zh_CN.UTF-8" LC_TIME="zh_CN.UTF-8" LC_COLLATE="zh_CN.UTF-8" LC_MONETARY="zh_CN.UTF-8" LC_MESSAGES="zh_CN.UTF-8& ...
添加mysql新用户并且授权 grant ALL PRIVILEGES ON *.* TO 'username'@'%' IDENTIFIED BY 'password';               ALL  代表 (select,insert,delete,update,...)                *.*   前面一个星表示 所有数据库,后面一个*表示某个数据库下的所有数据表               % 表示在任何机器上用此帐号都可以登录mysql进行操作. 登录mysql后,可以通过命令,查看用户的权限: show grants for asd;查询结果: +--- ...
转载网络文章Linux iptables 开放Mysql端口允许远程访问 修改防火墙配置文件: vi /etc/sysconfig/iptables 增加下面一行: -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 3306 -j ACCEPT 如果想开通21等端口,只需要将3306换成21等要开放的端口就可以了。 配置后,重新启动iptable service iptables restart 这时就可以从其他机器访问Mysql了。 注意: -A RH-Firewall-1-INPUT -m state --s ...
转载 configure: error: xml2-config not found. Please check your libxml2 installation. yum install libxml2-devel configure: error: Cannot find OpenSSL’s yum install openssl-devel configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/ yum install curl-devel co ...
http://blog.johntechinfo.com/sersyncguild转       当前版本的sersync依赖于rsync进行同步。如下图所示,在同步主服务器上开启sersync,将监控路径中的文件同步到目标服务器,因此需要在主服务器配置sersync,在同步目标服务器配置rsync。 ...
在nginx/conf/nginx.conf   找到: fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;  改为: fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; http://apps.hi.baidu.com/share/detail/31677987 http://www.oschina.net/question/57933_27069 nginx服务器下访问不存在的非php页面,可以正常出现自定义的404提示页,但是访 ...
转载 启动sendmail服务出现错误。[root@newraweb mail]# service sendmail start Starting sendmail: 451 4.0.0 /etc/mail/sendmail.cf: line 91: fileclass: cannot open '/etc/mail/local-host-names': World writable directory 451 4.0.0 /etc/mail/sendmail.cf: line 570: fileclass: cannot open '/etc/mail/trusted-users': Wo ...
引用configure: error: libjpeg.(a|so) not found locate libjpeg.so locate之后发现已经安装了libjpeg了,但是在/usr/lib目录下没有libjpeg.so这个文件,在/usr/lib64下是有的,虽然使用–with-jpeg-dir=/usr/lib64 依然无效,最后用 ln -s /usr/lib64/libjpeg.so /usr/lib/libjpeg.so php安装GD扩展 首先就去php源码里的gd目录,我的php源码放在home目录下面 [root@localhost gd]# pwd //home ...
一、系统设定crontab crontab是用来在固定时间或固定间隔执行命令。(确保crond服务开启) 编辑/etc/crontab文件 SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * root run-parts /etc/cron.daily 22 4 * * 0 root run-parts /et ...
Global site tag (gtag.js) - Google Analytics