您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 销售管理 > Ubuntu Server最佳方案02
第2222章拥抱UbuntuServer第2章拥抱UbuntuServer132.2安装UbuntuServer2.2.1安装前的准备/dev/sdb2/homeext3defaults02$sudoblkid/dev/sda1:UUID=ac369a10-e335-42b1-a3a5-ce9524c8130bTYPE=ext3/dev/sda5:TYPE=swapUUID=8f7943ed-6589-41db-90d0-f57a8ad7cdbd2.2.3把语言环境变量改为英文$localeLANG=zh_CN.UTF-8LANGUAGE=zh_CN:zhLC_CTYPE=zh_CN.UTF-8LC_NUMERIC=zh_CN.UTF-8LC_TIME=zh_CN.UTF-8LC_COLLATE=zh_CN.UTF-8LC_MONETARY=zh_CN.UTF-8LC_MESSAGES=zh_CN.UTF-8LC_PAPER=zh_CN.UTF-8LC=zh_CN.UTF-8LC_ADDRESS=zh_CN.UTF-8LC_TELEPHONE=zh_CN.UTF-8LC_MEASUREMENT=zh_CN.UTF-8LC_IDENTIFICATION=zh_CN.UTF-8LC_ALL=LANG=zh_CN.UTF-8LANGUAGE=zh_CN:zh$sudonano/etc/default/localeLANG=en_US.UTF-8LANGUAGE=en_US:en$localeLANG=en_US.UTF-8LANGUAGE=en_US:enLC_CTYPE=en_US.UTF-8LC_NUMERIC=en_US.UTF-8最佳方案14LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8LC_PAPER=en_US.UTF-8LC=en_US.UTF-8LC_ADDRESS=en_US.UTF-8LC_TELEPHONE=en_US.UTF-8LC_MEASUREMENT=en_US.UTF-8LC_IDENTIFICATION=en_US.UTF-8LC_ALL=2.2.4安全补丁、版本升级$sudoapt-getupdate$sudoapt-getupgrade$sudoapt-getdist-update$sudodo-release-upgrade2.3Ubuntu快速入门指南2.3.3快速查找文件1.find命令$find/usr/share/doc-name*.txt$find/tmp-namecore|xargs/bin/rm-f$find$HOME-mtime0$find.-perm6642.locate命令$sudoupdatedb第2章拥抱UbuntuServer15$locateapt-get/usr/bin/apt-get/usr/share/man/es/man8/apt-get.8.gz/usr/share/man/fr/man8/apt-get.8.gz/usr/share/man/ja/man8/apt-get.8.gz/usr/share/man/man8/apt-get.8.gz$locateapt-get-c52.3.4软件包管理$apt-cacheshowphp5-mysqlPackage:php5-mysqlPriority:optionalSection:webInstalled-Size:236Maintainer:UbuntuCoreDevelopersubuntu-devel-discuss@lists.ubuntu.comOriginal-Maintainer:DebianPHPMaintainerspkg-php-maint@lists.alioth.debian.orgArchitecture:i386Source:php5Version:5.2.4-2ubuntu5.3Replaces:php5-mysqliDepends:libc6(=2.4),libmysqlclient15off(=5.0.27-1),php5-common(=5.2.4-2ubuntu5.3),phpapi-20060613+lfsConflicts:php5-mysqliFilename:pool/main/p/php5/php5-mysql_5.2.4-2ubuntu5.3_i386.debSize:65242MD5sum:003114b8d97dd35d435763338b3113f7SHA1:8d977486b1098c54b54036815398223a191e590dSHA256:8d8b301f1a1e85891d5da5c5fdebd9d7c16d7828b4be84640d824e881fe9f1dfDescription:MySQLmoduleforphp5ThispackageprovidesmodulesforMySQLdatabaseconnectionsdirectlyfromPHPscripts.ItincludesthegenericmysqlmodulewhichcanbeusedtoconnecttoallversionsofMySQL,animprovedmysqlimoduleforMySQLversion4.1orlater,andthepdo_mysqlmoduleforusewiththePHPDataObjectextension..PHP5isanHTML-embeddedscriptinglanguage.MuchofitssyntaxisborrowedfromC,JavaandPerlwithacoupleofuniquePHP-specificfeaturesthrownin.Thegoalofthelanguageistoallowwebdeveloperstowritedynamicallygeneratedpagesquickly.Bugs:mailto:ubuntu-users@lists.ubuntu.comOrigin:UbuntuTask:lamp-server最佳方案162.3.5使用apt工具2./etc/apt/sources.list文件deb(或deb-src)网络地址主版本代号软件仓库1软件仓库2软件仓库3...deb://archive.ubuntu.com/ubuntu/hardymainrestricteddeb://archive.ubuntu.com/ubuntu/hardy-updatesmainrestricteddeb://archive.ubuntu.com/ubuntu/hardyuniversedeb://archive.ubuntu.com/ubuntu/hardy-updatesuniversedeb://archive.ubuntu.com/ubuntu/hardymultiversedeb://archive.ubuntu.com/ubuntu/hardy-updatesmultiversedeb://security.ubuntu.com/ubuntuhardy-securitymainrestricteddeb://security.ubuntu.com/ubuntuhardy-securityuniversedeb://security.ubuntu.com/ubuntuhardy-securitymultiverse$sudocp/etc/apt/sources.list/etc/apt/sources.list-backup3.apt-get命令$sudoapt-getinstallphp5-mysqlapache2-mpm-preforklibapache2-mod-php5$sudoapt-getupdate&&sudoapt-getupgrade4.apt-cache命令$apt-cachesearchmysql$apt-cachesearchmysql|grepserver$apt-cacheshowssh第2章拥抱UbuntuServer175.aptitude命令$sudoaptitudeupdate$sudoaptitudeupgrade$aptitudesearchmysql|grepserver$sudoaptitudeclean--purge-unused6.tasksel命令$tasksel--task-packageslamp-serverapache2mysql-client-5.0libapache2-mod-php5apache2.2-commonapache2-utilsphp5-commonlibaprutil1php5-mysqllibmysqlclient15offlibdbi-perlmysql-serverlibplrpc-perlmysql-server-5.0libdbd-mysql-perllibnet-daemon-perllibapr1libxml2libpcre3libpq5apache2-mpm-preforkmysql-common$tasksel--list-tasksudns-serverDNSserveruedubuntu-serverEdubuntuserverulamp-serverLAMPserverumail-serverMailserveriopenssh-serverOpenSSHserverupostgresql-serverPostgreSQLdatabaseuprint-serverPrintserverusamba-serverSambaFileserver最佳方案18$taskselinstalllamp-server$taskselremovelamp-server7.dpkg命令$dpkg-laptDesired=Unknown/Install/Remove/Purge/Hold|Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend|/Err?=(none)/Hold/Reinst-required/X=both-problems(Status,Err:uppercase=bad)
本文标题:Ubuntu Server最佳方案02
链接地址:https://www.777doc.com/doc-6455727 .html