1:第一种方法:查看history 的记录

history

但是这个记录命令条数的有限的,当然你可以调整存储的命令记录的条数足够储存到不玩为止

修改history储存条数的方法

vi /etc/profile
HISTSIZE=10000  #改成想存储的条数
#保存退出
#使profile文件生效
source /etc/profile


第二种方法:

1. mysql
cat /usr/local/mysql/bin/mysqlbug | grep CONFIGURE_LINE
2. apache
cat /usr/local/apache/build/config.nice
3. php
/usr/local/php5/bin/php -i |grep configure
4. nginx
/usr/local/nginx/sbin/nginx -V