Ubuntu設定色々

Tech 2014. 9. 27. 01:18

Ubuntu 設定


- ユーザの追加


$ sudo adduser ユーザー名



- 管理権限グループへの追加


$ sudo gpasswd -a ユーザー名 sudo



- SSH設定


vi /etc/ssh/sshd_config


AllowUsers ユーザー名



apt-get update

apt-get upgrade



- Fail2Ban設定


apt-get install fail2ban

sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local

sudo vi /etc/fail2ban/jail.local

sudo service fail2ban restart

sudo iptables -L



sudo apt-get install apache2


ServerName設定

echo ServerName $HOSTNAME > /etc/apache2/conf-available/fqdn.conf

a2enconf fqdn

service apache2 restart


sudo apt-get install mysql-server php5-mysql

sudo mysql_install_db

sudo mysql_secure_installation


vi /etc/mysql/my.cnf

[client]

default-character-set=utf8


[mysqld]

skip-character-set-client-handshake

character-set-server = utf8

collation-server = utf8_general_ci

init-connect = SET NAMES utf8


service mysql restart



apt-get -y install php5 libapache2-mod-php5 php5-mysql php-pear php5-gd


php -i | grep "php.ini"

vi /etc/php5/cli/php.ini


a2enmod rewrite

service apache2 restart


/etc/apache2/mods-enabled/dir.conf

php優先



chown -R ユーザー名:Group www





'Tech' 카테고리의 다른 글

무료 음원  (0) 2014.10.02
iOS 8에서 ABPeoplePickerNavigationController의 변경점  (0) 2014.10.02
스마트폰 SSL 훔쳐보기  (0) 2014.09.09
한글 11,172자  (0) 2014.06.20
Amazon Elastic Transcoder(아마존 트렌스코더)  (0) 2013.08.11
: