CentOS 6 (74)

augmenter la taille de ma partition étendue sous Linux 1and1 Cloud dynamique serveur

Comment puis-je augmenter la taille de ma partition étendue sous Linux? Connectez-vous sur votre serveur en tant qu'utilisateur « root » avec SSH. Pour afficher votre système de fichiers, utilisez la commande « ~ # df -h »: s123456789:~ # df –h Filesystem Size Used Avail Use% Mounted on /dev/hda1 9.2G 235M 8.5G 3% / udev 496M 112K 496M 1% /dev /dev/hda5 9.4G 2.1G 7.3G 22% /usr /dev/hda6 9.4G 148M 9.2G 2% /var /dev/hda7 221G 22M 221G 1% /srv none 1.0G 0 1.0G 0% /tmp Pour afficher votre partitionnage, utilisez la commande « ~ # fdisk -l »: s123456789:~ #…
Read more...

centos vsftp 配置

CentOS 5.3建立Vsftpd虚拟用户 我们登录FTP有三种方式,匿名登录、本地用户登录和虚拟用户登录。 匿名登录:在登录FTP时使用默认的用户名,一般是ftp或anonymous。 本地用户登录:使用系统用户登录,在/etc/passwd中。 虚拟用户登录:这是FTP专有用户,有两种方式实现虚拟用户,本地数据文件和数据库服务器。 FTP虚拟用户是FTP服务器的专有用户,使用虚拟用户登录FTP,只能访问FTP服务器提供的资源,大大增强了系统的安全。 本文的Linux系统是CentOS 5.3 yum -y install vsftpd 一、建立Vsftpd虚拟用户: 1、添加虚拟用户口令文件安装Vsftpd [[email protected] ~]#vi /etc/vsftpd/vftpuser.txt 添加虚拟用户名和密码,一行用户名,一行密码,以此类推。奇数行为用户名,偶数行为密码。 ftp1 #用户名 123456 #密码 ftp2 #用户名 123456 #密码 ''这里有个问题,我在创建的时候,在后面的build过程中出现过如下出错提示: db_load: unexpected end of input data or key/data pair db_load: odd number of key/data pairs 原因大概是在ftpUserInfo.txt最后需要再加个回车,加回车后,就没问题了,在图形界面的文本编辑器保存默认也会添加一个回车,所以,如果是在图形界面的文本编辑器下直接生成的,不会出现该错误.'' 2、生成虚拟用户口令认证文件 将刚添加的vftpuser.txt虚拟用户口令文件转换成系统识别的口令认证文件。 ##################################################################################### 首先查看系统有没有安装生成口令认证文件所需的软件db4-utils。 下面使用db_load命令生成虚拟用户口令认证文件。 [[email protected] ~]# db_load -T -t hash -f /home/vuser.txt /etc/vsftpd_login.db (命令在下面 这是演示) -bash: db_load: command not found ##################################################################################### 出现没有db_load的提示是因为有些db4的包没有安装,需要安装下列包: db4-*.rpm db4-tcl-*.rpm db4-utils-*.rpm 或者直接: yum -y install db4 db4-tcl db4-utils db_load命令主要是用来生成db数据库使用的 格式: db_load -T -t hash -f passwd.txt /etc/vsftpd/user_passwd.db 生成一个hash码型的数据库文件供ftp虚拟用户使用。 ##################################################################################### [[email protected] ~]#db_load -T -t hash -f /etc/vsftpd/vftpuser.txt /etc/vsftpd/vftpuser.db 3、编辑vsftpd的PAM认证文件 在/etc/pam.d目录下, [[email protected] ~]#vi…
Read more...

centos yum install transmission 启动 设置

