上一页 1 ··· 25 26 27 28 29
摘要: 1.编译环境错误:Ubuntu10.04下仅预装了gcc编译环境,但安装此套环境的源码包还需要g++(即c++)的编译环境,需要安装g++软件,但这两者的版本需要同步,否则安装会出错,比较好的解决方案是使用如下的命令:sudoapt-getinstallbuild-essential来安装整套编译环境的套装软件(因为单独安装gcc与g++可能引发两者的版本不同步),装好后,编译环境即配置完成2.编译libxml2时出错:错误信息如下图:解决方法:打开目录下的nanohttp.c,第1588行由fd = open(filename, O_CREAT | O_WRONLY);更换为fd = ope 阅读全文
posted @ 2013-03-31 19:18 不负韶华668 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 由于linux的tar命令不支持批量解压,所以很多网友编写了好多支持批量解压的shell命令,收集了一下,供大家分享:第一:for tar in *.tar.gz;do tar xvf $tar; donefor tar in *.tar.bz2; do tar xvf $tar; done第二:用tar命令批量解压某个文件夹下所有的tar.gz文件ls *.tar.gz | xargs -n1 tar xzvf第三:find -maxdepth 1 -name "*.bz2"|xargs -i tar xvjf {}这条命令可解压当前目录下的所有bz2文件批量解压是比较郁 阅读全文
posted @ 2013-03-31 01:08 不负韶华668 阅读(829) 评论(0) 推荐(0) 编辑
摘要: 这里说明,Ubuntu中系统没有了RH系统中的chkconfig命令 !功能较全的工具:sysv-rc-conf#sudo apt-get update#sudo apt-get install sysv-rc-conf运行(只能在终端运行,不能在运程):#sudo sysv-rc-conf也可以直接加入启动程序,例如把 /etc/init.d/red5 加入到系统自动启动列表中:#sudo sysv-rc-conf red5 on其他使用方法见: google::Ubuntu::sysv-rc-conf 命令用法也可以直接修改直接改 /etc/rc0.d ~ /etc/rc6.d 和 /et 阅读全文
posted @ 2013-03-30 21:02 不负韶华668 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 1.查找进程信息:netstat -tap | grep mysqlps -le或-aux|grep mysql(可以知道父进程id跟子进程id)ps -l或-u:表示隶属自己的进程的详细信息ps -uU zrp:查看指定用户zrp执行的进程信息杀死进程:kill -9 进程号(强制关闭) kill -1 进程号(重启)根据进程名关闭进程:killall httpd pkill 进程名(如ssh)查找进程号:pgrep 进程名2.让进程在后台执行&:如:find / -name mysql > /test/find.txt &(前提是要有这个文件);3.nohup:使.. 阅读全文
posted @ 2013-03-30 14:27 不负韶华668 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 一、安装 1. 首先安装SSH sudo apt-get install openssh-server 2.安装MySQL sudo apt-get install mysql-server-5.5 3.安装Apache sudo apt-get install apache2 4.安装PHP sudo apt-get install php5 libapache2-mod-php5 5.重启Apache sudo /etc/init.d/apache2 restart 6.安装phpMyAdmin sudo apt-get install phpmyadmin 另一种方法:安装LAMP 在. 阅读全文
posted @ 2013-03-30 14:25 不负韶华668 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 开始我还以为ubuntu系统也是和CentOS一样,开机进入groub界面按“e”键编辑以“K”开头那行,在后面加上“single”重启就进单用户模式,可以直接休息root密码,可是不是,这些纠结了,最后网上找了一个方法,果然有效,哈哈以普通用户登录,我这里是mercury,执行如下操作:mercury@websvc-3:~$ sudo passwd root[sudo] password for mercury: (输入mercury的密码)Enter new UNIX password: (输入要给root设置的密码)Retype new UNIX password: (确认root密码) 阅读全文
posted @ 2013-03-28 21:40 不负韶华668 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 注:本操作是在WIN命令提示符下,phpMyAdmin同样适用。用户:phplamp用户数据库:phplampDB1.新建用户。//登录MYSQL@>mysql-uroot-p@>密码//创建用户mysql>insertintomysql.user(Host,User,Password)values("localhost","phplamp",password("1234"));//刷新系统权限表mysql>flushprivileges;这样就创建了一个名为:phplamp密码为:1234的用户。然后登录一下 阅读全文
posted @ 2013-03-28 16:53 不负韶华668 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 遇到了 SQLException: access denied for @'localhost' (using password: no)解决办法 grant all privileges on *.* to joe@localhost identified by '1'; flush privileges;(刷新权限表)表示允许joe帐号在本地用密码:1 登陆访问数据库附:mysql> grant 权限1,权限2,…权限n on 数据库名称.表名称 to 用户名@用户地址 identified by ‘连接口令’;权限1,权限2,…权限n代表select 阅读全文
posted @ 2013-03-28 16:47 不负韶华668 阅读(263) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29