码迷,mamicode.com
首页 > 2016年10月03日 > 全部分享
Linux清空日志文件内容
cat/dev/null>/var/log/文件名
分类:系统相关   时间:2016-10-03 00:44:39    阅读次数:269
Linux 忘记root密码后,破密
开机或重启系统,看到倒数读秒时,按e键再按e键选择Kernel这一行,按e键空格,然后输入数字1,回车后就进入无密码模式了passwd更改密码或者vi/etc/shadow删除root密码,保存重启系统
分类:系统相关   时间:2016-10-03 00:46:02    阅读次数:269
iptables防火墙规则设置
#注:Linux7默认启用的是firewalld.service,要启用iptables,需要关闭firewalld.servicesystemctlstopfirewalld.service;systemctldisablefirewalld.serviceyuminstalliptables-y;systemctlstartiptables.service;systemctlenableiptables.service规则设置:规则1:控制单个IP的..
分类:其他好文   时间:2016-10-03 00:45:23    阅读次数:169
打开网页出现“请从后台管理入口登录"的解决方法(一般是影视系统)
chmod777/tmp#一般这个就可以了chmod777/Lib/ThinkPHP/ThinkPHP.php
分类:Web程序   时间:2016-10-03 00:44:21    阅读次数:739
linux系统中启动MYSQL时出现错误:touch: 无法创建"/var/lock/subsys/mysql": 设备上没有空间
df-h#查看下空间满了吗df-li#查看下inode(文件索引节点)是不是满了#inodes占用100%的话,就删除/tmp下的文件cd/tmpfind/tmp-typef-execrm{}\;#如果使用rm*,有可能因为文件数量太多而出现Argumentlisttoolong错误find/home-typef-size0-execrm{}\;#0字节的文件也会占用inode
分类:数据库   时间:2016-10-03 00:44:32    阅读次数:514
linux 64位下安装wine1.6 Windows模拟器(用来运行.exe文件) 编译安装32位wine
cdyumgroupinstall‘DevelopmentTools‘-yyuminstalllibX11-develfreetype-devel-ywgethttp://prdownloads.sourceforge.NET/wine/wine-1.6.tar.bz2tar-jvxfwine-1.6.tar.bz2cdwine-1.6编译之前先安装32位运行库不然不能编译:yuminstallalsa-lib-devel.i686libsndfile-devel.i686r..
分类:Windows程序   时间:2016-10-03 00:42:53    阅读次数:492
linux 32位下安装wine1.6 Windows模拟器(用来运行.exe文件)
cdyumgroupinstall‘DevelopmentTools‘-yyuminstalllibX11-develfreetype-devel-ywgetwgethttp://prdownloads.sourceforge.net/wine/wine-1.6.tar.bz2tar-jvxfwine-1.6.tar.bz2cdwine-1.6./configuremakemakeinstall安装VNC远程桌面VncView远程登录后,文档内容显示乱码,需拷贝..
分类:Windows程序   时间:2016-10-03 00:45:02    阅读次数:271
安装VNC远程桌面
yuminstalltigervnctigervnc-server-yyuminstallfontforge-yyumgroupinstallDesktop-yvncpasswd#设置用户密码vi/etc/sysconfig/vncservers #去掉下面的2行#VNC开启多个界面的话VNCSERVERS="1:root2:root3:root"VNCSERVERS="1:root"VNCSERVERARGS[2]="-geometry800x600-queryloc..
分类:其他好文   时间:2016-10-03 00:44:12    阅读次数:180
love.shiningchen.cc
http://love.shiningchen.cc/
分类:其他好文   时间:2016-10-03 00:44:17    阅读次数:141
CentOS显示中文乱码,需安装中文语言包
echo$LANG#查看当前使用的系统语言locale-a#查看是否有中文语言包,没有就运行下面的命令安装修改yuminstallkde-l10n-Chinese-y;yumreinstallglibc-common-y#或者yumgroupinstallchinese-supportvi/etc/sysconfig/i18n修改LANG="zh_CN.UTF-8"然后保存source/etc/sysconfig/i18n
分类:编程语言   时间:2016-10-03 00:42:50    阅读次数:301
linux永久禁用IPV6
vi/etc/sysconfig/network添加NETWORKING_IPV6=novi/etc/hosts注释#::1localhostlocalhost6localhost6.localdomain6vi/etc/modprobe.d/dist.conf在文档末尾添加添加aliasnet-pf-10offaliasipv6off重启网卡或重启服务器,然后用ifconfig查看下还会不会出现IPV6地址
分类:系统相关   时间:2016-10-03 00:42:40    阅读次数:206
CentOS5/6 配置网卡(静态IP)
1.vi/etc/sysconfig/network-scripts/ifcfg-eth0添加下面内容:DEVICE=eth0ONBOOT=yes//开机自动启动网卡BOOTPROTO=static//静态IPADDR=//IP地址IPADDR2=//附加IP地址1IPADDR3=//附加IP地址2NETMASK=//子网掩码GATEWAY=//网关DNS1=//DNS域名解析DNS2=MTU=2.修改保存后重启网卡s..
分类:其他好文   时间:2016-10-03 00:41:25    阅读次数:224
CentOS7 服务启动命令
【CentOS7】服务启动命令与【CentOS5/6】不一样常用的命令有:systemctldisablenetworkmanager.service//disable禁止开机启动enable开机启动systemctlstopnetworkmanager.service//stop关闭网络还原服务start/restartsystemctldisablefirewalld.service//禁止firewalld防火墙开..
分类:其他好文   时间:2016-10-03 00:42:07    阅读次数:329
debian/ubuntu系统,IP DNS MTU 配置
1.配置添加IP:vi/etc/network/interfaces修改如下内容#Theprimarynetworkinterfaceautoeth0ifaceeth0inetstaticmtu1410address192.168.1.100address2#添加多个IP地址netmask255.255.255.0gateway192.168.1.1保存,重启网卡servicenetworkingrestart或者/etc/init.d/networking..
分类:系统相关   时间:2016-10-03 00:40:35    阅读次数:225
CentOS 6.4_64下安装LANMP_WDCP2.5以及升级PHP、MYSQL版本流程
yuminstallwget-ywgethttp://down.wdlinux.cn/in/lanmp_wdcp_ins.shshlanmp_wdcp_ins.sh升级:wgethttp://soft.itbulu.com/wdcp/php_up54.sh;shphp_up54.shwgethttp://soft.itbulu.com/wdcp/mysql_up55.sh;shmysql_up55.sh安装过程中的错误处理:ERROR!MySQLserverPIDfilecould..
分类:数据库   时间:2016-10-03 00:41:24    阅读次数:404
linux 安装LuManager(自己的路)
yuminstallwget-ywgethttp://down.zijidelu.org/zijidelu_install.shchmod777zijidelu_install.sh./zijidelu_install.sh-y默认密码都是zijidelu如出现Failedtoconnectto2a01:c0:2:4:0:acff:fele:le52:网络不可达需要修改yum源
分类:系统相关   时间:2016-10-03 00:41:11    阅读次数:219
linux安装Easypanel(kangle)面板
yum-yinstallwgetwgethttp://download.kanglesoft.com/easypanel/ep.sh-Oep.shshep.sh管理面板网址:http://服务器IP地址:3312/admin/默认用户名admin密码kangle独立网站管理:http://服务器IP地址:3312/vhost/默认用户名admin密码kangleMYSQL帐号password密码new-password
分类:系统相关   时间:2016-10-03 00:40:50    阅读次数:332
935条   上一页 1 ... 46 47 48 49 50 51 52 ... 55 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!