ssh 安装yum install transmission -y会同时安装很多包 再來建立 Transmission 的設定檔目錄以及下載目錄(也可自訂啦) mkdir -p /usr/local/transmission mkdir -p /home/transmission 啟動Transmission產生Transmission的設定檔 ***此步驟要執行2次*** /usr/bin/transmission-daemon -g /usr/local/transmission 这里地址是有区别的 跟据个人不同 killall transmission-daemon 編輯Transmission設定檔 cp /usr/local/transmission/settings.json /usr/local/transmission/settings.json.bak vi /usr/local/transmission/settings.json 比較重要的設定如下: "blocklist-enabled": true, // 啟用黑名單 "dht-enabled": true, // 啟用DHT支援 "download-dir": "\/home\/transmission", // 下載位置,注意他的格式是\/目錄\/目錄 "encryption": 1, // 傳輸加密 "open-file-limit": 64, // 最大開啟檔案數量 "peer-limit-global": 250, // 最大連接數 "peer-limit-per-torrent": 100, // 單一任務連接數 "peer-port": 59999, // Transmission連接使用的port "ratio-limit": 2.0000, // 上下傳比例達到多少停止做種 "ratio-limit-enabled": false, // 啟用上下傳比例 "rpc-enabled": true, // 啟用網頁管理模組 这个一定要启用 "rpc-bind-address": "0.0.0.0", // 指定IP位置 "rpc-port": 5566, // 指定網頁管理模組的port "rpc-whitelist-enabled": true, // 啟用IP認證模式 "rpc-whitelist": "127.0.0.1,192.168.*.*,其他可以連的IP", // 指定認可的IP位置,以,區隔 "speed-limit-down": 100, // 限制下載速度,以KB/Sec計算 "speed-limit-down-enabled": false, // 啟用限制下載速度 "speed-limit-up":…
Read more...

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php on line 191
Call Stack
#TimeMemoryFunctionLocation
10.0005407976{main}( ).../index.php:0
20.05584930080Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.05584930080Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.189313312024Joomla\CMS\Application\SiteApplication->dispatch( $component = ??? ).../SiteApplication.php:233
50.189713336440Joomla\CMS\Component\ComponentHelper::renderComponent( $option = 'com_k2', $params = ??? ).../SiteApplication.php:194
60.190213391792Joomla\CMS\Component\ComponentHelper::executeComponent( $path = '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:377
70.190313423272require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php ).../ComponentHelper.php:402
80.195613742848K2ControllerItemlist->execute( $task = 'category' ).../k2.php:64
90.195613742848K2ControllerItemlist->display( $cachable = ???, $urlparams = ??? ).../BaseController.php:710
100.203414940256K2ControllerItemlist->display( $cachable = TRUE, $urlparams = ['limit' => 'UINT', 'limitstart' => 'UINT', 'id' => 'INT', 'tag' => 'STRING', 'searchword' => 'STRING', 'day' => 'INT', 'year' => 'INT', 'month' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'ordering' => 'CMD', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ).../itemlist.php:49
110.203414940256K2ControllerItemlist->display( $cachable = TRUE, $urlparams = ['limit' => 'UINT', 'limitstart' => 'UINT', 'id' => 'INT', 'tag' => 'STRING', 'searchword' => 'STRING', 'day' => 'INT', 'year' => 'INT', 'month' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'ordering' => 'CMD', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ).../controller.php:19
120.205215185888Joomla\CMS\Cache\Controller\ViewController->get( $view = class K2ViewItemlist { public $document = class Joomla\CMS\Document\HtmlDocument { public $_links = [...]; public $_custom = [...]; public $template = NULL; public $baseurl = NULL; public $params = NULL; public $_file = NULL; protected $_template = ''; protected $_template_tags = [...]; protected $_caching = NULL; private $_html5 = NULL; public $title = 'CentOS 6'; public $description = ''; public $link = ''; public $base = 'https://www.shan.info/itemlist/category/49-centos-6.html'; public $language = 'en-gb'; public $direction = 'ltr'; public $_generator = 'Joomla! - Open Source Content Management'; public $_mdate = ''; public $_tab = '\t'; public $_lineEnd = '\n'; public $_charset = 'utf-8'; public $_mime = 'text/html'; public $_namespace = ''; public $_profile = ''; public $_scripts = [...]; public $_script = [...]; protected $scriptOptions = [...]; public $_styleSheets = [...]; public $_style = [...]; public $_metaTags = [...]; public $_engine = NULL; public $_type = 'html'; protected $mediaVersion = '15dbf078d61dbbf76811992dd0143dd9' }; protected $_name = 'itemlist'; protected $_models = ['item' => class K2ModelItem { ... }, 'itemlist' => class K2ModelItemlist { ... }]; protected $_basePath = '/var/www/vhosts/shan.info/httpdocs/components/com_k2'; protected $_defaultModel = 'itemlist'; protected $_layout = 'category'; protected $_layoutExt = 'php'; protected $_layoutTemplate = '_'; protected $_path = ['template' => [...], 'helper' => [...]]; protected $_template = '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category_item.php'; protected $_output = '\n<article class="itemView groupPrimary"> \t\n\t\t<time datetime="2010-07-21T22:40:23+02:00">\n\t\t21 Jul\t</time>\n\t\t\t\n\t<section>\t\t\n\t\t<header>\n\t\t\t\t\n\t\t\t\t\t\t<h2>\n\t\t\t\t\t\t\t\t\t\t<a href="/item/124-svn-subversion-centos.html">svn subversion centos</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t\n\t\t\t<ul>\n\t\t\t\t\t\t\t\t<li class="itemCategory"> <span>Published in</span> <a href="/itemlist/category/49-centos-6.html">CentOS 6</a> </li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class'; protected $_escape = 'htmlspecialchars'; protected $_charset = 'UTF-8'; protected $_errors = []; public $baseurl = ''; public $now = '2021-06-09 10:36:14'; public $nullDate = '0000-00-00 00:00:00'; public $category = class TableK2Category { public $id = '49'; public $name = 'CentOS 6'; public $alias = 'centos-6'; public $description = ''; public $parent = '0'; public $extraFieldsGroup = '0'; public $published = '1'; public $image = '/components/com_k2/images/placeholder/category.png'; public $access = '1'; public $ordering = '6'; public $params = '{"inheritFrom":"59","theme":"","num_leading_items":"0","num_leading_columns":"1","leadingImgSize":"Large","num_primary_items":"10","num_primary_columns":"1","primaryImgSize":"Medium","num_secondary_items":"0","num_secondary_columns":"1","secondaryImgSize":"Small","num_links":"0","num_links_columns":"1","linksImgSize":"XSmall","catCatalogMode":"0","catFeaturedItems":"1","catOrdering":"","catPagination":"2","catPaginationResults":"1","catTitle":"1","catTitleItemCounter":"1","catDescription":"0","catImage":"0"'; public $trash = '0'; public $plugins = ''; public $language = '*'; protected $_tbl = '#__k2_categories'; protected $_tbl_key = 'id'; protected $_tbl_keys = [...]; protected $_db = class JDatabaseDriverMysqli { ... }; protected $_trackAssets = FALSE; protected $_rules = NULL; protected $_locked = FALSE; protected $_autoincrement = TRUE; protected $_observers = class JObserverUpdater { ... }; protected $_columnAlias = [...]; protected $_jsonEncode = [...]; protected $_errors = [...]; public $metaDescription = NULL; public $metaKeywords = NULL; public $metaRobots = NULL; public $metaAuthor = NULL; public $link = '/itemlist/category/49-centos-6.html'; public $text = ''; public $jcfields = [...]; public $event = class stdClass { ... } }; public $user = class Joomla\CMS\User\User { protected $isRoot = FALSE; public $id = 0; public $name = NULL; public $username = NULL; public $email = NULL; public $password = NULL; public $password_clear = ''; public $block = NULL; public $sendEmail = 0; public $registerDate = NULL; public $lastvisitDate = NULL; public $activation = NULL; public $params = NULL; public $groups = [...]; public $guest = 1; public $lastResetTime = NULL; public $resetCount = NULL; public $requireReset = NULL; protected $_params = class Joomla\Registry\Registry { ... }; protected $_authGroups = NULL; protected $_authLevels = [...]; protected $_authActions = NULL; protected $_errorMsg = NULL; protected $userHelper = class Joomla\CMS\User\UserWrapper { ... }; protected $_errors = [...]; public $aid = 0; public $gid = 1 }; public $feed = 'https://www.shan.info/itemlist/category/49-centos-6.html?start=70&format=feed&Itemid=53'; public $leading = []; public $primary = [0 => class stdClass { ... }, 1 => class stdClass { ... }, 2 => class stdClass { ... }, 3 => class stdClass { ... }]; public $secondary = []; public $links = []; public $params = class Joomla\Registry\Registry { protected $data = class stdClass { ... }; protected $initialized = TRUE; public $separator = '.' }; public $pagination = class Joomla\CMS\Pagination\Pagination { public $limitstart = 70; public $limit = 10; public $total = 74; public $prefix = ''; public $pagesStart = 1; public $pagesStop = 8; public $pagesCurrent = 8; public $pagesTotal = 8; public $hideEmptyLimitstart = FALSE; protected $viewall = FALSE; protected $additionalUrlParams = [...]; protected $app = class Joomla\CMS\Application\SiteApplication { ... }; protected $data = NULL }; public $item = class stdClass { public $id = '124'; public $title = 'svn subversion centos'; public $alias = 'svn-subversion-centos'; public $catid = '49'; public $published = '1'; public $introtext = 'yum install subversionsvn co http://xxxxxxxxx/ /var/www/vhosts/xxxxx/httpdocs'; public $fulltext = ''; public $video = NULL; public $gallery = NULL; public $extra_fields = '[]'; public $extra_fields_search = ''; public $created = '2010-07-21 20:40:23'; public $created_by = '63'; public $created_by_alias = ''; public $checked_out = '0'; public $checked_out_time = '0000-00-00 00:00:00'; public $modified = '2013-01-05 12:18:40'; public $modified_by = '63'; public $publish_up = '2010-07-21 20:40:10'; public $publish_down = '0000-00-00 00:00:00'; public $trash = '0'; public $access = '1'; public $ordering = '19'; public $featured = '0'; public $featured_ordering = '0'; public $image_caption = ''; public $image_credits = ''; public $video_caption = ''; public $video_credits = ''; public $hits = '1992'; public $params = class Joomla\Registry\Registry { ... }; public $metadesc = ''; public $metadata = 'robots=\nauthor='; public $metakey = ''; public $plugins = ''; public $language = '*'; public $categoryname = 'CentOS 6'; public $categoryid = '49'; public $categoryalias = 'centos-6'; public $categoryparams = '{"inheritFrom":"59","theme":"","num_leading_items":"0","num_leading_columns":"1","leadingImgSize":"Large","num_primary_items":"10","num_primary_columns":"1","primaryImgSize":"Medium","num_secondary_items":"0","num_secondary_columns":"1","secondaryImgSize":"Small","num_links":"0","num_links_columns":"1","linksImgSize":"XSmall","catCatalogMode":"0","catFeaturedItems":"1","catOrdering":"","catPagination":"2","catPaginationResults":"1","catTitle":"1","catTitleItemCounter":"1","catDescription":"0","catImage":"0"'; public $itemGroup = 'primary'; public $category = class TableK2Category { ... }; public $link = '/item/124-svn-subversion-centos.html'; public $printLink = '/item/124-svn-subversion-centos.html?tmpl=component&amp;print=1'; public $tags = [...]; public $imageXSmall = ''; public $imageSmall = ''; public $imageMedium = ''; public $imageLarge = ''; public $imageXLarge = ''; public $rawTitle = 'svn subversion centos'; public $author = class Joomla\CMS\User\User { ... }; public $text = 'yum install subversionsvn co http://xxxxxxxxx/ /var/www/vhosts/xxxxx/httpdocs'; public $event = class stdClass { ... }; public $jcfields = [...]; public $image = ''; public $imageWidth = '400' } }, $method = 'display', $id = ???, $wrkarounds = ??? ).../BaseController.php:663
130.206815206576K2ViewItemlist->display( $tpl = ??? ).../ViewController.php:102
140.261818405760K2ViewItemlist->display( $tpl = NULL ).../view.html.php:1407
150.261818405760K2ViewItemlist->loadTemplate( $tpl = NULL ).../HtmlView.php:230
160.262418482560include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php ).../HtmlView.php:701