2016年12月02日

CentOS7 インストール画面キャプチャで、エラー

インストール画面を取ろうとして、Shfi+PrintScreenで、進むと

An unknown error has occurred

This Program has encountest an unknown error. You may report the bug below or quit thr program.

IMG_0611.JPG

Report Bugの使用方法が、わからない。

posted by a23 at 09:11| Comment(0) | CentOS

2014年05月09日

CentOS6 SSD

ドライブがSSDとして認識されているかを確認
cat /sys/block/sda/queue/rotational
0: SSDと認識
1: HDDと認識

CentOS6に含まれているext4はTRIMをサポートしているので、特にマウント時にdiscardオプションを渡す必要はありません。

SSDがTrimをサポートしているか確認 hdparmコマンド(yum install hdparm)
posted by a23 at 11:16| Comment(0) | CentOS

2013年11月06日

CentOS 5.10 + MySQL5.5 + PostgreSQL8.1

CentOS 5.10 + MySQL5.5 + PostgreSQL8.1
Default install
--------------------------------------------------------------------------------
my.cnf
[mysql]
default-character-set=utf8

[mysqld]
character-set-server=utf8
default-storage-engine=INNODB
追加後 サービスより起動
--------------------------------------------------------------------------------

cat /root/.mysql_secret
cat: /root/.mysql_secret: そのようなファイルやディレクトリはありません
mysql_secret.png
--------------------------------------------------------------------------------

mysql
mysql_cmd.png
set password=password('mysql_password');
Create Database testdb;
grant all privileges on *.* to usr1 identified by 'mysql_password';
FLUSH PRIVILEGES;
mysql_set.png
--------------------------------------------------------------------------------
PostgreSQL
su - postgres -c "/usr/bin/initdb"
pginit.png
サービスより起動
-------------------------------------------------------------------------
sudo su - postgres
# psql -d postgres
postgres=# ALTER USER postgres WITH PASSWORD 'postgrespassword';
postgres=# create database testdb;
\q
exit
pg_set.png
-------------------------------------------------------------------------
gedit /var/lib/pgsql/data/postgresql.conf
listen_addresses = '*'
port = 5432
gedit /var/lib/pgsql/data/pg_hba.conf
host all all 0.0.0.0/0 trust
host all all 192.168.24.0/24 trust
service postgresql restart
-------------------------------------------------------------------------
select version();
pg_ver.png
posted by a23 at 08:35| Comment(0) | CentOS