Linux 無法正常開機,出現錯誤訊息:
Checking filesystems
/dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
[FAILED]
*** An error occurred during the file system check.
*** Dropping you to a shell; the system will reboot
*** when you leave the shell.
Give root password for maintenance
(or type Control-D to continue):
benson82208 發表在 痞客邦 留言(0) 人氣(324)
備份整顆硬碟
將 /dev/sda 所有的資料寫入 /dev/sdb:
benson82208 發表在 痞客邦 留言(0) 人氣(78)
Linux服务器下面的MySQL需要定期的维护,就需要掌握一些常见的命令,MySQL启动、停止MySQL、重启MySQL等是每个拥有独立主机的站长必须要撑握的操作,下面为大家简单介绍一下操作方法:
一、MySQL启动方式
benson82208 發表在 痞客邦 留言(0) 人氣(135)

首先通過chkconfig命令看看MySQL在不在可管理的清單中,命令是︰
chkconfig --list如果清單中沒有mysqld這個,需要先用這個命令添加︰
benson82208 發表在 痞客邦 留言(0) 人氣(58)
CentOS-Mysql-Access denied for user root
在CentOS(64bit)平台,無法使用root用戶進行登錄;
mysql -u root -p
ERROR 1045(28000): Access denied for user 'root'@'localhost'(using password: YES)
方法/步驟
停掉MySQL服務:
/etc/init.d/mysqld stop
使用safe模式,進行重啟:
mysqld_safe --skip-grant-tables
使用root帳戶,無密碼登錄:
mysql -u root
選擇mysql database:
use mysql;
為root用戶更改密碼為: 123456(自行設定):
update user set password=PASSWORD("123456") where User = 'root';
exit;離開
停止MySQL 服務:
/etc/init.d/mysqld stop
重新啟動MySQL服務:
/etc/init.d/mysqld start
使用root帳戶正常登錄:
mysql -u root -p
這樣就成功改密碼了。
benson82208 發表在 痞客邦 留言(0) 人氣(325)
1. 命令提示字元視窗中,輸入「net Stop w32time」指令,並按一下鍵盤上「Enter」按鍵。
benson82208 發表在 痞客邦 留言(0) 人氣(688)
How to install VMware tools on FreeBSD server
benson82208 發表在 痞客邦 留言(0) 人氣(306)
1. 首先 輸入 「Regedit」
2. 找到 HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP–Tcp\PortNumber
benson82208 發表在 痞客邦 留言(0) 人氣(453)
benson82208 發表在 痞客邦 留言(0) 人氣(157)
首頁能夠顯示,說明數據的Drupal已經安裝完成,能夠運行了,但為什麼其他頁面都會出錯呢?這是因為Drupal 8默認開啟了簡潔鏈接,需要服務器的rewrite功能支持。但因為各種原因服務器的url重寫功能沒有啟用或者配置錯誤導致Drupal 8出錯。那麼如何解決呢?
2.需要確認的.htaccess文件裡有關rewirte的模塊開啟。
benson82208 發表在 痞客邦 留言(0) 人氣(10)