cd /opt/tools ls cd Addusers/ vi passwd.txt ``` - 新增使用者 ``` ./maccount.sh add passwd.txt ``` - 刪除使用者 ``` ./maccount.sh del passwd.txt ``` - 查詢UID500以後的一般使用者 ``` cat /etc/passwd | awk -F: '{if($3 > 500) {print $0}}' ``` 2.開啟~user可用的權限 ``` a2enmod userdir vi /etc/apache2/mods-available/php5.conf # php_admin_value engine Off service apache2 restart ``` 3.建資料庫 ``` ./maccount.sh mysql passwd.txt service mysql restart ``` 4.讓資料庫預設utf-8 ``` [client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] skip-character-set-client-handshake collation-server = utf8_general_ci init-connect='SET NAMES utf8' character-set-server = utf8 ```
./maccount.sh add passwd.txt ``` - 刪除使用者 ``` ./maccount.sh del passwd.txt ``` - 查詢UID500以後的一般使用者 ``` cat /etc/passwd | awk -F: '{if($3 > 500) {print $0}}' ``` 2.開啟~user可用的權限 ``` a2enmod userdir vi /etc/apache2/mods-available/php5.conf # php_admin_value engine Off service apache2 restart ``` 3.建資料庫 ``` ./maccount.sh mysql passwd.txt service mysql restart ``` 4.讓資料庫預設utf-8 ``` [client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] skip-character-set-client-handshake collation-server = utf8_general_ci init-connect='SET NAMES utf8' character-set-server = utf8 ```
./maccount.sh del passwd.txt ``` - 查詢UID500以後的一般使用者 ``` cat /etc/passwd | awk -F: '{if($3 > 500) {print $0}}' ``` 2.開啟~user可用的權限 ``` a2enmod userdir vi /etc/apache2/mods-available/php5.conf # php_admin_value engine Off service apache2 restart ``` 3.建資料庫 ``` ./maccount.sh mysql passwd.txt service mysql restart ``` 4.讓資料庫預設utf-8 ``` [client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] skip-character-set-client-handshake collation-server = utf8_general_ci init-connect='SET NAMES utf8' character-set-server = utf8 ```
cat /etc/passwd | awk -F: '{if($3 > 500) {print $0}}' ``` 2.開啟~user可用的權限 ``` a2enmod userdir vi /etc/apache2/mods-available/php5.conf # php_admin_value engine Off service apache2 restart ``` 3.建資料庫 ``` ./maccount.sh mysql passwd.txt service mysql restart ``` 4.讓資料庫預設utf-8 ``` [client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] skip-character-set-client-handshake collation-server = utf8_general_ci init-connect='SET NAMES utf8' character-set-server = utf8 ```
a2enmod userdir vi /etc/apache2/mods-available/php5.conf # php_admin_value engine Off service apache2 restart ``` 3.建資料庫 ``` ./maccount.sh mysql passwd.txt service mysql restart ``` 4.讓資料庫預設utf-8 ``` [client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] skip-character-set-client-handshake collation-server = utf8_general_ci init-connect='SET NAMES utf8' character-set-server = utf8 ```
./maccount.sh mysql passwd.txt service mysql restart ``` 4.讓資料庫預設utf-8 ``` [client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] skip-character-set-client-handshake collation-server = utf8_general_ci init-connect='SET NAMES utf8' character-set-server = utf8 ```
[client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] skip-character-set-client-handshake collation-server = utf8_general_ci init-connect='SET NAMES utf8' character-set-server = utf8 ```