??xml version="1.0" encoding="utf-8" standalone="yes"?> 1、开启ftp服务?/p>
cd /etc/xinetd.d Q编辑ftp服务的配|文件gssftp的设|:(x) 开启ftp服务讄. vi gssftp Q将 修改两项内容Q?/p>
Q?Qserver_args = -l –a L-a 改ؓ(f)server_args = -l Q?Qdisable=yes改ؓ(f)disable=no Q?Q保存退出?/p>
2、开启telnet服务 cd /etc/xinetd.d Q察看telnet服务的配|文件krb5-telnet的设|:(x) 开启telnet服务讄 vi krb5-telnet , Q?Q将disable=yes,改ؓ(f)disable=no,保存退出?/p>
3、激zL务:(x) telnet /ftp 是挂?xinetd 底下的,所以自然只要重新激z?xinetd p够将
xinetd 里头的设定重新读q来Q所以刚刚设定的telnet /ftp自然也就可以被激zR?/p>
Ȁzȝ录和命o(h)Q?/p>
cd /etc/rc.d/init.d/ service xinetd start 有时?x)提C命令不存在Q需要加上命令的路径 [root@localhost init.d]# service xinetd start bash: service: command not found [root@localhost init.d]# /sbin/service xinetd start 讄vsftpd自动启动 chkconfig vsftpd on ?/p>
q行ntsysvvsftpd选上 ?/p>
echo "/usr/local/sbin/vsftpd &" >>/etc/rc.local 如果出现不能讉K的现象可以将防火墙和SELinux停用 1、service iptables stop 2、编?etc/selinux/configSELINUX设ؓ(f)disabledQ即SELINUX=disabled 或终端里q行system-config-securitylevel-tui 或点?#8220;system"->"administration"->"security level and firewall寚w火墙和SELinuxq行讄
uname –a 看内?br />
cat /proc/version 看内?br />
cat /etc/issue 直接看版?br />
lsb_release
–a直接看版?br />
cat /etc/redhat-release直接看版?br />
修改字符?br />
~辑文g /etc/sysconfig/i18n 修改LANG="zh_CN.GB18030"
使用SSHd到远E主?nbsp; 可用的工hSSH secure shell
q行 rpm -qa xinetd 查看xinetd是否安装
q行 rpm -qa telnet-server 查看telnet服务端是否安?br />
q行 rpm -qa vsftpd 查看ftp是否安装
如果没有安装Q从https://rhn.redhat.com/ 扑ֈ相关的rpm包,下蝲
先安装xinetd,再安装另外两个。安装命令用 rpm -ivh +文g名?br />
安装完毕之后Q?br />
pȝ默认root不能telnetdQ需要新建用?br />
groupadd tomcat
useradd -m -g tomcat -G tomcat tomcat --创徏用户名ؓ(f)tomcat属于tomcatl的用户
id tomcat --如果出现l果Q表明用户创建成?br />
passwd tomcat --修改密码
遇到问题,创徏用户?dFTP提示找不到home目录
解决办法Q?让vsftpd qxinetd独立启动
执行命o(h) setsebool ftpd_disable_trans 1Qƈ重启vsftpd。这时用户可以正常登录。若希望root也能dFTPQ在ftpusers和user_list文g中去掉root?br />
遇到问题Q系l重启后 vsftpd不自动启动。手动启动后Q又出现登陆不了(jin)的情c(din)?br />
解决办法Q?br />
安装java
rootw䆾修改jdk安装E序权限Q安?br />
修改 /etc/profile 在末֢?br />
#jdk1.6 env
export JAVA_HOME=/usr/java/jdk1.6.0_18/
export
PATH=$JAVA_HOME/bin:$PATH
export
CLASSPATH=.:$JAVA_HOME/lib/td.jar:$JAVA_HOME/lib/tools.jar
export
JAVA_HOME
export PATH
export CLASSPATH
重启服务?reboot
执行 java -version
功能QOracle数据导入导出imp/expq当与oracle数据q原与备份?br />
大多情况都可以用Oracle数据导入导出完成数据的备份和q原Q不?x)造成数据的丢失)(j)?br />
Oracle有个好处Q虽然你的电(sh)脑不是服务器Q但是你装了(jin)oracle客户端,q徏立了(jin)q接
Q通过Net Configuration Assistantd正确的服务命名,其实你可以想成是客户端与服务器端 修了(jin)条\Q然后数据就可以被拉q来?jin)?j)
q样你可以把数据导出到本圎ͼ虽然可能服务器离你很q?br />
你同样可以把dmp文g从本地导入到q处的数据库服务器中?br />
利用q个功能你可以构Z个相同的数据库,一个用来测试,一个用来正式用?br />
执行环境Q可以在SQLPLUS.EXE或者DOSQ命令行Q中执行Q?br />
DOS中可以执行时׃ 在oracle 8i ?nbsp; 安装目录\$ora10g\BIN被设|ؓ(f)全局路径Q?br />
该目录下有EXP.EXE与IMP.EXE文g被用来执行导入导出?br />
oracle用java~写Q我想SQLPLUS.EXE、EXP.EXE、IMP.EXEq俩个文件是被包装后的类文g?br />
SQLPLUS.EXE调用EXP.EXE、IMP.EXE他们所包裹的类Q完成导入导出功能?br />
下面介绍的是导入导出的实例,向导入导出看实例基本上就可以完成Q因为导入导出很单?br />
数据导出Q?br />
1 数据库TEST完全导出,用户名system 密码manager 导出到D:\daochu.dmp?br />
exp system/manager@TEST file=d:\daochu.dmp full=y
2 数据库中system用户与sys用户的表导出
exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)
3 数据库中的表table1 、table2导出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)
4 数据库中的表table1中的字段filed1?00"打头的数据导?br />
exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\" where filed1 like '00%'\"
上面是常用的导出Q对于压~我不太在意Q用winzip把dmp文g可以很好的压~?br />
不过在上面命令后?加上 compress=y 可以了(jin)
数据的导?br />
1 D:\daochu.dmp 中的数据导入 TEST数据库中?br />
imp system/manager@TEST file=d:\daochu.dmp
上面可能有点问题Q因为有的表已经存在Q然后它?yu)报错,对该表就不进行导入?br />
在后面加?ignore=y 可以了(jin)?br />
2 d:\daochu.dmp中的表table1 导入
imp system/manager@TEST file=d:\daochu.dmp tables=(table1)
基本上上面的导入导出够用?jin)。不情冉|是将表彻底删除,然后导入?br />
注意Q?br />
你要有够的权限Q权限不够它?x)提CZ?br />
数据库时可以q上的。可以用tnsping TEST 来获得数据库TEST能否q上?/p>
数据导出Q?br /> exp hkb/hkb@boss_14 full=y file=c:\orabackup\hkbfull.dmp log=c:\orabackup\hkbfull.log;
导出注意事项Q导出的是当前用L(fng)的数据,当前用户如果有DBA的权限,则导出所有数据!
同名用户之间的数据导入:(x)
imp hkb/hkb@xe file=c:\orabackup\hkbfull.dmp log=c:\orabackup\hkbimp.log full=y
不同名之间的数据导入Q?br /> imp system/test@xe fromuser=hkb touser=hkb_new file=c:\orabackup\hkbfull.dmp
log=c:\orabackup\hkbimp.log;
https://javaserverfaces.dev.java.net/download.html
官方教程Q?/p>
http://java.sun.com/developer/technicalArticles/GUI/JavaServerFaces/
for EclipseQ?/p>
http://www.eclipse.org/webtools/jsf/
LoadModule php5_module X:/php/php5apache2_2.dll
PHPIniDir "X:/php"
需要注意的是dll对应的apache版本Q也是php5apache后面的数字?/p>
2.在PHP5中连接MySQL5
PHP5中已l不直接支持MySQL?jin),需要自己手动配|,官方|站中是q样说明的:(x)
MySQL is supported with the only change being that MySQL support is no longer enabled by default in PHP 5. This essentially means that PHP doesn't include the --with-mysql option in the configure line so that you must now manually do this when compiling PHP. Windows users will edit php.ini and enable the php_mysql.dll DLL as in PHP 4 no such DLL existed, it was simply built into your Windows PHP binaries.
Also, the MySQL client libraries are no longer bundled with PHP. More details on this topic are covered in the following FAQ and be sure to read the MySQL section for details on installing MySQL. An example configure line would be --with-mysql=/usr while Windows users will need the libmySQL.dll available to the system.
先修改php.ini的内?/p>
extension_dir = "X:\php\ext"
q去掉下面两的分号
extension=php_mysql.dll
extension=php_mysqli.dll
然后Q将php目录下的libmysql.dll拯到C:\Windows目录Q之后MySQL可以正常连接了(jin)?/p>
写个E序来测试一下吧?/p>