1、卸载linux自带的jdk
rpm -qa|grep jdk
显示内容全部卸载
rpm -qa|grep gcj
显示内容全部卸载
rpm -e --nodeps ...
注意:比如rpm -e --nodeps --allmatches java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.115
2、tomcat6使用jsvc实现自启动
安装jsvc
tar zxvf jsvc.tar.gz
cd jsvc-src
chmod +x configure
./configure --with-java=/opt/jdk1.6.0_22/
make
3、mysql默认不允许远程访问,授权如下:
mysql> grant all privileges on *.* to 'root'@'172.16.1.224' identified by '';
rpm -qa|grep jdk
显示内容全部卸载
rpm -qa|grep gcj
显示内容全部卸载
rpm -e --nodeps ...
注意:比如rpm -e --nodeps --allmatches java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.115
2、tomcat6使用jsvc实现自启动
安装jsvc
tar zxvf jsvc.tar.gz
cd jsvc-src
chmod +x configure
./configure --with-java=/opt/jdk1.6.0_22/
make
3、mysql默认不允许远程访问,授权如下:
mysql> grant all privileges on *.* to 'root'@'172.16.1.224' identified by '';
另外防火墙要关闭,
/sbin/service iptables stop
/*替换更新*/
UPDATE wap_pageitem SET linkurl=REPLACE(linkurl,'120.193.10.232','172.27.0.28') WHERE linkurl IS NOT NULL AND linkurl<>''
4、linux打开了过多的文件
lsof -p pid | wc -l -----pid为进程id 查看进程打开的文件数
1./etc/security/limits.conf
vi /etc/security/limits.conf
加上:
* soft nofile 8192
* hard nofile 20480
2./etc/pam.d/login
session required /lib/security/pam_limits.so
ulimit -a 用来显示当前的各种用户进程限制。
5、sed命令
sed -n '122744600,122744700p'
显示从122744600行到122744700行。