免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: chinesedragon
打印 上一主题 下一主题

[桌面系统] 我想看下我机器上的Mysql是不是随机启动了 [复制链接]

论坛徽章:
0
21 [报告]
发表于 2012-07-21 08:37 |只看该作者
在我用来没有什么区别,不过据说apptitude可以更好的解决软件依赖关系
ulovko 发表于 2012-07-21 08:35
请问 apt-get  && aptitude 区别是什么?

论坛徽章:
13
15-16赛季CBA联赛之同曦
日期:2016-01-28 19:52:032015亚冠之北京国安
日期:2015-10-07 14:28:19NBA常规赛纪念章
日期:2015-05-04 22:32:03处女座
日期:2015-01-15 19:45:44卯兔
日期:2014-10-28 16:17:14白羊座
日期:2014-05-24 15:10:46寅虎
日期:2014-05-10 09:50:35白羊座
日期:2014-03-12 20:52:17午马
日期:2014-03-01 08:37:27射手座
日期:2014-02-19 19:26:54子鼠
日期:2013-11-30 09:03:56狮子座
日期:2013-09-08 08:37:52
22 [报告]
发表于 2012-07-21 08:39 |只看该作者
chinesedragon 发表于 2012-07-21 08:37
在我用来没有什么区别,不过据说apptitude可以更好的解决软件依赖关系


据我所知 aptitude功能更强大 apt-get已经out了 O_o

论坛徽章:
0
23 [报告]
发表于 2012-07-21 08:42 |只看该作者
哦是吗?我看不见得,它应该还没有强大到取代apt-get的地步。
因为现在Ubuntu和Debian都还是默认apt-get的,没有默认安装aptitude的。
另外在我使用过程中没有感觉到aptitude比apt-get强大多少
ulovko 发表于 2012-07-21 08:39
据我所知 aptitude功能更强大 apt-get已经out了 O_o

论坛徽章:
0
24 [报告]
发表于 2012-07-21 08:44 |只看该作者
http://bbs.chinaunix.net/thread-1923526-1-1.html
好像还是有问题的
ulovko 发表于 2012-07-21 08:39
据我所知 aptitude功能更强大 apt-get已经out了 O_o

论坛徽章:
13
15-16赛季CBA联赛之同曦
日期:2016-01-28 19:52:032015亚冠之北京国安
日期:2015-10-07 14:28:19NBA常规赛纪念章
日期:2015-05-04 22:32:03处女座
日期:2015-01-15 19:45:44卯兔
日期:2014-10-28 16:17:14白羊座
日期:2014-05-24 15:10:46寅虎
日期:2014-05-10 09:50:35白羊座
日期:2014-03-12 20:52:17午马
日期:2014-03-01 08:37:27射手座
日期:2014-02-19 19:26:54子鼠
日期:2013-11-30 09:03:56狮子座
日期:2013-09-08 08:37:52
25 [报告]
发表于 2012-07-21 08:55 |只看该作者
chinesedragon 发表于 2012-07-21 08:44
http://bbs.chinaunix.net/thread-1923526-1-1.html
好像还是有问题的

apt-get 有超级牛力
aptitude 没有超级牛力
--------------------------
apt-get 可以获取源码。aptitude不会
-----------------------------------------------
aptitude是可以作到比较干净的删除软件包,不过有时侯它会把一些它认为不需要的包给删掉,实际上可能还是需要这些包的。
-----
Aptitude is said to deal with dependencies better than apt-get. For example, say you install a package which automatically installs some library packages because it depends on them. When you remove this package with apt-get, it won't remove the libraries this package installed, although they aren't used anymore.

When you install that package with aptitude and remove it with aptitude, aptitude 'detects' that those library packages aren't used anymore and will therefore automatically remove thm.

I myself switched from apt-get to aptitude.
FROM:http://www.linuxquestions.org/qu ... vs-aptitude-363365/


http://bbs.chinaunix.net/thread-3751791-1-1.html  我安装debian的时候就默认有aptitude O_o

论坛徽章:
0
26 [报告]
发表于 2012-07-21 08:58 |只看该作者
回复 25# ulovko


    谁知道呢,我等小菜,这问题是闹不清楚的。
不过aptitude是后来才出来的,应该更好一些吧

论坛徽章:
0
27 [报告]
发表于 2012-07-21 08:58 |只看该作者
但我好像记得有人说两者最好 不要混用
chinesedragon 发表于 2012-07-21 08:58
回复 25# ulovko

论坛徽章:
0
28 [报告]
发表于 2012-07-21 09:00 |只看该作者
@chenyx@snow888@ulovko
  1.     luoshupeng@MyWorldIsYou:~$ sudo netstat -antlp | grep 3306
  2.     [sudo] password for luoshupeng:
  3.     tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      1235/mysqld     
  4.     luoshupeng@MyWorldIsYou:~$ chkconfig --list | grep mysql
  5.     mysql                     0:off  1:off  2:off  3:off  4:off  5:off  6:off
  6.     luoshupeng@MyWorldIsYou:~$ ps -ef | grep mysqld
  7.     mysql     1235     1  0 08:31 ?        00:00:00 /usr/sbin/mysqld
  8.     1000      2597  2450  0 08:33 pts/1    00:00:00 grep --color=auto mysqld
  9.     luoshupeng@MyWorldIsYou:~$
复制代码
我的Mysql不能不管啊,呵呵

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
29 [报告]
发表于 2012-07-21 10:08 |只看该作者
ubuntu默认是update-rc.d管理服务的,你找下文档吧.

论坛徽章:
0
30 [报告]
发表于 2012-07-21 10:42 |只看该作者
用update-rc.d 也处理不了,
只能 编辑 /etc/init/mysql.conf把start on [234]改为start on [!0123456]了。
这样Mysql就不会启动了
chenyx 发表于 2012-07-21 10:08
ubuntu默认是update-rc.d管理服务的,你找下文档吧.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP