在Ubuntu中是没有chkconfig这个命令的,如果想要在Ubuntu里面使用类似Chkconfig的命令怎么办呢?

可以试试sysv-rc-conf命令,如果没有安装的话,可以使用apt-get install来安装这个命令。就可以以模拟图形界面的方式来配置各个service的runlevel了。

另外Ubuntu使用Upstart来替代来了传统的sysvinit,详细的使用方法参加:

https://help.ubuntu.com/community/UpstartHowto

10. Speccy

Maybe you’ve forgotten what kind of RAM you bought, or want a quick glance at your CPU’s temperature. Speccy scans your machine and gives you a complete rundown of everything, from model numbers to temperatures, fan speeds, S.M.A.R.T. status, and…well, pretty much anything else you can think of. It’s also available in portable form, so you don’t have to install anything—just stick it in a folder for when you really need it. For an alternative, check out HWiNFO.

9. Ultimate Windows Tweaker

When you first install Windows, you probably get everything set up just the way you like it, including all your favorite little Registry hacks and unsupported tweaks. You might even discover new ones later and try them out. Apps like Ultimate Windows Tweaker make this a lot easier, and they’re useful to keep around later if you start incorporating new things into your workflow. Its list of features is endless, allowing you to tweak the tiniest features in the taskbar, Windows Explorer, the lock screen, and anything else you could imagine. Download it once and keep it forever (and as always, back up before you start tweaking your system).

继续阅读

如果你突然发现你的SSD不是4k对齐。但是你已经使用SSD一段时间,并且上面已经有一堆资料不能重新分区了怎么办?

试试这个工具吧: MiniTool Partition Wizard 

这个工具可以将没有4k对齐的SSD做到4k对齐。当然,对齐之前建议你备份硬盘上的重要数据。

下载地址: http://www.partitionwizard.com/

minitool

 

对齐以后别忘用AS SSD Benchmark测试性能有无提升~

突然一不小心删除了某些重要文件,虽然马上关机了。但是手边又没有合适的PE光盘来启动并且找到合适的数据恢复软件怎么办?

这个时候你可能就用得上Ubuntu的Live CD。然后用Live CD启动机器。在Linux环境下恢复硬盘上误删除的数据。

  • ntfsundelete
    这是Ubuntu自带的一个ntfs分区数据恢复命令行工具

下面几个工具呢,需要在Ubuntu的Software Source里面Check “Community-maintained Open Source software (universe)”.

  • testdisk
    这个软件包里面包含了TestDisk,用来恢复丢失的分区以及坏道;和Photorec,支持从多种不同文件系统里面恢复多种文件格式的文件。
  • Foremost
    据说是美国空军开发的用于数据恢复的软件。
  • scalpel
    功能和Foremost差不多,但是适用于配置比较低的机器。

OK,介绍完毕。希望大家都不要碰到文件误删/丢失的情况。也就不用做数据恢复了。

最近发现Piriform提供的几个免费软件还是很好用的,给大家介绍下

  1. CCleaner
    大名鼎鼎的CCleaner不会不知道吧?著名的系统垃圾清理软件。可以清理系统里面不需要的各种临时文件啊,日志文件啊。
  2. Defraggler
    磁盘碎片整理工具,如果你觉得硬盘速度越用越慢的话,可以试试用这个工具整理一下磁盘碎片。
  3. Recuva
    数据恢复软件。如果你磁盘上有数据被误删了的话,赶快用这个工具恢复!
  4. Speccy
    系统硬件信息查看工具。功能类似于AIDA32或者卤大师。可以检测出系统的各种硬件配置。

对了,不要说半天把网址忘记了:http://www.piriform.com/

 

First verify that Tomcat is running on port 8080. Run the following command

# netstat -ntl

The output will look something like

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN
tcp        0      0 ::ffff:127.0.0.1:8005       :::*                        LISTEN
tcp        0      0 :::8009                     :::*                        LISTEN
tcp        0      0 :::8080                     :::*                        LISTEN
tcp        0      0 :::22                       :::*                        LISTEN

Run the following command to redirect port 80 traffic to port 8080

# iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

Run the folloing command to verify that redirect is working fine

# iptables -t nat -L

The output will look something like

Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
REDIRECT   tcp  --  anywhere             anywhere            tcp dpt:http redir ports 8080

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination

Run the following command to remove the routing

# iptables -t nat -D PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

 

FROM: Glass Onion Blog