linux 常用命令
2010-10-07 16:46
204 查看
1. 修改目录拥有者
chown -R www:www test
2. 删除文件
rm -rf * (* 表示删除当前目录下的所有文件)
3. 重启nginx
killall -9 nginx //关闭 nginx
./nginx //重启nginx
4. 重启FastCGI
./php-fpm restart
注: './ ' 表示当前目录下
5. 重启Apache
service httpd restart
6. 修改root用户密码
sudo passwd root
7. 增加模块链接地址
1)#vim /etc/ld.so.conf (在此文件里面添加相关路径)
2)#ldconfig 使系统生效
8. 两台linux 对考数据
scp -P 端口 -r 本地文件 远程用户名@远程IP:主机目录
比如 scp -p 58422 -r /home/aa root@192.168.1.12:/home/bb
说明: 将本地 /home/aa 目录下的所有文件考到 远程192.168.1.12主机的 /home/bb 目录下
9. 查看memcahed 进程是否存在
ps -aux|grep memcached
10. 查找已经执行memcached 的相关历史痕迹
history |grep memcac*
11. 开启memcached
/usr/bin/memcached -d -m 256 -l 127.0.0.1 -p 11211 -u www
12. 查看进程
ps aux | grep 进程名
13. 查看所有进程
ps aux | less
chown -R www:www test
2. 删除文件
rm -rf * (* 表示删除当前目录下的所有文件)
3. 重启nginx
killall -9 nginx //关闭 nginx
./nginx //重启nginx
4. 重启FastCGI
./php-fpm restart
注: './ ' 表示当前目录下
5. 重启Apache
service httpd restart
6. 修改root用户密码
sudo passwd root
7. 增加模块链接地址
1)#vim /etc/ld.so.conf (在此文件里面添加相关路径)
2)#ldconfig 使系统生效
8. 两台linux 对考数据
scp -P 端口 -r 本地文件 远程用户名@远程IP:主机目录
比如 scp -p 58422 -r /home/aa root@192.168.1.12:/home/bb
说明: 将本地 /home/aa 目录下的所有文件考到 远程192.168.1.12主机的 /home/bb 目录下
9. 查看memcahed 进程是否存在
ps -aux|grep memcached
10. 查找已经执行memcached 的相关历史痕迹
history |grep memcac*
11. 开启memcached
/usr/bin/memcached -d -m 256 -l 127.0.0.1 -p 11211 -u www
12. 查看进程
ps aux | grep 进程名
13. 查看所有进程
ps aux | less
相关文章推荐
- linux 常用命令
- Linux常用命令--file
- linux常用命令-用户管理命令
- linux 常用命令
- Linux 性能监控常用命令
- Linux系统一些常用系统命令
- linux常用命令总结
- 每天一个linux命令目录 开始详细系统的学习linux常用命令,坚持每天一个命令,所以这个系列为每天一个linux命令。学习的主要参考资料为: 1.《鸟哥的linux私房菜》 2.
- Linux 常用命令
- Linux常用压缩与解压缩命令
- linux常用命令
- Linux 常用命令集(60个) [ 转贴备忘 ]
- linux系统管理员常用命令集合
- Linux常用命令
- 【Linux】常用命令收集
- Linux常用命令
- Linux基础知识学习(一)----常用操作命令
- linux常用命令
- linux 常用命令
- Linux常用命令(6)-性能瓶颈分析(java)