随笔分类 -  Linux

上一页 1 ··· 3 4 5 6 7 8 9 下一页
linux收集
摘要:文章转自:http://blog.csdn.net/chenchong08/article/details/7833242/etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.并从/etc/profile.d目录的配置文件中搜集shell的设置.英文描述为:... 阅读全文
posted @ 2014-07-04 14:17 KoMiles 阅读(1909) 评论(0) 推荐(0)
摘要:my.cnf:/etc/php.in:/usr/local/php/etc/ 阅读全文
posted @ 2014-07-04 11:12 KoMiles 阅读(2470) 评论(0) 推荐(0)
摘要:文章转自:http://ideabean.iteye.com/blog/2007367打开Git Bash进入目录:$ cd /etc1. 编辑 gitconfig 文件:$ vigitconfig 文件中增加内容Xml代码[gui]encoding=utf-8#代码库统一使用utf-8[i18... 阅读全文
posted @ 2014-07-02 22:46 KoMiles 阅读(19605) 评论(5) 推荐(4)
摘要:1,git status乱码git config --global core.quotepath false执行完后再使用时,就显示正常了 阅读全文
posted @ 2014-07-01 12:13 KoMiles 阅读(250) 评论(0) 推荐(0)
摘要:git 执行提交时,提示用户输入用户和邮箱git commit -m '*add newCat file' newCat/*** Please tell me who you are.Run git config --global user.email "you@example.com" git ... 阅读全文
posted @ 2014-07-01 11:35 KoMiles 阅读(3357) 评论(0) 推荐(0)
摘要:转自:https://www.centos.bz/2011/07/howto-remove-lnmp/killall nginx/etc/init.d/mysql stopkillall mysqld/usr/local/php/sbin/php-fpm stopkillall php-cgirm ... 阅读全文
posted @ 2014-05-30 14:50 KoMiles 阅读(3446) 评论(0) 推荐(0)
摘要:转自:http://chenpeng.info/html/964刚安装好的Debian默认还没有sudo功能。1、安装sudo# apt-get install sudo2、修改 /etc/sudoers 文件属性为可写# chmod +w /etc/sudoers3、编辑 /etc/sudoers... 阅读全文
posted @ 2014-05-29 11:47 KoMiles 阅读(25415) 评论(0) 推荐(1)
摘要:转自:http://www.linuxidc.com/Linux/2010-12/30386.htm1)进入到root用户下。2)添加文件的写权限。也就是输入命令"chmod u+w /etc/sudoers"。3)编辑/etc/sudoers文件。也就是输入命令"gedit /etc/sudoer... 阅读全文
posted @ 2014-05-09 10:30 KoMiles 阅读(5115) 评论(0) 推荐(1)
摘要:转自:http://www.itokit.com/2013/0308/74883.htmllinux系统中,利用grep打印匹配的上下几行如果在只是想匹配模式的上下几行,grep可以实现。$grep -5 'parttern' inputfile //打印匹配行的前后5行$grep -C 5 'pa... 阅读全文
posted @ 2014-04-24 10:49 KoMiles 阅读(134599) 评论(2) 推荐(5)
摘要:转自:http://www.linuxidc.com/Linux/2013-07/87371.htm简述:今天在看书的时候,看到有个实例,手痒痒的跟着做了起来。。。但是,出现问题了。。测试的用户和组不能删除。。---------------------------------------------... 阅读全文
posted @ 2014-04-19 11:40 KoMiles 阅读(14932) 评论(1) 推荐(1)
摘要:.快速清理磁盘垃圾磁盘空间又不够用了?尝试在终端窗口中输入sudo apt-get autoremove然后输入sudo apt-get clean,前一个命令会卸载系统中所有未被使用的依赖关系,后一个命令会清除所有缓存的包文件,两者都是无害的。在一个升级过多次的系统上,你也许能通过这个方法清理出若... 阅读全文
posted @ 2014-04-19 11:27 KoMiles 阅读(3432) 评论(0) 推荐(0)
摘要:语 法:alias[别名]=[指令名称]1,查看该用户下的别名:alias2,有的系统里没有ll这个命令,原因就是没有定义ll='ls -l --color=tty'这个别名如果想永久生效,就把这条写入到 /etc/bashrc里面alias ll='ls -l --color=tty'3,查看命令别名:alias 设置命令别名:alias 别名='命令' 取消命令别名:unalias 别名 阅读全文
posted @ 2014-04-07 22:50 KoMiles 阅读(1094) 评论(0) 推荐(0)
摘要:1,例如我想解压Metinfo5.2.zip 到某一个文件夹下,执行下面的命令就可以了sudo unzip MetInfo5.2.zip -d metinfo-bak 阅读全文
posted @ 2014-04-04 22:18 KoMiles 阅读(49051) 评论(1) 推荐(0)
摘要:在新添加用户后,切换到该用户下面后:发现命令行前面只有一个$符号,很不方便。虽然每次输入一个bash可以解决,但是太麻烦。如何解决呢?sudo vi /etc/passwd找到该用户wangkongming:x:1002:1002::/home/wangkongming:/bin/shzhangbi... 阅读全文
posted @ 2014-04-01 23:00 KoMiles 阅读(7067) 评论(0) 推荐(0)
摘要:转自:http://634871.blog.51cto.com/624871/1325907在实际工作中,公司不会将root用户直接给员工使用,而是通过员工自己的账号临时获得系统的root权限。1.我现在测试的环境是:red hat linux 612[root@rhel1 xcg]# uname -aLinux rhel1.kongzhong.com2.6.32-279.el6.x86_64#1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux2.创建两个普通用户,分别为kongzhong,xcg ;并设置密码[下 阅读全文
posted @ 2014-04-01 22:48 KoMiles 阅读(20069) 评论(2) 推荐(1)
摘要:lnmp一键安装包删除添加的域名如果使用lnmp一键安装包/root/vhost.sh 添加的域名可以,可以删除/usr/local/nginx/conf/vhost/要删除的域名.conf 文件,在/root/lnmp restart 即可。如果是自己手动在/usr/local/nginx/conf/nginx.conf 里添加的,直接删除其中域名 的server{}段就可以了,记得重启。 阅读全文
posted @ 2014-03-27 22:30 KoMiles 阅读(596) 评论(0) 推荐(0)
摘要:转自:http://os.51cto.com/art/201003/186325.htmftp服务器在网上较为常见,Linux ftp命令的功能是用命令的方式来控制在本地机和远程机之间传送文件,这里详细介绍Linux ftp命令的一些经常使用的命令,相信掌握了这些使用Linux 进行ftp操作将会非常容易。Linux ftp命令的一般格式如下:$ ftp 主机名/IP其中“主机名/IP”是所要连接的远程机的主机名或IP地址。在命令行中,主机名属于选项,如果指定主机名,ftp将试图与远程机的ftp服务程序进行连接;如果没有指定主机名,ftp将给出提示符,等待用户输入命令:$ ftpftp > 阅读全文
posted @ 2014-03-25 22:34 KoMiles 阅读(436) 评论(0) 推荐(0)
摘要:wiz笔记支持跨平台下面记录一下如何在ubuntu下面安装wiz笔记1,ubuntu默认是没有wiz资源的,需要先添加官方ppa软件仓库sudo add-apt-repository ppa:wiznote-team2,更新软件仓库sudo apt-get update3,安装wiz笔记sudo apt-get install wiznote接下来就是等待,下载完后,自动安装成功。 阅读全文
posted @ 2014-03-20 23:30 KoMiles 阅读(780) 评论(0) 推荐(0)
摘要:改变一个文件的所有者和组1.命令格式: chown[选项]...[所有者][:[组]]文件...例子:komiles@iUbuntu:~/study/wordpress$ lltotal 160drwxr-xr-x 2 komiles komiles 4096 3月 20 22:31 ./drwxr-xr-x 3 komiles komiles 4096 3月 20 22:32 ../-rw-r--r-- 1 root root 573 2月 9 00:03 wordPress_study-rw------- 1 komiles komiles 147968 3月 20 22:17 wo... 阅读全文
posted @ 2014-03-20 22:43 KoMiles 阅读(471) 评论(0) 推荐(0)
摘要:1,find ./ -name "y*"查找以y开头的文件。2,列出gearman进程ps -aux | grep gearman3,查看一个文件下,所有文件夹的大小du -sh *4,查看某一个文件夹的大小du -sh fileName5,查找redissudo find /* -name "*r... 阅读全文
posted @ 2014-03-08 18:47 KoMiles 阅读(20205) 评论(0) 推荐(1)

上一页 1 ··· 3 4 5 6 7 8 9 下一页