do: mkdir -p /usr/share/activemq/activemq-data/localhost/KahaDB3 chmod 777 -R /usr/share/activemq/activemq-data/localhost/KahaDB ?/etc/init.d/activemq start check : netstat -an | grep 61614 tcp ?...
分类:
编程语言 时间:
2015-02-09 18:47:22
阅读次数:
182
#将php-fpm设置成服务,并实现开机自动启动#说明:作者仅在CentOS7.0上进行了测试,而且没有进行可靠性和稳定性的测试!vi/etc/rc.d/init.d/fpm
chmod+x/etc/rc.d/init.d/fpm
chkconfig--addfpm
chkconfigfpmon/etc/rc.d/init.d/fpm文件的内容如下:#!/bin/sh
#chkconfig:23456..
分类:
Web程序 时间:
2015-02-07 19:06:54
阅读次数:
226
#将nginx设置成服务,并实现开机自动启动#说明:作者仅在CentOS7.0上进行了测试,而且没有进行可靠性和稳定性的测试!cp/tmp/nginx/etc/rc.d/init.d/nginx
chmod+x/etc/rc.d/init.d/nginx
chkconfig--addnginx
chkconfignginxon/tmp/atlas文件的内容如下:#!/bin/sh
#chkconfig..
分类:
其他好文 时间:
2015-02-07 06:58:58
阅读次数:
96
1、adb shell 2、执行su命令,此时手机会提示允许获得root权限设置,设置允许 3、执行chmod 777 data命令,将data下所有文件修改为最高权限 4、用ddms的File explorer进行查看,点击data目录,手机所有应用的数据...
分类:
其他好文 时间:
2015-02-06 17:04:48
阅读次数:
138
chmod是一条在Unix系统中用于控制用户对文件的权限的命令(change mode单词前缀的组合)和函数。只有文件所有者和超级用户可以修改文件或目录的权限。可以使用绝对模式,符号模式指定文件的权限。※命令格式chmod [options] mode filesmode可以是数字形式或以who o...
分类:
系统相关 时间:
2015-02-06 10:49:40
阅读次数:
157
第一步编辑要定时执行的脚本: myScript.sh myScript.sh的内容为:touch /root/`date +%F' '%T`.txt 为myScript.sh增加可执行权限:chmod +x myScript.sh第二步增加定时任务: crontab -e 内容如下...
分类:
系统相关 时间:
2015-02-05 21:52:27
阅读次数:
177
fig,无花果。fig项目源自docker,可以认为是快速搭建基于Docker的隔离开发环境的工具。一、安装fig$ mkdir docker; cd docker
$ curl -L https://github.com/docker/fig/releases/download/1.0.1/fig-`uname -s`-`uname -m` > fig
$ sudo chmod +x fig...
分类:
其他好文 时间:
2015-02-05 15:02:27
阅读次数:
204
在linux系统下或登录ssh可以批量修改文件权限wwwroot目录下的所有目录的权限递归设置为755cd wwwrootfind -type d -exec chmod 755 {} \;或者是find -type d|xargs chmod 755同样,把目录下的所有文件权限递归地改成644可以...
分类:
其他好文 时间:
2015-02-04 18:33:50
阅读次数:
226
某天file_get_contents()突然不能用了,检查了下php配置文件allow_url_fopen=on没问题各种重启也没用最后在ssh下执行chmod 755 /etc/resolv.conf一条命令解决了,具体原因还在探索中。。。。?知道的博友麻烦留言告知,谢谢
分类:
Web程序 时间:
2015-02-04 18:27:03
阅读次数:
189
0x01. 下载两个 Phar 包: wget https://phar.phpunit.de/phpunit.phar
wget https://phar.phpunit.de/phpunit-skelgen.phar 0x02. 让这两个包可执行 chmod +x phpunit.phar
chmod +x phpunit-skelgen.phar 0x03...
分类:
Web程序 时间:
2015-02-03 17:38:50
阅读次数:
165