资源描述:
《java程序员-常用linux基础操作收集》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、JAVA程序员-常用LINUX基础操作收集Ididn'thaveashorttimetogettoLINUX,andIstartedworkingontheWindowsofshenzheproject,includingtheperformancetuningofthesystem,andsoon,SonowIhaveaprojectforjinhuamobile,andtheserverthatisdeployedisalsotheLINUXoperatingsystem,sojusttogetahandieonLINUX,let'sstartwiththeinstallation,Myi
2、nstallationisveryeasy,webuyislenovoserver,forinstallingLINUX,insidethehelpmanualwriteverydetailed,justneedtogostepbystepwithrespecttoOK,Accordingtothez,lenovocompleteserver-eyenavigationusermanualz,,theoperatingsystemhasbeeninstalled.ThesystemdefaultstotheLinuxthirdtypeofinterface,commandinterface,l
3、ogin,andyoucanalsogoinwithroot・Andthenit'stimeforustoconfigureourselves,ApriorityistoconfiguretheTCP/IP,ofcourse,theoperatingsystemstartforthefirsttimeyouwillbepromptedforyouifyouwanttoTCP/IPinformation,ifafteryouinput,shewillautomaticallyinstallDriver,ofcourse,wecanalsosetupthenetworkwiththefollowi
4、ngmethod#ifconfigethOlO.79.3.155netmask255.255.255.0#routeadddefaultgw10.79.3.3OnceIcan,t,Icantryafewmoretimes,IjusttookalongtimetogettotheInternet・ServercouldevengettotheInternet,wecanthroughtheremoterenameit,ofcourse,italsohasitsowngraphicalinterface,butthedefaultwaytostartisthecommandlineIfyouwan
5、ttochangethedefaultmode,youcansetthefollowingSettings,ofcourseeachversionoftheserverisdifferent,butthesameistrueLINUXgraphicalinterfaceThedefaultLinuxbootisnotloggedintothegraphicalinterfaceThe/etc/inittabTherunlevelsusedbyRHSare:DoNOTsetinitdefaulttothis#1一Singleusermode#2-multiuser,withoutNFS(Thes
6、ameas3,ifyoudonothavenetworking)#3-fullmultiusermode#4一unused#5-XllDoNOTsetinitdefaulttothis.#Id:5:initdefault:5to3NextcomestheinstallationoftheJDKInstallationoftheJdkunderLinuxDownloadthej2sdkforLinuxatsun.comInstallthejdk1.4.2forLinux,followingRedHat9.0forexample:Loginasroot(1)openaterminal(2)ente
7、rthecommandIsTtoviewthepermissionsoftheinstallationfile(3)enterthecommandchmoda+xj2sdk-l_4_2_4_2_4_2_06/rx・bin,andaddthepermissionsforalluserstoexecute・(4)toinstalltheJDK/j2sdk-l_4_2_04-linux-i56-rpmW