centos安装setup系统管理小工具
Centos运行不了setup? 那安装setuptool吧,可以节省很多系统管理的时间. 安装setuptool:
yum install setuptool
可以发现执行setup后不全,再安装一个用于系统服务管理:
yum install ntsysv
再安装个防火墙,以及setup中配套的防火墙设置、网络设置:
yum install iptables
安装setup中配套的防火墙设置:
yum install system-config-securitylevel-tui
安装setup中配套的网络设置:
yum install system-config-network-tui
某个项目apache无法启动数据库
vi database.yml
development:
adapter: mysql
encoding: utf8
database: shonin_development
pool: 5
username: root
password:
host: localhost
test:
adapter: mysql
encoding: utf8
database: shonin_test
pool: 5
username: root
password:
host: localhost
production:
adapter: mysql
encoding: utf8
database: shonin_production
pool: 5
username: root
password: 123456
host: localhost
socket: /var/lib/mysql/mysql.sock
注意:Linux服务器上,默认第一个读取production数据库配置信息,所以,我们只要确保production里的信息正常就可以.一般只要更改username和password就可以.另,通常要在最下方,加上 socket: /var/lib/mysql/mysql.sock.不同系统,路径不同,也有可能是 socket: /tmp/mysql.sock.
ERROR Unable to load SQL-Dump into...
拆卸旧的ispconfig 重新安装 结果出现:
ERROR: Unable to load SQL-Dump into database table.
只要重启数据库就好了.
/etc/init.d/mysqld restart
解决Reverse Mapping Checking - Possible...
今天在使用SCP的时候遇到个一个error,如下:
reverse mapping checking getaddrinfo for XXX.XXXX.com failed - POSSIBLE BREAKIN ATTEMPT!
我用ssh 连接了一下XXX.XXXX.com,同样的问题:
reverse mapping checking getaddrinfo for sXXX.XXXX.com failed - POSSIBLE BREAKIN ATTEMPT!
Last login: Mon May 5 16:50:08 2008 from 192.168.82.128
但是,还是能进入 XXX.XXXX.com. 找到以下解释:
Reverse Mapping Checking - Possible Break-in Attempt Error with SSH
Posted May 2nd, 2008 in Linux/Unix/BSD
When you connect to a host using SSH or SFTP it does a series of checks to ensure you are connecting to the host you are expecting to connect to. One of these is a reverse lookup on the IP address to check the hostname is the same as the hostname you are connecting to. If it's not, you'll get an error message like "reverse mapping checking getaddrinfo for ... POSSIBLE BREAK-IN ATTEMPT!". The post looks at a solution to this...
解决extman后台No such file or directory
需要启动cmdserver,命令:
/var/www/extsuite/extman/daemon/cmdserver -d
清理wordpress的数据库
清理数据表为: wp_options, wp_posts, wp_postmeta. 我使用一款插件来完成clean-options,网上也经常采取删除这个数据库表的方法来处理.不过会丢失一些设置. 我也是使用的一款插件处理的 WP Cleaner . 下面在给出几条语句让你的wp_postmeta干净到非常.
DELETE FROM wp_postmeta WHERE meta_key = '_edit_lock';
DELETE FROM wp_postmeta WHERE meta_key = '_edit_last';
这是之前给出的两条语句测试安全删除无危险.
DELETE FROM wp_postmeta WHERE meta_key = '_wp_old_slug';
DELETE FROM wp_postmeta WHERE meta_key = '_revision-control';
DELETE FROM wp_postmeta WHERE meta_value = '{{unknown}}';