うんちく CentOS6.5のネットワーク設定 # vi /etc/sysconfig/network-scripts/ifcfg-eth0 ※DHCPによるIPアドレス自動取得 DEVICE=eth0 HWADDR=00:0C:29:D0:C4:2F TYPE=Ethernet UUI... 2020.10.10 うんちく
うんちく インストールされたCentOSが32bit版か64bit版か確認する ・32bitカーネル i686, i686, i386と表示された場合は、32bitカーネルになります。 $ uname -a Linux centos 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:5... 2020.10.09 うんちく
うんちく PostgreSQLのシーケンスのリセット test=# select setval('user_info_id_seq',1,false) ; setval -------- 1 (1 row) falseにしているスト1からスタート 2020.10.08 うんちく
うんちく Apacheのバージョン確認方法 Apacheのバージョン確認方法 # apachectl -v Server version: Apache/2.0.54 Server built: Jul 26 2006 11:00:19 # httpd -v Server ver... 2020.10.07 うんちく
うんちく データベースの作成 for Debian 1. ユーザpostgresにスイッチ hackkit:~# su - postgres 2. データベースを作成 postgres@hackkit:~$ createdb testdb CREATE DATABASE 3. psqlコマン... 2020.10.06 うんちく
うんちく X Window Systemを使った画面をやめる # vi /etc/inittab # Default runlevel. The runlevels used by RHS are: # 0 - halt (Do NOT set initdefault to this) # 1... 2020.10.05 うんちく
うんちく ユーザpostgresのパスワードを変える postgres@hackkit:~$ psql template1 Welcome to psql 8.1.18, the PostgreSQL interactive terminal. Type: ¥copyright for di... 2020.10.04 うんちく
うんちく NTPサーバー ■NTPサーバーインストール # yum -y install ntp ■NTPサーバー設定 # vi /etc/ntp.conf ← ntp設定ファイル編集 # Hosts on local network are less restri... 2020.10.03 うんちく
うんちく MySQLインストール MySQLをインストール # yum -y install mysql-server 設定ファイルを編集 # vi /etc/my.cnf datadir=/var/lib/mysql socket=/var/lib/mysql/mysql... 2020.10.02 うんちく
うんちく MySQLをコマンドで操作 user@ubuntu:~$ mysql -u root -p (-p:パスワードを求めるプロンプトが表示されます。) Enter password: mysqlのrootのパスワードを入力します データベースを確認します。 mysql> ... 2020.10.01 うんちく